@genesislcap/foundation-rapid-cdn 14.491.0 → 14.491.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.
|
@@ -54,7 +54,7 @@ function _d(e,t,i,c){var o,s=arguments.length,a=s<3?t:null===c?c=Object.getOwnPr
|
|
|
54
54
|
Continue Session </${e}-button><${e}-button appearance="outline" @click=${e=>e.handleLogout()}class="logout-button">
|
|
55
55
|
Logout Now </${e}-button></div></div></${e}-card></div>`)(Cf(e,"rapid").prefix)} `,styles:Me` .inactivity-overlay{position: fixed;inset: 0;width: 100vw;height: 100vh;background-color: rgba(0, 0, 0, 0.6);display: flex;align-items: center;justify-content: center;z-index: 9999;backdrop-filter: blur(2px)}.dialog-card{height: 260px;max-height: 260px;max-width: 520px;width: 92%}.card-body{padding: 24px;box-sizing: border-box}.dialog-header{display: flex;align-items: center;gap: 12px;margin-bottom: 16px}.warning-icon{color: var(--accent-fill-rest);font-size: 24px}.dialog-header h2{margin: 0;color: var(--neutral-foreground-rest);font-size: 20px;font-weight: 600}.dialog-content{margin-bottom: 24px}.dialog-content p{margin: 0 0 12px 0;color: var(--neutral-foreground-rest);line-height: 1.5}.dialog-content p:last-child{margin-bottom: 0}.dialog-content strong{color: var(--accent-foreground-rest);font-weight: 600}.dialog-actions{display: flex;gap: 12px;justify-content: flex-end}.continue-button{min-width: 140px}.logout-button{min-width: 120px}@media (max-width: 480px){.card-body{padding: 20px}.dialog-actions{flex-direction: column}.continue-button, .logout-button{width: 100%}}`})],Jv);class eb{constructor(){this.pathHistory=[],this.actionHistory=[],this.isAuthenticated=!1,this.authenticationChangeListeners=bf()}set(e){return this.config.setUser(this,e)}unset(){return this.config.unsetUser(this)}get isAnonymous(){return!this.isAuthenticated}isAdmin(){return this.hasProfile("ADMIN")}isBanned(){return this.hasProfile("BANNED")}hasPermission(e){return this.hasKey(this.permission,e)}hasProfile(e){return this.hasKey(this.profile,e)}trackPath(){const{pathname:e,search:t,hash:i}=location,c=`${`${"/"!==e?e:""}`}${t}${i}`;if(!this.config.trackPathExclusions.includes(c))return this.pathHistory.push(c),c}clearPaths(){this.pathHistory=[]}lastPath(){const e=this.pathHistory.length;return e>0?this.pathHistory[e-1]:void 0}trackAction(e){this.config.trackActionExclusions.includes(e)||this.actionHistory.push(e)}clearActions(){this.actionHistory=[]}lastAction(){const e=this.actionHistory.length;return e>0?this.actionHistory[e-1]:void 0}clearTrackingHistory(){this.clearPaths(),this.clearActions()}hasKey(e,t){return!!(e&&e.length&&t)&&(Array.isArray(t)||(t=[t]),t.some(t=>e.includes(t)))}addAuthenticationChangeListener(e){var t;return null===(t=this.authenticationChangeListeners)||void 0===t?void 0:t.subscribe(e)}isAuthenticatedChanged(){var e;null===(e=this.authenticationChangeListeners)||void 0===e||e.publish(new CustomEvent("user-authentication-change",{detail:this.isAuthenticated}));const t=mt.getOrCreateDOMContainer().get(vf);t.postMessage("user-authentication-change",this.isAuthenticated),t.close()}userNameChanged(){v.notify(this,"username")}get username(){return v.track(this,"username"),this.userName}permissionChanged(){v.notify(this,"permissions")}get permissions(){return v.track(this,"permissions"),this.permission}profileChanged(){v.notify(this,"profiles")}get profiles(){return v.track(this,"profiles"),this.profile}hasAdminProfile(){return this.isAdmin()}}Ou([gf],eb.prototype,"config",void 0),Ou([b],eb.prototype,"pathHistory",void 0),Ou([b],eb.prototype,"actionHistory",void 0),Ou([b],eb.prototype,"isAuthenticated",void 0),Ou([b],eb.prototype,"userKVs",void 0),Ou([b],eb.prototype,"details",void 0),Ou([b],eb.prototype,"permission",void 0),Ou([b],eb.prototype,"profile",void 0),Ou([b],eb.prototype,"sourceRef",void 0),Ou([b],eb.prototype,"userName",void 0),Ou([b],eb.prototype,"rawProperties",void 0);const tb=mt.createInterface(e=>e.singleton(eb));class ib{constructor(){this.cachedMetadata=new Map,this.cachedJsonSchema=new Map,this.cachedResources=null,this.cachedRequests=new Map}getMetadataFor(e){return this.cachedMetadata.get(e)}getJsonSchemaFor(e){return this.cachedJsonSchema.get(e)}getResources(){return this.cachedResources}hasMetadataFor(e){return this.cachedMetadata.has(e)}hasJsonSchemaFor(e){return this.cachedJsonSchema.has(e)}hasResources(){return null!==this.cachedResources}setMetadataFor(e,t){this.cachedMetadata.set(e,t)}setJsonSchemaFor(e,t){this.cachedJsonSchema.set(e,t)}setResources(e){this.cachedResources=e}getRequestFor(e){return this.cachedRequests.get(e)}hasRequestFor(e){return this.cachedRequests.has(e)}setRequestFor(e,t){this.cachedRequests.set(e,t)}}const cb=mt.createInterface(e=>e.singleton(ib));var ob;!function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.ENUM="ENUM",e.DATE="DATE",e.DATETIME="DATETIME",e.CUSTOM="CUSTOM",e.NANO_TIMESTAMP="NANO_TIMESTAMP"}(ob||(ob={}));const sb={STRING:ob.STRING,ENUM:ob.ENUM,BOOLEAN:ob.BOOLEAN,INT:ob.NUMBER,LONG:ob.NUMBER,DOUBLE:ob.NUMBER,BIGDECIMAL:ob.NUMBER,DATE:ob.DATE,DATETIME:ob.DATETIME,NANO_TIMESTAMP:ob.NANO_TIMESTAMP};var ab;!function(e){e.DATASERVER="DATASERVER",e.EVENT_HANDLER="EVENT_HANDLER",e.REQUEST_SERVER="REQUEST_SERVER"}(ab||(ab={}));const nb="datasource-status-changed",rb=e=>e?e.map(e=>{const t={name:e.NAME,type:sb[e.TYPE]||ob.STRING};if(e.TYPE===ob.ENUM&&e.VALID_VALUES)try{t.enumOptions=Array.isArray(e.VALID_VALUES)?e.VALID_VALUES:e.VALID_VALUES.split("|")}catch(e){nf.error(e),t.enumOptions=[]}return t}):null,lb=e=>{var t;const i=null==e?void 0:e.TYPE;if(i===ab.DATASERVER)return e.FIELD||[];if(i===ab.REQUEST_SERVER)return e.REPLY_FIELD||(null===(t=e.REPLY)||void 0===t?void 0:t.FIELD)||[];throw new Error(`Unsupported resource type: ${i}`)};class db{constructor(){this.streamListeners=bf(),this.streamCompleteListeners=bf(),this.streamErrorListeners=bf(),this.commitListeners=bf(),this.metadataListeners=bf(),this.commitResponseListeners=bf()}addStreamListener(e,t,i){var c,o,s;const a=null===(c=this.streamListeners)||void 0===c?void 0:c.subscribe(e),n=null===(o=this.streamCompleteListeners)||void 0===o?void 0:o.subscribe(t),r=null===(s=this.streamErrorListeners)||void 0===s?void 0:s.subscribe(i);return()=>{a(),n(),r()}}onStreamEvent(e,t,i,c){var o;null===(o=this.streamListeners)||void 0===o||o.publish(new CustomEvent("connect-stream-event",{detail:{functions:c,message:t,resourceName:e,stream:i}}))}onStreamErrorEvent(e,t,i){var c;null===(c=this.streamErrorListeners)||void 0===c||c.publish(new CustomEvent("connect-stream-error-event",{detail:{resourceName:e,stream:t,error:i}}))}onStreamCompleteEvent(e,t){var i;null===(i=this.streamCompleteListeners)||void 0===i||i.publish(new CustomEvent("connect-stream-complete-event",{detail:{resourceName:e,stream:t}}))}addCommitListener(e){var t;return null===(t=this.commitListeners)||void 0===t?void 0:t.subscribe(e)}onCommitEvent(e,t){var i;null===(i=this.commitListeners)||void 0===i||i.publish(new CustomEvent("connect-commit-event",{detail:{eventName:e,message:t}}))}addMetadataListener(e){var t;return null===(t=this.metadataListeners)||void 0===t?void 0:t.subscribe(e)}onMetadataEvent(e,t,i){var c;null===(c=this.metadataListeners)||void 0===c||c.publish(new CustomEvent("connect-metadata-event",{detail:{resourceName:e,message:t,error:i}}))}addCommitResponseListener(e){var t;return null===(t=this.commitResponseListeners)||void 0===t?void 0:t.subscribe(e)}onCommitResponseEvent(e,t){var i;null===(i=this.commitResponseListeners)||void 0===i||i.publish(new CustomEvent("connect-commit-response-event",{detail:{eventName:e,response:t}}))}}const hb=mt.createInterface(e=>e.singleton(db)),ub=mt.createInterface(e=>e.aliasTo(hb)),fb={connect:{alwaysOn:!1,enableHeartbeat:!0,enableHeartbeatLogging:!1,heartbeatInterval:1e4,verboseHeartbeat:!1,enableMessageLogging:!1},reconnect:{reconnectAttempts:10,reconnectInterval:1e4,reconnectStreams:!0},isWebSocketExpression:rf},pb=mt.createInterface(e=>e.instance(fb));var mb={ACCEPTED:202,BAD_GATEWAY:502,BAD_REQUEST:400,CONFLICT:409,CONTINUE:100,CREATED:201,EXPECTATION_FAILED:417,FORBIDDEN:403,GATEWAY_TIMEOUT:504,GONE:410,HTTP_VERSION_NOT_SUPPORTED:505,IM_A_TEAPOT:418,INSUFFICIENT_SPACE_ON_RESOURCE:419,INSUFFICIENT_STORAGE:507,INTERNAL_SERVER_ERROR:500,LENGTH_REQUIRED:411,LOCKED:423,METHOD_FAILURE:420,METHOD_NOT_ALLOWED:405,MOVED_PERMANENTLY:301,MOVED_TEMPORARILY:302,MULTI_STATUS:207,MULTIPLE_CHOICES:300,NETWORK_AUTHENTICATION_REQUIRED:511,NO_CONTENT:204,NON_AUTHORITATIVE_INFORMATION:203,NOT_ACCEPTABLE:406,NOT_FOUND:404,NOT_IMPLEMENTED:501,NOT_MODIFIED:304,OK:200,PARTIAL_CONTENT:206,PAYMENT_REQUIRED:402,PERMANENT_REDIRECT:308,PRECONDITION_FAILED:412,PRECONDITION_REQUIRED:428,PROCESSING:102,PROXY_AUTHENTICATION_REQUIRED:407,REQUEST_HEADER_FIELDS_TOO_LARGE:431,REQUEST_TIMEOUT:408,REQUEST_TOO_LONG:413,REQUEST_URI_TOO_LONG:414,REQUESTED_RANGE_NOT_SATISFIABLE:416,RESET_CONTENT:205,SEE_OTHER:303,SERVICE_UNAVAILABLE:503,SWITCHING_PROTOCOLS:101,TEMPORARY_REDIRECT:307,TOO_MANY_REQUESTS:429,UNAUTHORIZED:401,UNPROCESSABLE_ENTITY:422,UNSUPPORTED_MEDIA_TYPE:415,USE_PROXY:305},gb={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},vb={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};var bb,yb,zb=function(e){var t=gb[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t};!function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"}(bb||(bb={})),function(e){e.ACCEPTED="Accepted",e.BAD_GATEWAY="Bad Gateway",e.BAD_REQUEST="Bad Request",e.CONFLICT="Conflict",e.CONTINUE="Continue",e.CREATED="Created",e.EXPECTATION_FAILED="Expectation Failed",e.FAILED_DEPENDENCY="Failed Dependency",e.FORBIDDEN="Forbidden",e.GATEWAY_TIMEOUT="Gateway Timeout",e.GONE="Gone",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.IM_A_TEAPOT="I'm a teapot",e.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.LENGTH_REQUIRED="Length Required",e.LOCKED="Locked",e.METHOD_FAILURE="Method Failure",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.MOVED_PERMANENTLY="Moved Permanently",e.MOVED_TEMPORARILY="Moved Temporarily",e.MULTI_STATUS="Multi-Status",e.MULTIPLE_CHOICES="Multiple Choices",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.NO_CONTENT="No Content",e.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",e.NOT_ACCEPTABLE="Not Acceptable",e.NOT_FOUND="Not Found",e.NOT_IMPLEMENTED="Not Implemented",e.NOT_MODIFIED="Not Modified",e.OK="OK",e.PARTIAL_CONTENT="Partial Content",e.PAYMENT_REQUIRED="Payment Required",e.PERMANENT_REDIRECT="Permanent Redirect",e.PRECONDITION_FAILED="Precondition Failed",e.PRECONDITION_REQUIRED="Precondition Required",e.PROCESSING="Processing",e.EARLY_HINTS="Early Hints",e.UPGRADE_REQUIRED="Upgrade Required",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.REQUEST_TIMEOUT="Request Timeout",e.REQUEST_TOO_LONG="Request Entity Too Large",e.REQUEST_URI_TOO_LONG="Request-URI Too Long",e.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",e.RESET_CONTENT="Reset Content",e.SEE_OTHER="See Other",e.SERVICE_UNAVAILABLE="Service Unavailable",e.SWITCHING_PROTOCOLS="Switching Protocols",e.TEMPORARY_REDIRECT="Temporary Redirect",e.TOO_MANY_REQUESTS="Too Many Requests",e.UNAUTHORIZED="Unauthorized",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.USE_PROXY="Use Proxy",e.MISDIRECTED_REQUEST="Misdirected Request"}(yb||(yb={}));var Cb=this&&this.__assign||function(){return Cb=Object.assign||function(e){for(var t,i=1,c=arguments.length;i<c;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cb.apply(this,arguments)};Cb(Cb({},mb),{getStatusCode:function(e){var t=vb[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t},getStatusText:zb});class Lb{constructor(){this.storageKeyPrefix="",this.returnUrl=this.getSessionStorageItem("returnUrl")||""}deleteUserFromSessionStorage(){["authToken","refreshToken","sessionId","ssoToken"].forEach(e=>this.removeSessionStorageItem(e)),this.removeLocalStorageItem("refreshToken")}setStorageKeyPrefix(e){this.storageKeyPrefix=`${e.replace(/\s/g,"")}/`}setAuthResult(e){var t;this.setSessionStorageItem("authToken",e.SESSION_AUTH_TOKEN),this.setSessionStorageItem("refreshToken",e.REFRESH_AUTH_TOKEN),this.setSessionStorageItem("username",e.USER_NAME),this.setSessionStorageItem("sessionId",e.SESSION_ID),(null===(t=e.DETAILS)||void 0===t?void 0:t.MFA_CODE)&&this.setSessionStorageItem("mfaToken",e.DETAILS.MFA_CODE)}captureReturnUrl(){const{pathname:e,search:t,hash:i}=location;if(e&&(e.includes("/login")||e.includes("/auth")))return;const c=`${"/"!==e?e:""}`;this.returnUrl=`${c}${t}${i}`,this.setSessionStorageItem("returnUrl",this.returnUrl)}setItem(e,t,i){"local"===i?localStorage.setItem(this.storageKeyPrefix+e,t):sessionStorage.setItem(this.storageKeyPrefix+e,t)}getItem(e,t){return"local"===t?localStorage.getItem(this.storageKeyPrefix+e):sessionStorage.getItem(this.storageKeyPrefix+e)}removeItem(e,t){"local"===t?localStorage.removeItem(this.storageKeyPrefix+e):sessionStorage.removeItem(this.storageKeyPrefix+e)}setLocalStorageItem(e,t){this.setItem(e,t,"local")}setSessionStorageItem(e,t){this.setItem(e,t,"session")}getLocalStorageItem(e){return this.getItem(e,"local")}getSessionStorageItem(e){return this.getItem(e,"session")}removeLocalStorageItem(e){this.removeItem(e,"local")}removeSessionStorageItem(e){this.removeItem(e,"session")}}const xb=mt.createInterface(e=>e.singleton(Lb));function Mb(e){const t=new Error(`HTTP error: ${e.status} ${e.statusText}`);return t.status=e.status,t.message=e.statusText,t}let wb=class{constructor(e){this.serializer=e}get(e,t){return Ru(this,void 0,void 0,function*(){const i=yield fetch(e,Object.assign(Object.assign({credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"}},t),{method:"GET"}));if(i.redirected)return window.location.href=i.url,new Promise(()=>{});if(!i.ok)throw Mb(i);return(t.serializer||this.serializer).deserialize(i)})}post(e,t){return Ru(this,void 0,void 0,function*(){const i=yield fetch(e,Object.assign(Object.assign({credentials:"include",headers:{"Content-type":"application/json; charset=UTF-8"}},t),{method:"POST"}));if(i.redirected)return window.location.href=i.url,new Promise(()=>{});if(!i.ok)throw Mb(i);return(t.serializer||this.serializer).deserialize(i)})}};wb=Ou([Tu(0,Lm)],wb);const Sb=mt.createInterface(e=>e.singleton(wb)),kb={polling:Object.assign({POLLING_MAP:{EVENT_AMEND_USER:{TEMP_FREQUENCY:500,AMOUNT_OF_POLLS:5,QUERIES:["ALL_USERS"]}},POLLING_INTERVAL_MAP:{ALL_TRADES:5e3,ALL_USERS:5e3,ALL_PROCESSES_STATUS:1e4},POLLING_FREQUENCY:5e3},Uf&&Uf.length?JSON.parse(Uf):{})},Eb=mt.createInterface(e=>e.instance(kb));var $b,Nb,Ab,Ob;!function(e){e.BASIC="BASIC",e.SSO="SSO",e.JWT="JWT",e.REFRESH="REFRESH"}($b||($b={}));class Tb extends Error{constructor(e,t,i="Auth Failed \n"){super(i),this.sent=e,this.received=t,Object.setPrototypeOf(this,Tb.prototype)}isIgnorableError(){var e,t,i,c,o,s,a,n;return!!(null===(c=null===(i=null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)||void 0===i?void 0:i.toLowerCase())||void 0===c?void 0:c.includes("request needs the user to be logged"))||!!(null===(n=null===(a=null===(s=null===(o=this.received)||void 0===o?void 0:o.DETAILS)||void 0===s?void 0:s.ERROR)||void 0===a?void 0:a.toLowerCase())||void 0===n?void 0:n.includes("is not logged in"))}getMessageError(){var e,t;return Array.isArray(null===(e=this.received)||void 0===e?void 0:e.ERROR)?null===(t=this.received)||void 0===t?void 0:t.ERROR.map(e=>this.errorDetailFormatter(e)).join("\n"):""}getDetailsError(){var e,t,i,c;return Array.isArray(null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)?null===(c=null===(i=this.received)||void 0===i?void 0:i.DETAILS)||void 0===c?void 0:c.ERROR.map(e=>this.errorDetailFormatter(e)).join("\n"):""}hasPasswordExpiredError(){return this.hasErrorCode("PASSWORD_EXPIRED")}hasMFAError(){return this.hasErrorCode("MFA_REQUIRED")||this.hasErrorCode("MFA_FAILED")}requiresTermsAndConditions(){return this.hasErrorCode("TERMS_ACCEPTANCE_REQUIRED")}hasErrorCode(e){var t,i;return!!Array.isArray(null===(t=this.received)||void 0===t?void 0:t.ERROR)&&(null===(i=this.received)||void 0===i?void 0:i.ERROR.some(t=>t.CODE===e))}errorDetailFormatter(e){return`\n ${e.CODE}: \n ${e.TEXT}`}}!function(e){e.LOGON_ACK="LOGON_ACK",e.LOGON_NACK="LOGON_NACK",e.LOGOFF_ACK="LOGOFF_ACK",e.LOGOFF_NACK="LOGOFF_NACK",e.HEARTBEAT_PING="HEARTBEAT_PING",e.HEARTBEAT_PONG="HEARTBEAT_PONG",e.MORE_ROWS="MORE_ROWS",e.MORE_COLUMNS="MORE_COLUMNS",e.MORE_COLUMNS_ACK="MORE_COLUMNS_ACK",e.MSG_ACK="MSG_ACK",e.MSG_NACK="MSG_NACK",e.LOGOUT_ACK="LOGOUT_ACK",e.LOGOUT_NACK="LOGOUT_NACK",e.QUERY_UPDATE="QUERY_UPDATE"}(Nb||(Nb={})),function(e){e.EVENT_LOGIN_AUTH="EVENT_LOGIN_AUTH",e.EVENT_LOGIN_AUTH_ACK="EVENT_LOGIN_AUTH_ACK",e.EVENT_LOGIN_AUTH_NACK="EVENT_LOGIN_AUTH_NACK",e.EVENT_LOGOUT="EVENT_LOGOUT",e.DATA_LOGON="DATA_LOGON",e.DATA_LOGOFF="DATA_LOGOFF",e.META_REQUEST="META_REQUEST",e.JSON_SCHEMA_REQUEST="JSON_SCHEMA_REQUEST",e.RESOURCES_REQUEST="RESOURCES_REQUEST",e.RESOURCES_REQUEST_ACK="RESOURCES_REQUEST_ACK",e.RESOURCES_REQUEST_NACK="RESOURCES_REQUEST_NACK",e.EVENT_CHANGE_USER_PASSWORD="EVENT_CHANGE_USER_PASSWORD",e.EVENT_SELF_SERVICE_PASSWORD_RESET="EVENT_SELF_SERVICE_PASSWORD_RESET",e.EVENT_PASSWORD_RESET_ACTION="EVENT_PASSWORD_RESET_ACTION"}(Ab||(Ab={})),function(e){e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.UNKNOWN_MESSAGE_TYPE="UNKNOWN_MESSAGE_TYPE"}(Ob||(Ob={}));const Rb=e=>Array.isArray(e)?e.map(Rb):e&&"object"==typeof e&&e.constructor===Object?Object.keys(e).sort().reduce((t,i)=>(t[i]=Rb(e[i]),t),{}):e;function Ib(e,t){return`${e}::${JSON.stringify(Rb(null!=t?t:{}))}`}const Db=(e,t)=>!!Array.isArray(null==e?void 0:e.ERROR)&&(null==e?void 0:e.ERROR.some(e=>{var i,c;return(null===(i=e.CODE)||void 0===i?void 0:i.includes(`${t}`))||(null===(c=e.STATUS_CODE)||void 0===c?void 0:c.includes(`${t}`))}));let Fb=class{constructor(e,t){this.session=e,this.uuid=t}createLoginMessage(e){let t;switch(e.type){case $b.BASIC:t={USER_NAME:e.username,PASSWORD:e.password,MFA_CODE:e.mfaToken};break;case $b.REFRESH:t={USER_NAME:e.username,REFRESH_AUTH_TOKEN:e.refreshToken,MFA_CODE:e.mfaToken};break;case $b.SSO:t={SSO_TOKEN:e.ssoToken};break;case $b.JWT:t={JWT:e.jwt,DOMAIN:e.domain}}return{DETAILS:t,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.EVENT_LOGIN_AUTH}}createLogoutMessage(e){var t,i;return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.EVENT_LOGOUT,SESSION_AUTH_TOKEN:null!==(t=e.authToken)&&void 0!==t?t:this.session.getSessionStorageItem("authToken"),SESSION_ID:null!==(i=e.sessionId)&&void 0!==i?i:this.session.getSessionStorageItem("sessionId")}}createDataLogonMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.DATA_LOGON,DETAILS:Object.assign({DATASOURCE_NAME:e},t),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createDataLogoffMessage(e){return{SOURCE_REF:e,MESSAGE_TYPE:Ab.DATA_LOGOFF,SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createRequestMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e.startsWith("REQ_")?e:`REQ_${e}`},t)}createResourcesMessage(e){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:Ab.RESOURCES_REQUEST},e)}createMetaRequestMessage(e,t=Ab.META_REQUEST){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:t,DETAILS:{FEATURE:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createCommitMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e},t)}createRefreshTokenMessage(){return{SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:Ab.EVENT_LOGIN_AUTH,DETAILS:{REFRESH_AUTH_TOKEN:this.session.getSessionStorageItem("refreshToken"),MFA_CODE:this.session.getSessionStorageItem("mfaToken")}}}createChangePasswordMessage(e,t,i){return{USER_NAME:e,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.EVENT_CHANGE_USER_PASSWORD,DETAILS:{OLD_PASSWORD:t,NEW_PASSWORD:i}}}createForgotPasswordMessage(e,t,i=e){return{USER_NAME:i,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.EVENT_SELF_SERVICE_PASSWORD_RESET,DETAILS:{USER_NAME:e,RETURN_URL:t}}}createForgotPasswordTokenMessage(e,t,i,c=e){return{USER_NAME:c,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Ab.EVENT_PASSWORD_RESET_ACTION,DETAILS:{USER_NAME:e,RESET_TOKEN:t,NEW_PASSWORD:i}}}createMoreRowsMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:Nb.MORE_ROWS,DETAILS:{SOURCE_REF:e,VIEW_NUMBER:t},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createMoreColumnsMessage(e){return Object.assign(Object.assign({},this.createMoreRowsMessage(e)),{MESSAGE_TYPE:Nb.MORE_COLUMNS})}createHTTPHeadersFromMessage(e,t="application/json; charset=UTF-8"){const i={"Content-type":t};return e.SOURCE_REF&&(i["source-ref"]=e.SOURCE_REF,i.SOURCE_REF=e.SOURCE_REF),e.SESSION_AUTH_TOKEN&&(i["SESSION-AUTH-TOKEN"]=e.SESSION_AUTH_TOKEN),e.MESSAGE_TYPE===Ab.EVENT_LOGOUT&&(i["SESSION-ID"]=e.SESSION_ID),i}createHeartbeatPingMessage(e=!1){return{MESSAGE_TYPE:Nb.HEARTBEAT_PING,SOURCE_REF:this.uuid.createId(),VERBOSE:e,DETAILS:{},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}};Fb=Ou([Tu(0,xb),Tu(1,Xv)],Fb);const Hb=mt.createInterface(e=>e.singleton(Fb));function _b(e,t,i){const c=e=>"function"==typeof e?e:()=>e,o=c(t),s=c(i);return(t,i)=>e(t,i)?o(t,i):s(t,i)}class Pb{constructor(e){this.path=e}}const Vb=new Set,Bb=Object.freeze({register(e){Vb.add(e)},unregister(e){Vb.delete(e)}}),Ub=/^([a-z][a-z0-9+\-.]*:)?\/\//i,jb=Object.freeze({path:Object.freeze({get current(){return location.pathname+location.search},generateRoute(e,t,i={}){return Ru(this,void 0,void 0,function*(){let c="config"in e?e:zy.find(e);for(;null!==c;){const e=yield c.config.generateRouteFromPath(t,i);if(null!==e)return e;c=c.parent}return null})},push(e,t=!0){e&&Ub.test(e)?location.href=e:(history.pushState({},document.title,e),t&&jb.path.trigger(e))},replace(e,t=!0){e&&Ub.test(e)?location.href=e:(history.replaceState({},document.title,e),t&&jb.path.trigger(e))},trigger(e){const t=new Pb(e);for(const e of Vb)e.enqueue(t)}}),name:Object.freeze({generateRoute(e,t,i={}){return Ru(this,void 0,void 0,function*(){let c="config"in e?e:zy.find(e);for(;null!==c;){const e=yield c.config.generateRouteFromName(t,i);if(null!==e)return e;c=c.parent}return null})},push(e,t,i={},c=!0){return Ru(this,void 0,void 0,function*(){const o=yield jb.name.generateRoute(e,t,i);null!==o&&jb.path.push(o,c)})},replace(e,t,i={},c=!0){return Ru(this,void 0,void 0,function*(){const o=yield jb.name.generateRoute(e,t,i);null!==o&&jb.path.replace(o,c)})},trigger(e,t,i={}){return Ru(this,void 0,void 0,function*(){const c=yield jb.name.generateRoute(e,t,i);null!==c&&jb.path.trigger(c)})}})});class qb{constructor(){this.queue=[],this.promise=null,this.resolve=null}connect(){this.enqueue(new Pb(jb.path.current)),window.addEventListener("popstate",this),Bb.register(this)}disconnect(){this.queue=[],this.promise=null,this.resolve=null,window.removeEventListener("popstate",this),Bb.unregister(this)}receive(){return null!==this.promise||(this.promise=new Promise(e=>this.resolve=e),Promise.resolve().then(()=>this.tryDequeue())),this.promise}enqueue(e){this.queue.push(e),this.tryDequeue()}tryDequeue(){if(null===this.resolve||0===this.queue.length)return;const e=this.queue[this.queue.length-1],t=this.resolve;this.queue.length=0,this.promise=null,this.resolve=null,t(e)}handleEvent(e){this.enqueue(new Pb(jb.path.current))}}const Gb=encodeURIComponent,Wb=e=>Gb(e).replace("%24","$");function Yb(e,t,i){let c=[];if(null==t)return c;if(Array.isArray(t))for(let o=0,s=t.length;o<s;o++)if(i)c.push(`${Wb(e)}=${Gb(t[o])}`);else{const i=e+"["+("object"==typeof t[o]&&null!==t[o]?o:"")+"]";c=c.concat(Yb(i,t[o]))}else if("object"!=typeof t||i)c.push(`${Wb(e)}=${Gb(t)}`);else for(const i in t)c=c.concat(Yb(e+"["+i+"]",t[i]));return c}function Kb(e,t){return Array.isArray(e)?(e.push(t),e):void 0!==e?[e,t]:t}function Zb(e,t,i){let c=e;const o=t.length-1;for(let e=0;e<=o;e++){const s=""===t[e]?c.length:t[e];if(e<o){const i=c[s]&&"object"!=typeof c[s]?[c[s]]:c[s];c=c[s]=i||(isNaN(t[e+1])?{}:[])}else c=c[s]=i}}const Qb=Object.freeze({get current(){return location.search},build(e,t){let i=[];const c=Object.keys(e||{}).sort();for(let o=0,s=c.length;o<s;o++){const s=c[o];i=i.concat(Yb(s,e[s],t))}return 0===i.length?"":i.join("&")},separate(e){const t=e.indexOf("?");let i="";return-1!==t&&(i=e.substr(t+1,e.length),e=e.substr(0,t)),{path:e,queryString:i}},parse(e){const t={};if(!e||"string"!=typeof e)return t;let i=e;"?"===i.charAt(0)&&(i=i.substr(1));const c=i.replace(/\+/g," ").split("&");for(let e=0;e<c.length;e++){const i=c[e].split("="),o=decodeURIComponent(i[0]);if(!o)continue;let s=o.split("]["),a=s.length-1;if(/\[/.test(s[0])&&/\]$/.test(s[a])?(s[a]=s[a].replace(/\]$/,""),s=s.shift().split("[").concat(s),a=s.length-1):a=0,i.length>=2){const e=i[1]?decodeURIComponent(i[1]):"";a?Zb(t,s,e):t[o]=Kb(t[o],e)}else t[o]=!0}return t}}),Xb=e=>e;class Jb{constructor(e,t,i){this.path=e,this.name=t,this.caseSensitive=i}}class ey{constructor(e,t,i,c){this.route=e,this.paramNames=t,this.paramTypes=i,this.settings=c}get path(){return this.route.path}}class ty{constructor(e,t,i,c){this.endpoint=e,this.params=t,this.typedParams=i,this.queryParams=c,this.allParams=Object.assign(Object.assign({},t),c),this.allTypedParams=Object.assign(Object.assign({},i),c)}get settings(){return this.endpoint.settings}}class iy{constructor(e,t,i,c){var o;this.chars=e,this.states=t,this.skippedStates=i,this.result=c,this.head=t[t.length-1],this.endpoint=null===(o=this.head)||void 0===o?void 0:o.endpoint}advance(e){const{chars:t,states:i,skippedStates:c,result:o}=this;let s=null,a=0;const n=i[i.length-1];function r(l,d){if(l.isMatch(e)&&(1===++a?s=l:o.add(new iy(t.concat(e),i.concat(l),null===d?c:c.concat(d),o))),null===n.segment&&l.isOptional&&null!==l.nextStates){if(l.nextStates.length>1)throw new Error(`${l.nextStates.length} nextStates`);const e=l.nextStates[0];if(!e.isSeparator)throw new Error("Not a separator");if(null!==e.nextStates)for(const t of e.nextStates)r(t,l)}}if(n.isDynamic&&r(n,null),null!==n.nextStates)for(const e of n.nextStates)r(e,null);null!==s&&(i.push(this.head=s),t.push(e),null!==s.endpoint&&(this.endpoint=s.endpoint)),0===a&&o.remove(this)}finalize(){!function e(t,i){const c=i.nextStates;if(null!==c)if(1===c.length&&null===c[0].segment)e(t,c[0]);else for(const i of c)if(i.isOptional&&null!==i.endpoint){if(t.push(i),null!==i.nextStates)for(const c of i.nextStates)e(t,c);break}}(this.skippedStates,this.head)}getParams(){const{states:e,chars:t,endpoint:i}=this,c={};for(const e of i.paramNames)c[e]=void 0;for(let i=0,o=e.length;i<o;++i){const o=e[i];if(o.isDynamic){const e=o.segment.name;void 0===c[e]?c[e]=t[i]:c[e]+=t[i]}}return c}compareTo(e){const t=this.states,i=e.states;for(let e=0,c=0,o=Math.max(t.length,i.length);e<o;++e){let o=t[e];if(void 0===o)return 1;let s=i[c];if(void 0===s)return-1;let a=o.segment,n=s.segment;if(null===a){if(null===n){++c;continue}if(void 0===(o=t[++e]))return 1;a=o.segment}else if(null===n){if(void 0===(s=i[++c]))return-1;n=s.segment}if(a.kind<n.kind)return 1;if(a.kind>n.kind)return-1;++c}const c=this.skippedStates,o=e.skippedStates,s=c.length,a=o.length;if(s<a)return 1;if(s>a)return-1;for(let e=0;e<s;++e){const t=c[e],i=o[e];if(t.length<i.length)return 1;if(t.length>i.length)return-1}return 0}}function cy(e){return null!==e.head.endpoint}function oy(e,t){return e.compareTo(t)}class sy{constructor(e){this.candidates=[],this.candidates=[new iy([""],[e],[],this)]}get isEmpty(){return 0===this.candidates.length}getSolution(){const e=this.candidates.filter(cy);if(0===e.length)return null;for(const t of e)t.finalize();return e.sort(oy),e[0]}add(e){this.candidates.push(e)}remove(e){this.candidates.splice(this.candidates.indexOf(e),1)}advance(e){const t=this.candidates.slice();for(const i of t)i.advance(e)}}class ay{constructor(){this.names=new Map,this.paths=new Map,this.rootState=new ny(null,null,"")}add(e,t){if(e instanceof Array)for(const i of e)this.$add(i,t);else this.$add(e,t)}$add(e,t){const i=e.path,c=new Jb(e.path,e.name||"",!0===e.caseSensitive),o=""===i?[""]:i.split("/").filter(ry),s=[],a=[];let n=this.rootState;const r=[];for(const e of o)switch(n=n.append(null,"/"),e.charAt(0)){case"{":{const t=e.slice(1,-1).split(":").map(e=>e.trim());2===t.length?a.push(t[1]):a.push("string");const i=t[0].endsWith("?"),c=i?t[0].slice(0,-1):t[0];s.push(c);const o=new dy(c,i);r.push(o),n=o.appendTo(n);break}case"*":{const t=e.slice(1);s.push(t),a.push("string");const i=new hy(t);r.push(i),n=i.appendTo(n);break}default:{const t=new ly(e,c.caseSensitive);r.push(t),n=t.appendTo(n);break}}const l=new ey(c,s,a,t||null);n.setEndpoint(l),this.paths.set(i,r),e.name&&this.names.set(e.name,r)}recognize(e,t={}){return Ru(this,void 0,void 0,function*(){const i=Qb.separate(e),c=Qb.parse(i.queryString);(e=decodeURI(i.path)).startsWith("/")||(e=`/${e}`),e.length>1&&e.endsWith("/")&&(e=e.slice(0,-1));const o=new sy(this.rootState);for(let t=0,i=e.length;t<i;++t){const i=e.charAt(t);if(o.advance(i),o.isEmpty)return null}const s=o.getSolution();if(null===s)return null;const{endpoint:a}=s,n=a.paramNames,r=a.paramTypes,l=s.getParams(),d={};for(let e=0,i=n.length;e<i;++e){const i=n[e],c=t[r[e]]||Xb,o=l[i],s=yield c(o);d[i]=s}return new ty(a,l,d,c)})}generateFromName(e,t){return this.generate(this.names.get(e),t)}generateFromPath(e,t){return this.generate(this.paths.get(e),t)}generate(e,t){if(!e)return null;const i=Object.assign({},t),c={};let o="";for(let t=0,s=e.length;t<s;t++){const s=e[t],a=s.generate(i,c);if(null==a){if(s instanceof dy&&!s.optional)throw new Error(`A value is required for route parameter '${s.name}'.`)}else o+="/",o+=a}"/"!==o.charAt(0)&&(o="/"+o);for(const e in c)delete i[e];const s=Qb.build(i);return o+=s?`?${s}`:"",o}}class ny{constructor(e,t,i){switch(this.prevState=e,this.segment=t,this.value=i,this.nextStates=null,this.endpoint=null,null==t?void 0:t.kind){case 2:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=t.optional;break;case 1:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!0,this.isOptional=!1;break;case 3:this.length=e.length+1,this.isSeparator=!1,this.isDynamic=!1,this.isOptional=!1;break;case void 0:this.length=null===e?0:e.length,this.isSeparator=!0,this.isDynamic=!1,this.isOptional=!1}}append(e,t){let i,c=this.nextStates;return null===c?(i=void 0,c=this.nextStates=[]):i=null===e?c.find(e=>e.value===t):c.find(t=>{var i;return null===(i=t.segment)||void 0===i?void 0:i.equals(e)}),void 0===i&&c.push(i=new ny(this,e,t)),i}setEndpoint(e){if(null!==this.endpoint)throw new Error(`Cannot add ambiguous route. The pattern '${e.route.path}' clashes with '${this.endpoint.route.path}'`);this.endpoint=e,this.isOptional&&(this.prevState.setEndpoint(e),this.prevState.isSeparator&&null!==this.prevState.prevState&&this.prevState.prevState.setEndpoint(e))}isMatch(e){const t=this.segment;switch(null==t?void 0:t.kind){case 2:return!this.value.includes(e);case 1:return!0;case 3:case void 0:return this.value.includes(e)}}}function ry(e){return e.length>0}class ly{constructor(e,t){this.value=e,this.caseSensitive=t}get kind(){return 3}appendTo(e){const{value:t,value:{length:i}}=this;if(this.caseSensitive)for(let c=0;c<i;++c)e=e.append(this,t.charAt(c));else for(let c=0;c<i;++c){const i=t.charAt(c);e=e.append(this,i.toUpperCase()+i.toLowerCase())}return e}generate(){return this.value}equals(e){return 3===e.kind&&e.caseSensitive===this.caseSensitive&&e.value===this.value}}class dy{constructor(e,t){this.name=e,this.optional=t}get kind(){return 2}appendTo(e){return e=e.append(this,"/")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 2===e.kind&&e.optional===this.optional&&e.name===this.name}}class hy{constructor(e){this.name=e}get kind(){return 1}appendTo(e){return e=e.append(this,"")}generate(e,t){return t[this.name]=!0,e[this.name]}equals(e){return 1===e.kind&&e.name===this.name}}const uy="fast-child-route";function fy(e,t){return"command"in t?t.command:"redirect"in t?new Oy(t.redirect):Dy.fromDefinition(e,t)}const py=e=>{if(null==e)return!1;switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;default:return!1}},my={number:e=>void 0===e?NaN:parseFloat(e),float:e=>void 0===e?NaN:parseFloat(e),int:e=>void 0===e?NaN:parseInt(e),integer:e=>void 0===e?NaN:parseInt(e),Date:e=>void 0===e?new Date(Date.now()):new Date(e),boolean:py,bool:py};class gy{constructor(e){this.owner=e,this._recognizer=null,this.pathToCommand=new Map,this.fallbackCommand=null,this.fallbackSettings=null,this.converters={}}get recognizer(){return null===this._recognizer&&(this._recognizer=this.owner.createRouteRecognizer()),this._recognizer}ignore(e){"string"==typeof e&&(e={path:e}),this.pathToCommand.set(e.path,new Ay),this.recognizer.add(e,e.settings)}map(...e){for(const t of e){if("children"in t){const e=this.owner.createTitleBuilder(),i=t.children.map(i=>{const c=Object.assign(Object.assign(Object.assign({},t),i),{path:`${t.path}/${i.path}`});if("title"in t||"title"in i){const o=t.title||"",s=i.title||"";c.title=e.joinTitles(o,s)}if("name"in i){const e=t.name?t.name+"/":"";c.name=e+i.name}return c.children===t.children&&delete c.children,c});this.map(...i);continue}let e;if(e="command"in t?t.command:"redirect"in t?new Oy(t.redirect):Dy.fromDefinition(this.owner,t),this.pathToCommand.set(t.path,e),this.recognizer.add(t,t.settings),"childRouters"in t&&t.childRouters){const i=Object.assign(Object.assign({},t),{path:t.path+`/*${uy}`});this.pathToCommand.set(i.path,e),this.recognizer.add(i,i.settings)}}}fallback(e){const t=this.owner;this.fallbackCommand="function"==typeof e?{createContributor(i,c){return Ru(this,void 0,void 0,function*(){const o=yield e();return fy(t,o).createContributor(i,c)})}}:fy(t,e)}converter(e,t){let i;i="convert"in t?t.convert.bind(t):t.prototype&&"convert"in t.prototype?e=>this.owner.construct(t).convert(e):t,this.converters[e]=i}recognize(e){return Ru(this,void 0,void 0,function*(){const t=yield this.recognizer.recognize(e,this.aggregateConverters());if(null!==t)return{route:t,command:this.pathToCommand.get(t.endpoint.path)};if(null!==this.fallbackCommand){const t=Qb.separate(e),i=Qb.parse(t.queryString);return{route:new ty(new ey(new Jb("*","",!1),[],[],this.fallbackSettings),{},{},i),command:this.fallbackCommand}}return null})}generateFromName(e,t){return this.recognizer.generateFromName(e,t)}generateFromPath(e,t){return this.recognizer.generateFromPath(e,t)}aggregateConverters(){return null===this.owner.parent?Object.assign(Object.assign({},my),this.converters):Object.assign(Object.assign({},this.owner.parent.routes.aggregateConverters()),this.converters)}}const vy="$router";function by(e){const t=e.parentElement;if(t)return t;{const t=e.getRootNode();if(t.host instanceof HTMLElement)return t.host}return null}function yy(e){let t=e;for(;t=by(t);)if(vy in t)return t[vy];return null}const zy=Object.freeze({getOrCreateFor(e){const t=e[vy];return void 0!==t?t:e[vy]=new Cy(e)},find:e=>e[vy]||yy(e),from(e){class t extends e{constructor(){super(),zy.getOrCreateFor(this)}get config(){return this[vy].config}set config(e){this[vy].config=e}}const i=t.prototype;if("connectedCallback"in i){const e=i.connectedCallback;i.connectedCallback=function(){e.call(this),this[vy].connect()}}else i.connectedCallback=function(){this[vy].connect()};if("disconnectedCallback"in i){const e=i.disconnectedCallback;i.disconnectedCallback=function(){e.call(this),this[vy].disconnect()}}else i.disconnectedCallback=function(){this[vy].disconnect()};return t}});class Cy{constructor(e){this.host=e,this.parentRouter=void 0,this.contributors=new Set,this.navigationQueue=null,this.linkHandler=null,this.newView=null,this.newRoute=null,this.childCommandContributor=null,this.childRoute=null,this.isConnected=!1,this.routerConfig=null,this.view=null,this.route=null,this.onNavigationMessage=e=>Ru(this,void 0,void 0,function*(){const t=this.config.createNavigationProcess();yield t.run(this,e),this.navigationQueue.receive().then(this.onNavigationMessage)}),e[vy]=this}get config(){return this.routerConfig}set config(e){this.routerConfig=e,this.tryConnect()}get parent(){if(void 0===this.parentRouter){if(!this.isConnected)return null;this.parentRouter=yy(this.host)}return this.parentRouter||null}get level(){return null===this.parent?0:this.parent.level+1}shouldRender(e){var t;if(this.route&&this.route.endpoint.path===e.endpoint.path){const i=null==e?void 0:e.allParams,c=null===(t=this.route)||void 0===t?void 0:t.allParams;if(JSON.stringify(c)===JSON.stringify(i))return!1}return!0}beginRender(e,t){return Ru(this,void 0,void 0,function*(){return this.newRoute=e,this.newView=yield t.createView(),this.newView.bind(e.allTypedParams,Ly.create(this)),this.newView.appendTo(this.host),yield t.transition.begin(this.host,this.view,this.newView),{commit:this.renderOperationCommit.bind(this,t.layout,t.transition),rollback:this.renderOperationRollback.bind(this,t.transition)}})}connect(){this.isConnected=!0,this.tryConnect()}disconnect(){null===this.parent?(null!==this.navigationQueue&&(this.navigationQueue.disconnect(),this.navigationQueue=null),null!==this.linkHandler&&(this.linkHandler.disconnect(),this.linkHandler=null)):this.parent.removeContributor(this),this.isConnected=!1,this.parentRouter=void 0}addContributor(e){this.contributors.add(e)}removeContributor(e){this.contributors.delete(e)}tryConnect(){null!==this.config&&this.isConnected&&(null===this.parent?(null!==this.navigationQueue&&this.navigationQueue.disconnect(),this.navigationQueue=this.config.createNavigationQueue(),this.navigationQueue.connect(),this.navigationQueue.receive().then(this.onNavigationMessage),null!==this.linkHandler&&this.linkHandler.disconnect(),this.linkHandler=this.config.createLinkHandler(),this.linkHandler.connect()):(this.config.parent=this.parent.config,this.parent.addContributor(this)))}renderOperationCommit(e,t){return Ru(this,void 0,void 0,function*(){yield e.beforeCommit(this.host),yield t.commit(this.host,this.view,this.newView),yield e.afterCommit(this.host),null!==this.view&&this.view.dispose(),this.route=this.newRoute,this.view=this.newView,this.newRoute=null,this.newView=null})}renderOperationRollback(e){return Ru(this,void 0,void 0,function*(){null!==this.newView&&(yield e.rollback(this.host,this.view,this.newView),this.newView.dispose(),this.newRoute=null,this.newView=null)})}navigate(e){return Ru(this,void 0,void 0,function*(){yield this.tunnel(e)})}leave(e){return Ru(this,void 0,void 0,function*(){if(yield this.tunnel(e),!e.canceled){const t=this.contributors;this.contributors=new Set,e.onCancel(()=>this.contributors=t)}})}construct(e){return Ru(this,void 0,void 0,function*(){if(null!==this.parent){const t=e.route.allParams[uy]||"",i=yield this.config.recognizeRoute(t);if(null===i){return this.config.createEventSink().onUnhandledNavigationMessage(this,new Pb(t)),void e.cancel()}this.childRoute=i.route,this.childCommandContributor=yield i.command.createContributor(this,i.route)}yield this.tunnel(e)})}enter(e){return Ru(this,void 0,void 0,function*(){yield this.tunnel(e)})}commit(e){return Ru(this,void 0,void 0,function*(){yield this.tunnel(e)})}tunnel(e){return Ru(this,void 0,void 0,function*(){const t=this.childRoute,i=this.childCommandContributor;if(t&&i&&(yield e.evaluateContributor(i,t,this)),e.canceled)return;const c=[...this.config.findContributors(e.name),...Array.from(this.contributors)];for(const t of c)if(yield e.evaluateContributor(t,void 0,this),e.canceled)return})}}const Ly=Object.freeze({create:e=>Object.create(L,{router:{value:e}})}),xy=Object.freeze({default:Object.freeze({begin(e,t,i){return Ru(this,void 0,void 0,function*(){})},rollback(e,t,i){return Ru(this,void 0,void 0,function*(){})},commit(e,t,i){return Ru(this,void 0,void 0,function*(){})}})});class My{constructor(e=null,t=null,i=!0){this.template=e,this.runBeforeCommit=i,this.styles=null==t?null:Array.isArray(t)?Z.create(t):t instanceof Z?t:Z.create([t])}beforeCommit(e){return Ru(this,void 0,void 0,function*(){this.runBeforeCommit&&this.apply(e)})}afterCommit(e){return Ru(this,void 0,void 0,function*(){this.runBeforeCommit||this.apply(e)})}apply(e){e instanceof ze&&(e.$fastController.template!==this.template&&(e.$fastController.template=this.template),e.$fastController.styles!==this.styles&&(e.$fastController.styles=this.styles))}}const wy=Object.freeze({default:new My(K`<slot></slot>`)});function Sy(e,t){return t in e}const ky={lifecycle:!0,parameters:!0};class Ey extends x{constructor(e){super(),this.options=e}createPlaceholder(e){return p.createCustomAttributePlaceholder("fast-navigation-contributor",e)}createBehavior(e){return new $y(e,this.options)}}class $y{constructor(e,t){this.contributor=e,this.options=t,this.router=null}bind(e,t){if(this.options.lifecycle&&(this.router=t.router||zy.find(this.contributor),this.router.addContributor(this.contributor)),this.options.parameters){const t=this.contributor,i=e;for(const e in i)t[e]=i[e]}}unbind(e){null!==this.router&&this.router.removeContributor(this.contributor)}}function Ny(e){return new Ey(Object.assign({},ky,e))}class Ay{createContributor(){return Ru(this,void 0,void 0,function*(){return{navigate(e){return Ru(this,void 0,void 0,function*(){e.cancel()})}}})}}class Oy{constructor(e){this.redirect=e}createContributor(){return Ru(this,void 0,void 0,function*(){const e=this.redirect;return{navigate(t){return Ru(this,void 0,void 0,function*(){const i=t.router.config,c=(yield i.generateRouteFromName(e,t.route.allParams))||(yield i.generateRouteFromPath(e,t.route.allParams));if(null===c)throw new Error(`Invalid redirect. Name or path not found: ${e}`);t.cancel(()=>Ru(this,void 0,void 0,function*(){return jb.path.replace(c)}))})}}})}}function Ty(e){return K`<${e} ${Ny()}></${e}>`}function Ry(e){const t=document.createDocumentFragment();t.appendChild(e);const i=new G(t,[Ny().createBehavior(e)]);return{create:()=>i}}class Iy{constructor(e,t,i){this.router=e,this.route=t,this.command=i}construct(e){return Ru(this,void 0,void 0,function*(){this.router.shouldRender(this.route)?(this.operation=yield this.router.beginRender(this.route,this.command),e.onCancel(()=>this.operation.rollback())):e.cancel()})}commit(e){return Ru(this,void 0,void 0,function*(){yield this.operation.commit(),this.command.title&&e.setTitle(this.command.title)})}}class Dy{constructor(e,t){this.owner=e,this.createView=t,this._layout=null,this._transition=null,this.title=""}get transition(){return this._transition||this.owner.defaultTransition}set transition(e){this._transition=e}get layout(){return this._layout||this.owner.defaultLayout}set layout(e){this._layout=e}createContributor(e,t){return Ru(this,void 0,void 0,function*(){return new Iy(e,t,this)})}static fromDefinition(e,t){let i;i="template"in t?()=>Ru(this,void 0,void 0,function*(){let e=t.template;return"function"==typeof e&&(e=yield e()),e.create()}):()=>Ru(this,void 0,void 0,function*(){let e=t.element,i=null;if(t.factory)i=t.factory;else if("function"==typeof e){let t=pe.forType(e);if(t)i=Ty(t.name);else if(e=yield e(),"string"==typeof e)i=Ty(e);else if(e instanceof HTMLElement)i=Ry(e);else{if(t=pe.forType(e),!t)throw new Error("Invalid value for element in route config.");i=Ty(t.name)}}else e instanceof HTMLElement?t.factory=i=Ry(e):t.factory=i=Ty(e);return i.create()});const c=new Dy(e,i);return t.layout&&(t.layout instanceof W?c.layout=new My(t.layout):c.layout=t.layout),t.transition&&(c.transition=t.transition),t.title&&(c.title=t.title),c}}class Fy{constructor(){this.handler=e=>{const{shouldHandleEvent:t,href:i}=this.getEventInfo(e);t&&(e.preventDefault(),jb.path.push(i))}}connect(){window.addEventListener("click",this.handler,!0)}disconnect(){window.removeEventListener("click",this.handler)}getEventInfo(e){const t={shouldHandleEvent:!1,href:null,anchor:null},i=this.findClosestAnchor(e);if(!i||!this.targetIsThisWindow(i))return t;if(i.hasAttribute("download")||i.hasAttribute("router-ignore")||i.hasAttribute("data-router-ignore"))return t;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return t;const c=i.getAttribute("href");t.anchor=i,t.href=c;const o=1===e.which,s=c&&!("#"===c.charAt(0)||/^[a-z]+:/i.test(c));return t.shouldHandleEvent=o&&!!s,t}findClosestAnchor(e){const t=e.composedPath();for(let e=0,i=t.length;e<i;++e){const i=t[e];if("A"===i.tagName)return i}return e.target}targetIsThisWindow(e){const t=e.getAttribute("target");return!t||t===window.name||"_self"===t}}class Hy{constructor(e,t,i,c,o){this.name=e,this.commitActions=c,this.cancelActions=o,this.routes=[],this.routers=[],this.canceled=!1,this.titles=[],this.routes.push(t),this.routers.push(i)}get route(){return this.routes[this.routes.length-1]}get router(){return this.routers[this.routers.length-1]}cancel(e){this.canceled=!0,e&&this.cancelActions.push(e)}onCommit(e){this.commitActions.push(e)}onCancel(e){this.cancelActions.push(e)}setTitle(e){const t=this.router.level;for(;this.titles.length<t+1;)this.titles.push([]);this.titles[t].push(e)}evaluateContributor(e,t=this.route,i=this.router){return Ru(this,void 0,void 0,function*(){Sy(e,this.name)&&(this.routes.push(t),this.routers.push(i),yield e[this.name](this),this.routes.pop(),this.routers.pop())})}}class _y{constructor(){this.phases=["navigate","leave","construct","enter","commit"]}run(e,t){return Ru(this,void 0,void 0,function*(){const i=e.config.createEventSink(),c=yield e.config.recognizeRoute(t.path);if(null===c)return void i.onUnhandledNavigationMessage(e,t);const o=c.route,s=c.command;i.onNavigationBegin(e,o,s);const a=[],n=[];let r=a;const l=[yield s.createContributor(e,o),e,this];for(const t of this.phases){const c=new Hy(t,o,e,a,n);if(i.onPhaseBegin(c),c.canceled)r=n;else for(const e of l)if(yield c.evaluateContributor(e),c.canceled){r=n;break}if(i.onPhaseEnd(c),c.canceled)break}yield Promise.all(r.map(e=>e())).then(()=>i.onNavigationEnd(e,o,s))})}commit(e){const t=e.router.config.createTitleBuilder();document.title=t.buildTitle(e.router.config.title,e.titles)}}class Py{constructor(e=" - ",t=":"){this.segmentSeparator=e,this.fragmentSeparator=t}joinTitles(e,t){return""===e?t:""===t?e:`${e}${this.segmentSeparator}${t}`}buildTitle(e,t){let i=e;for(const e of t){i&&(i+=this.segmentSeparator);let t="";for(const i of e)t&&(t+=this.fragmentSeparator),t+=i;i+=t}return i}}class Vy{onUnhandledNavigationMessage(e,t){}onNavigationBegin(e,t,i){}onPhaseBegin(e){}onPhaseEnd(e){}onNavigationEnd(e,t,i){}}class By{constructor(){this.isConfigured=!1,this.routes=new gy(this),this.contributors=[],this.defaultLayout=wy.default,this.defaultTransition=xy.default,this.title="",this.parent=null}createNavigationQueue(){return this.construct(qb)}createLinkHandler(){return this.construct(Fy)}createNavigationProcess(){return new _y}createEventSink(){return this.construct(Vy)}createTitleBuilder(){return this.construct(Py)}createRouteRecognizer(){return this.construct(ay)}construct(e){return null!==this.parent?this.parent.construct(e):new e}recognizeRoute(e){return Ru(this,void 0,void 0,function*(){return yield this.ensureConfigured(),this.routes.recognize(e)})}generateRouteFromName(e,t){return Ru(this,void 0,void 0,function*(){return yield this.ensureConfigured(),this.routes.generateFromName(e,t)})}generateRouteFromPath(e,t){return Ru(this,void 0,void 0,function*(){return yield this.ensureConfigured(),this.routes.generateFromPath(e,t)})}findContributors(e){return this.contributors.filter(t=>Sy(t,e))}cached(e){let t=null;return()=>Ru(this,void 0,void 0,function*(){return null===t&&(t=new e),t})}ensureConfigured(){return Ru(this,void 0,void 0,function*(){this.isConfigured||(yield this.configure(),this.isConfigured=!0)})}}let Uy=class extends(zy.from(ze)){};Uy=Ou([Ce("fast-router")],Uy);const jy=[];setTimeout(()=>{jy.length&&console.warn(`${jy.length} attribute deprecation notice(s):\n ${jy.join("\n")}`)},5e3);const qy="reauthActionLock";var Gy;function Wy(){return Ru(this,arguments,void 0,function*(e={}){const{reloadOnFailure:t=!0}=e;if(function(){const e=parseInt(localStorage.getItem(qy)||"0");Date.now()-e>3e4&&localStorage.removeItem(qy)}(),localStorage.getItem(qy)||(localStorage.setItem(qy,Date.now().toString()),0))return Gy.HANDLED_BY_OTHER_TAB;try{if(yield function(){return Ru(this,void 0,void 0,function*(){const e=yield fetch(Kf,{credentials:"include"});return"EVENT_LOGIN_DETAILS_ACK"===(yield e.json()).MESSAGE_TYPE})}())return Gy.ALREADY_VALID;return(yield function(){return Ru(this,void 0,void 0,function*(){const e=mt.getOrCreateDOMContainer().get(Sb);return"EVENT_LOGIN_AUTH_ACK"===(yield e.post(Yf,{body:JSON.stringify({DETAILS:{},MESSAGE_TYPE:"EVENT_LOGIN_AUTH"})})).MESSAGE_TYPE})}())?Gy.SUCCESS:(t&&window.location.reload(),Gy.FAILED)}finally{localStorage.removeItem(qy)}})}!function(e){e.SUCCESS="SUCCESS",e.FAILED="FAILED",e.HANDLED_BY_OTHER_TAB="HANDLED_BY_OTHER_TAB",e.ALREADY_VALID="ALREADY_VALID"}(Gy||(Gy={}));const Yy=(e,t)=>((null==t?void 0:t.ROW)&&e&&e.length>0?t.ROW.forEach(t=>{const i=t;if(i&&i.DETAILS){const c=i.DETAILS.ROW_REF,o=i.DETAILS.OPERATION;"INSERT"===o&&(e.find(e=>{var t;return(null===(t=e.DETAILS)||void 0===t?void 0:t.ROW_REF)===c})||e.unshift(i)),"DELETE"===o&&(e=e.filter(e=>{var i,c;return(null===(i=t.DETAILS)||void 0===i?void 0:i.ROW_REF)!==(null===(c=e.DETAILS)||void 0===c?void 0:c.ROW_REF)})),"MODIFY"===o&&(e=e.map(e=>{var t;return(null===(t=e.DETAILS)||void 0===t?void 0:t.ROW_REF)===c?Object.assign(Object.assign({},e),i):e}))}}):!t||e&&0!==e.length||(e=[...new Set(t.ROW)]),e);var Ky;let Zy=Ky=class{get isConnected(){return this._isConnected}set isConnected(e){this._isConnected=e,this.isConnectedSubject.next(this._isConnected)}constructor(e,t,i,c,o,s){var a;this.http=e,this.messageBuilder=t,this.session=i,this.metaCache=c,this.serializer=o,this.config=s,this.isWorking=!1,this._isConnected=!1,this.isConnectedSubject=new cg(this._isConnected),this.isConnected$=null===(a=this.isConnectedSubject)||void 0===a?void 0:a.asObservable(),this.ongoingTurbo={},this.streams=new Map,this.inFlightRequests=new Map,this.ongoingRefresh=null}handleSessionRefresh(){return this.ongoingRefresh||(this.ongoingRefresh=(()=>Ru(this,void 0,void 0,function*(){const e=this.host;this.disconnect();let t=yield Wy();return t===Gy.HANDLED_BY_OTHER_TAB&&(yield new Promise(e=>{setTimeout(e,Ky.REAUTH_WAIT_MS)}),t=yield Wy()),(t===Gy.SUCCESS||t===Gy.ALREADY_VALID)&&(this.connect(e),!0)}))().finally(()=>{this.ongoingRefresh=null})),this.ongoingRefresh}checkHost(){return Ru(this,void 0,void 0,function*(){try{return this.getMessage({MESSAGE_TYPE:Nb.HEARTBEAT_PING,SOURCE_REF:"host check"}).then(e=>e.MESSAGE_TYPE===Nb.HEARTBEAT_PONG)}catch(e){return nf.error(e),!1}})}send(e,t){return Ru(this,void 0,void 0,function*(){if(this.ongoingRefresh){if(!(yield this.ongoingRefresh))throw new Error("Cannot send message: session refresh failed")}return this.http.post(Ky.getUrl(this.host,e),{body:Ky.getBody(e),headers:this.messageBuilder.createHTTPHeadersFromMessage(e)})})}httpMode(){return!0}setValidSession(e){nf.deprecated("setValidSession","Please refrain from calling this API as this state is managed internally.","15.0.0")}connect(e){return Ru(this,void 0,void 0,function*(){return this.host=e,this.host.startsWith("ws")&&(this.host=this.host.replace("ws","http")),this.host.endsWith("/")||(this.host=this.host.concat("/")),this.checkHost().then(e=>(this.isConnected=e,this.session.setSessionStorageItem("hostUrl",this.host),e))})}disconnect(){this.isConnected=!1,this.streams.clear(),this.ongoingTurbo={},this.host=void 0}snapshot(e,t){return Ru(this,void 0,void 0,function*(){const i=this.messageBuilder.createDataLogonMessage(e,t);return nf.debug(`HTTP MODE - ${i.MESSAGE_TYPE} (snapshot) message created -> `,i),this.send(i).then(e=>(this.dataLogoff(i.SOURCE_REF).catch(e=>nf.error(e)),e))})}stream(e,t,i,c){var o,s;const a=this.messageBuilder.createDataLogonMessage(e,c);nf.debug(`HTTP MODE - ${a.MESSAGE_TYPE} (stream) message created -> `,a);const n=a.SOURCE_REF,r=(null===(s=null===(o=this.config.polling)||void 0===o?void 0:o.POLLING_INTERVAL_MAP)||void 0===s?void 0:s[e])||this.config.polling.POLLING_FREQUENCY;this.streams.set(n,{SOURCE_REF:n,POLLING_FREQUENCY:new cg(r),RESOURCE_NAME:e});const l=this.streams.get(n).POLLING_FREQUENCY,d=dv(Kg(this.send(a)),l.pipe(uv(()=>"visible"===document.visibilityState)).pipe(mv(e=>{return void 0===(t=e)&&(t=0),void 0===i&&(i=Lg),t<0&&(t=0),hv(t,t,i);var t,i})).pipe(mv(()=>Kg(this.getMessage(a))))).pipe(gv(()=>this.streams.has(n)),function(e){var t;void 0===e&&(e=1/0);var i=(t=e&&"object"==typeof e?e:{count:e}).count,c=void 0===i?1/0:i,o=t.delay,s=t.resetOnSuccess,a=void 0!==s&&s;return c<=0?jm:Ym(function(e,t){var i,s=0,n=function(){var r=!1;i=e.subscribe(Km(t,function(e){a&&(s=0),t.next(e)},void 0,function(e){if(s++<c){var a=function(){i?(i.unsubscribe(),i=null,n()):r=!0};if(null!=o){var l="number"==typeof o?hv(o):Bg(o(e,s)),d=Km(t,function(){d.unsubscribe(),a()},function(){t.complete()});l.subscribe(d)}else a()}else t.error(e)})),r&&(i.unsubscribe(),i=null,n())};n()})}({count:Ky.MAX_RETRIES,delay:(e,t)=>{const i=e;nf.error(`Retry ${t}/${Ky.MAX_RETRIES}:`,i.status,i);if(!(0===i.status||i.status&&i.status>=bb.BAD_REQUEST&&i.status<bb.INTERNAL_SERVER_ERROR))throw e;return i.status===bb.NOT_FOUND&&this.streams.delete(n),i.status===bb.UNAUTHORIZED?Kg(this.handleSessionRefresh()):hv(Ky.RETRY_DELAY_MS)}}),(h=()=>{nf.debug(`Terminating stream for ${e} - ${n}`),this.dataLogoff(n)},Ym(function(e,t){try{e.subscribe(t)}finally{t.add(h)}})));var h;return this.streams.get(n).STREAM=d,d}streamState(e,t=()=>{},i=()=>{},c,o=[]){return this.stream(e,t,i,c).pipe(fv(Yy,o))}streamWithoutAutoTeardown(e,t,i,c){return nf.deprecated("streamWithoutAutoTeardown","Please use 'stream' api instead.","15.0.0"),this.stream(e,t,i,c)}getMessage(e){return Ru(this,void 0,void 0,function*(){if(this.ongoingRefresh){if(!(yield this.ongoingRefresh))throw new Error("Cannot get message: session refresh failed")}return this.http.get(Ky.getUrl(this.host,e),{headers:this.messageBuilder.createHTTPHeadersFromMessage(e)})})}getMoreRows(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return nf.debug(`HTTP MODE - ${t.MESSAGE_TYPE} message created -> `,t),this.send(t)})}getMoreColumns(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createMoreColumnsMessage(e);return this.send(t)})}dataLogoff(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return this.send(t).then(t=>(this.streams.has(e)&&(nf.debug(`Removing stream ${e}`),this.streams.delete(e)),t))})}getMetadata(e){return Ru(this,arguments,void 0,function*(e,t=!0){if(t&&this.metaCache.hasMetadataFor(e))return nf.debug(`HTTP MODE - Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const i=this.messageBuilder.createMetaRequestMessage(e);nf.debug(`HTTP MODE - ${i.MESSAGE_TYPE} (metadata) message created -> `,i);const c=yield this.send(i).then(e=>e.DETAILS);return Object.keys(c).length&&this.metaCache.setMetadataFor(e,c),c})}getJSONSchema(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createMetaRequestMessage(e,Ab.JSON_SCHEMA_REQUEST);return nf.debug(`HTTP MODE! - ${t.MESSAGE_TYPE} (json schema) message created -> `,t),this.send(t)})}request(e,t){return Ru(this,arguments,void 0,function*(e,t,i=!1){const c=Ib(e,t);if(i&&this.metaCache.hasRequestFor(c))return nf.debug(`HTTP MODE - Cached request response retrieved for ${c}`),this.metaCache.getRequestFor(c);const o=this.inFlightRequests.get(c);if(o)return nf.debug(`HTTP MODE - In-flight request collapsed for ${c}`),o;const s=this.messageBuilder.createRequestMessage(e,t);nf.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (request server) message created -> `,s);let a=Ky.getUrl(this.host,s);const n=[];s.REQUEST&&Object.keys(s.REQUEST).length>0&&Object.keys(s.REQUEST).forEach(e=>{const t=s.REQUEST[e];null==t||Number.isNaN(t)||n.push(`REQUEST.${e}=${encodeURIComponent(String(t))}`)}),s.DETAILS&&Object.keys(s.DETAILS).forEach(e=>{const t=s.DETAILS[e];null==t||Number.isNaN(t)||n.push(`${e}=${encodeURIComponent(String(t))}`)}),n.length>0&&(a=`${a}?${n.join("&")}`),nf.debug(`HTTP MODE! - REQUEST_SERVER GET URL: ${a}`);const r=this.http.get(a,{headers:this.messageBuilder.createHTTPHeadersFromMessage(s)}).finally(()=>{this.inFlightRequests.delete(c)});this.inFlightRequests.set(c,r);const l=yield r;return i&&l&&this.metaCache.setRequestFor(c,l),l})}getAvailableResources(e){return Ru(this,arguments,void 0,function*(e,t=!0){if(t&&this.metaCache.hasResources())return nf.debug("HTTP MODE - Cached resources retrieved"),this.metaCache.getResources();const i=this.messageBuilder.createResourcesMessage(e);nf.debug(`HTTP MODE! - ${i.MESSAGE_TYPE} (getResources) message created -> `,i);const c=yield this.send(i);return this.metaCache.setResources(c),c})}commitEvent(e,t){return Ru(this,void 0,void 0,function*(){const i=this.messageBuilder.createCommitMessage(e,t);return nf.debug(`HTTP MODE! - ${i.MESSAGE_TYPE} (commit) message created -> `,i),this.send(i).then(t=>(this.maybeTurbo(e,t),t))})}maybeTurbo(e,t){var i;if(!(null===(i=null==t?void 0:t.MESSAGE_TYPE)||void 0===i?void 0:i.endsWith("_ACK")))return;if(this.ongoingTurbo[e])return void nf.debug(`${e} polling frequency is already accelerated.`);const c=this.config.polling.POLLING_MAP[e];if(!(null==c?void 0:c.TEMP_FREQUENCY)||!c.AMOUNT_OF_POLLS)return;const o=c.TEMP_FREQUENCY,s=o*c.AMOUNT_OF_POLLS,a=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP)),n=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP));for(const e of c.QUERIES)n[e]=o,a[e]||(a[e]=this.config.polling.POLLING_FREQUENCY);nf.debug(`${e} TRIGGERED -> ENFORCING TURBO | FREQUENCY=${o}ms DURATION=${s}`),this.ongoingTurbo[e]=!0,this.updateIntervals({polling:{POLLING_INTERVAL_MAP:n}}),setTimeout(()=>{nf.debug(`RESTORED ORIGINAL POLLING INTERVALS FOR ${e}`),this.updateIntervals({polling:{POLLING_INTERVAL_MAP:a}}),this.ongoingTurbo[e]=!1},s)}updateIntervals(e){const{POLLING_INTERVAL_MAP:t}=e.polling;t&&(this.config.polling.POLLING_INTERVAL_MAP=t,this.handlePollingIntervalMapUpdate(t))}handlePollingIntervalMapUpdate(e){if(e)for(const t in e){if(!e.hasOwnProperty(t))continue;const i=e[t];this.config.polling.POLLING_INTERVAL_MAP[t]=i,nf.debug(`Setting polling frequency for ${t} = ${i}`),[...this.streams.values()].filter(e=>e.RESOURCE_NAME===t).forEach(e=>{var t;return null===(t=null==e?void 0:e.POLLING_FREQUENCY)||void 0===t?void 0:t.next(i)})}}static getBody(e){return JSON.stringify(e)}static getUrl(e,t){const i=t.MESSAGE_TYPE;let c=t.MESSAGE_TYPE.replace(/_/g,"-").toLowerCase();return i===Ab.DATA_LOGON&&(c=t.DETAILS.DATASOURCE_NAME.replace(/_/g,"-").toLowerCase()),`${e}${c}`}};Zy.REAUTH_WAIT_MS=5e3,Zy.RETRY_DELAY_MS=1e3,Zy.MAX_RETRIES=3,Ou([b],Zy.prototype,"host",void 0),Ou([b],Zy.prototype,"isWorking",void 0),Ou([b],Zy.prototype,"_isConnected",void 0),Ou([y],Zy.prototype,"isConnected",null),Zy=Ky=Ou([Tu(0,Sb),Tu(1,Hb),Tu(2,xb),Tu(3,cb),Tu(4,Lm),Tu(5,Eb)],Zy);const Qy=mt.createInterface(e=>e.singleton(Zy));var Xy={url:"",deserializer:function(e){return JSON.parse(e.data)},serializer:function(e){return JSON.stringify(e)}},Jy=function(e){function t(t,i){var c=e.call(this)||this;if(c._socket=null,t instanceof qm)c.destination=i,c.source=t;else{var o=c._config=Nu({},Xy);if(c._output=new tg,"string"==typeof t)o.url=t;else for(var s in t)t.hasOwnProperty(s)&&(o[s]=t[s]);if(!o.WebSocketCtor&&WebSocket)o.WebSocketCtor=WebSocket;else if(!o.WebSocketCtor)throw new Error("no WebSocket constructor can be found");c.destination=new sg}return c}return $u(t,e),t.prototype.lift=function(e){var i=new t(this._config,this.destination);return i.operator=e,i.source=this,i},t.prototype._resetState=function(){this._socket=null,this.source||(this.destination=new sg),this._output=new tg},t.prototype.multiplex=function(e,t,i){var c=this;return new qm(function(o){try{c.next(e())}catch(e){o.error(e)}var s=c.subscribe({next:function(e){try{i(e)&&o.next(e)}catch(e){o.error(e)}},error:function(e){return o.error(e)},complete:function(){return o.complete()}});return function(){try{c.next(t())}catch(e){o.error(e)}s.unsubscribe()}})},t.prototype._connectSocket=function(){var e=this,t=this._config,i=t.WebSocketCtor,c=t.protocol,o=t.url,s=t.binaryType,a=this._output,n=null;try{n=c?new i(o,c):new i(o),this._socket=n,s&&(this._socket.binaryType=s)}catch(e){return void a.error(e)}var r=new km(function(){e._socket=null,n&&1===n.readyState&&n.close()});n.onopen=function(t){if(!e._socket)return n.close(),void e._resetState();var i=e._config.openObserver;i&&i.next(t);var c=e.destination;e.destination=Dm.create(function(t){if(1===n.readyState)try{var i=e._config.serializer;n.send(i(t))}catch(t){e.destination.error(t)}},function(t){var i=e._config.closingObserver;i&&i.next(void 0),t&&t.code?n.close(t.code,t.reason):a.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e._config.closingObserver;t&&t.next(void 0),n.close(),e._resetState()}),c&&c instanceof sg&&r.add(c.subscribe(e.destination))},n.onerror=function(t){e._resetState(),a.error(t)},n.onclose=function(t){n===e._socket&&e._resetState();var i=e._config.closeObserver;i&&i.next(t),t.wasClean?a.complete():a.error(t)},n.onmessage=function(t){try{var i=e._config.deserializer;a.next(i(t))}catch(e){a.error(e)}}},t.prototype._subscribe=function(e){var t=this,i=this.source;return i?i.subscribe(e):(this._socket||this._connectSocket(),this._output.subscribe(e),e.add(function(){var e=t._socket;0===t._output.observers.length&&(!e||1!==e.readyState&&0!==e.readyState||e.close(),t._resetState())}),e)},t.prototype.unsubscribe=function(){var t=this._socket;!t||1!==t.readyState&&0!==t.readyState||t.close(),this._resetState(),e.prototype.unsubscribe.call(this)},t}(ig);const ez=1e4,tz=6e4;var iz;!function(e){e.Linear="linear",e.Exponential="exponential"}(iz||(iz={}));const cz=(e,t)=>{const{reconnectInterval:i=ez}=e,c=i>tz?tz:i,o=Math.round(Math.log2(tz/c));return c*Math.pow(2,t%o)},oz=e=>{const{reconnectInterval:t=ez}=e;return t>tz?tz:t};class sz{constructor(){this.isConfigured=!1,this.isConnecting=!1,this.isConnected=!1,this.isReconnecting=!1,this.reconnectionLimitReached=!1,this.isConnectedSubject=new cg(this.isConnected)}get hasValidSession(){return this.user.isAuthenticated}get isDisconnected(){return!this.isConnected}get isDisconnectedByServer(){return void 0!==this.closedClean&&!this.closedClean}isConnectedChanged(){var e;this.isConnected&&this.resetClosedState(),this.isConnecting=!1,this.isReconnecting=!1,null===(e=this.isConnectedSubject)||void 0===e||e.next(this.isConnected)}isReconnectingChanged(){this.isReconnecting&&(this.reconnectionLimitReached=!1)}resetClosedState(){this.closedCode=void 0,this.closedReason=void 0,this.closedClean=void 0}serialize(){return{isConfigured:this.isConfigured,isConnecting:this.isConnecting,isConnected:this.isConnected,isDisconnected:this.isDisconnected,isDisconnectedByServer:this.isDisconnectedByServer,isReconnecting:this.isReconnecting,reconnectionLimitReached:this.reconnectionLimitReached,hasValidSession:this.hasValidSession,closedCode:this.closedCode,closedReason:this.closedReason,closedClean:this.closedClean}}onClose(e){this.isConnected=!1,this.closedCode=e.code,this.closedReason=e.reason,this.closedClean=e.wasClean}}Ou([b],sz.prototype,"isConfigured",void 0),Ou([b],sz.prototype,"isConnecting",void 0),Ou([b],sz.prototype,"isConnected",void 0),Ou([b],sz.prototype,"isReconnecting",void 0),Ou([b],sz.prototype,"reconnectionLimitReached",void 0),Ou([b],sz.prototype,"closedCode",void 0),Ou([b],sz.prototype,"closedReason",void 0),Ou([b],sz.prototype,"closedClean",void 0),Ou([tb],sz.prototype,"user",void 0);const az=mt.createInterface(e=>e.singleton(sz));class nz{constructor(e){this.interval=e}get workerScript(){return`\n const startTime = Date.now();\n setInterval(function() {\n self.postMessage(Date.now() - startTime);\n }, ${this.interval});\n `}start(e){this.stop(),this.runWorker(e)}stop(){this.worker&&(this.worker.terminate(),delete this.worker)}runWorker(e){this.worker||(this.worker=new Worker(URL.createObjectURL(new Blob([this.workerScript],{type:"text/javascript"}))),this.worker.onmessage=t=>e(t.data))}}class rz extends tg{constructor(){super()}}class lz{constructor(e,t,i,c){this._message=e,this._onMessage=t,this._onError=i,this._isSubscription=c}get sentMessage(){return this._message}get onReceivedMessage(){return this._onMessage}get onReceivedError(){return this._onError}get isSubscription(){return this._isSubscription}}let dz=class{get isConfigured(){return this.status.isConfigured}get isConnecting(){return this.status.isConnecting}get isConnected(){return this.status.isConnected}get isConnectedSubject(){return this.status.isConnectedSubject}get isDisconnected(){return this.status.isDisconnected}get isDisconnectedByServer(){return this.status.isDisconnectedByServer}get isReconnecting(){return this.status.isReconnecting}get hasValidSession(){return nf.deprecated("get hasValidSession","Use `User.isAuthenticated` from `@genesislcap/foundation-user` instead.","15.0.0"),this.user.isAuthenticated}set hasValidSession(e){nf.deprecated("set hasValidSession","Please refrain from calling this API as this state is managed internally.","15.0.0")}get host(){var e;return null!==(e=this.url)&&void 0!==e?e:Bf}constructor(e,t,i,c,o,s,a){this.messageBuilder=e,this.session=t,this.serializer=i,this.uuid=c,this.status=o,this.user=s,this.config=a,this.defaultInterval=1e4,this.secondsMultiplier=1e3,this.heartbeatIsEnabled=!0,this.heartbeatInterval=this.defaultInterval,this.socketMessages=()=>this.wsMessages}get heartbeatLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeatLogging)&&void 0!==t&&t}get messageLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableMessageLogging)&&void 0!==t&&t}connect(e=Bf,t,i){var c;return this.url=e,this.connectOptions=null!=t?t:this.config.connect,this.reconnectOptions=null!=i?i:this.config.reconnect,(null===(c=this.config.isWebSocketExpression)||void 0===c?void 0:c.test(this.host))?new Promise(e=>{var t,i,c,o;nf.info(`${this.isReconnecting?"Reconnecting":"Connecting"} to ${this.url}`),this.status.isConnecting=!this.isReconnecting;(!this.isReconnecting||!(null===(t=this.reconnectOptions)||void 0===t?void 0:t.reconnectStreams))&&this.cleanMessages(),null===(i=this.socketSubscription)||void 0===i||i.unsubscribe(),this.websocket=new Jy({url:this.url,openObserver:{next:()=>{this.session.setSessionStorageItem("hostUrl",this.url),this.status.isConnected=!0,this.prepareHeartbeat(),nf.info("WebSocket connection is now open"),e(this.isConnected)}},closeObserver:{next:t=>{this.status.onClose(t),this.isDisconnectedByServer&&nf.info(`WebSocket connection was closed due an error - Code: ${t.code} ${t.reason?" | Reason: "+t.reason:""}`),e(this.isConnected)}},serializer:e=>this.serializer.serialize(e),deserializer:e=>this.serializer.deserialize(e)});this.socketSubscription=this.websocket.subscribe(null!==(o=null===(c=this.connectOptions)||void 0===c?void 0:c.connectObserver)&&void 0!==o?o:{next:e=>Ru(this,void 0,void 0,function*(){var t;const i=`Response Message received for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,nf.info,i);const{SOURCE_REF:c,MESSAGE_TYPE:o}=e,s=this.getMessageHandler(c,o);if(!s)return void(e.MESSAGE_TYPE===Nb.MSG_NACK&&e.ERROR&&e.ERROR.forEach(t=>{nf.error(`MessageType: ${e.MESSAGE_TYPE} | Error Details:`,t)}));let a=!1;switch(e.MESSAGE_TYPE){case Ab.EVENT_LOGIN_AUTH_ACK:{const i=e.DETAILS;i.HEARTBEAT_INTERVAL_SECS&&void 0===(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatInterval)&&(this.heartbeatInterval=i.HEARTBEAT_INTERVAL_SECS*this.secondsMultiplier,this.prepareHeartbeat());break}case Nb.LOGOUT_ACK:return s.onReceivedMessage.call(this,e),void this.cleanMessages();case Nb.LOGON_ACK:return;case Nb.LOGOFF_ACK:break;case Nb.QUERY_UPDATE:s.isSubscription||this.sendDataLogoff(c);break;case Nb.MSG_NACK:case Nb.LOGON_NACK:a=!0}a?s.onReceivedError.call(this,{receivedMessage:e,sentMessage:s.sentMessage}):s.onReceivedMessage.call(this,e),this.wsMessages.next(e),s.isSubscription||this.removeMessageHandler(c)}),error:e=>{nf.debug("Error found: ",e),this.reconnect()},complete:()=>{var e;this.isDisconnectedByServer&&(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)?this.reconnect():nf.info("Connection is now closed")}}),this.status.isConfigured=!0}):(nf.error(`Specified host (${this.host}) is not valid WebSocket url. Connection will not proceed.`),void nf.warn("Make sure the host url starts with wss:// or ws://"))}handleExpiredSession(){return Ru(this,void 0,void 0,function*(){if(this.session.getSessionStorageItem("refreshToken")){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.send(e);this.session.setAuthResult(t),this.updateSessionAndSubscriptions(t)}else yield this.handleCookieBasedReauth()})}handleCookieBasedReauth(){return Ru(this,void 0,void 0,function*(){const e=yield Wy();e!==Gy.HANDLED_BY_OTHER_TAB?e!==Gy.FAILED&&(yield this.connect()):function(e){const t=i=>{i.key===qy&&null===i.newValue&&(e(),window.removeEventListener("storage",t))};window.addEventListener("storage",t)}(()=>this.connect())})}updateSessionAndSubscriptions(e){(null==e?void 0:e.MESSAGE_TYPE)===Ab.EVENT_LOGIN_AUTH_ACK&&this.wsMessageHandlers.forEach(t=>{t.isSubscription&&(t.sentMessage.SESSION_AUTH_TOKEN=e.SESSION_AUTH_TOKEN,this.websocket.next(t.sentMessage))})}prepareHeartbeat(){var e,t,i,c;this.heartbeatTicker&&this.heartbeatTicker.stop();const o=()=>Ru(this,void 0,void 0,function*(){var e,t,i;if(!this.isConnected)return;const c=this.messageBuilder.createHeartbeatPingMessage(null===(e=this.connectOptions)||void 0===e?void 0:e.verboseHeartbeat);(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatPingCallback)&&this.connectOptions.heartbeatPingCallback(c);const o=yield this.send(c);this.user.isAuthenticated&&!o.IS_AUTHENTICATED&&this.handleExpiredSession(),(null===(i=this.connectOptions)||void 0===i?void 0:i.heartbeatPongCallback)&&this.connectOptions.heartbeatPongCallback(o),this.heartbeatIsEnabled=o.MESSAGE_TYPE===Nb.HEARTBEAT_PONG&&o.SOURCE_REF===c.SOURCE_REF});if(null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeat)&&void 0!==t?t:this.heartbeatIsEnabled){const e=null!==(c=null===(i=this.connectOptions)||void 0===i?void 0:i.heartbeatInterval)&&void 0!==c?c:this.heartbeatInterval;this.heartbeatTicker=new nz(e),this.heartbeatTicker.start(()=>{this.websocket&&this.isConnected&&(o(),this.heartbeatLoggingIsEnabled&&nf.debug(`Sending a heartbeat ping every ${e} ms`))})}}reconnect(){var e,t,i,c,o;const s=!(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)&&!1===(null===(t=this.connectOptions)||void 0===t?void 0:t.enableHeartbeat);if(this.isReconnecting||s)return;this.status.isReconnecting=!0;const a=(null===(i=this.reconnectOptions)||void 0===i?void 0:i.reconnectStrategy)===iz.Exponential?cz:oz,n=this.isConnectedSubject.asObservable().pipe(mv(e=>e?Zg(-1):((e,t)=>new qm(i=>{let c,o=0;return function s(){i.next(o),clearTimeout(c),c=setTimeout(s,t(e,o)),o+=1}(),()=>{clearTimeout(c)}}))(this.reconnectOptions,a).pipe(rv(e=>{var t,i,c;let o;return o=(null===(t=this.connectOptions)||void 0===t?void 0:t.alwaysOn)?e+1:null!==(c=null===(i=this.reconnectOptions)||void 0===i?void 0:i.reconnectAttempts)&&void 0!==c?c:10,e<o?Zg(e):(this.status.reconnectionLimitReached=!0,Qg(()=>new Error(`Max reconnect attempts ${o} reached.`)))}))),gv(()=>this.websocket&&!this.isConnected));n.subscribe(null!==(o=null===(c=this.reconnectOptions)||void 0===c?void 0:c.reconnectObserver)&&void 0!==o?o:{next:e=>{nf.debug(`Attempt no. ${e+1} to reconnect`),this.websocket.complete(),this.connect(this.url,this.connectOptions,this.reconnectOptions)},error:e=>{var t;nf.debug(e),null===(t=this.socketSubscription)||void 0===t||t.unsubscribe(),this.status.isReconnecting=!1},complete:()=>{nf.info(this.isConnected?"Reconnected":"Disconnected"),this.status.isReconnecting=!1,this.wsMessageHandlers.forEach(e=>{e.isSubscription&&this.websocket.next(e.sentMessage)})}})}reset(){this.status.isConnected=!1,this.status.isConfigured=!1,this.websocket&&this.websocket.complete(),this.websocket=null,this.cleanMessages()}cleanMessages(){this.wsMessages&&this.wsMessages.complete(),this.wsMessages=new rz,this.wsMessageHandlers=new Map}send(e,t=!0){if(!this.isConnected)return Promise.reject(new Error("WebSocket connection is closed"));const i=`Sending Message for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,nf.info,i),new Promise((i,c)=>{const o=e=>{i(e)},s=e=>{c(e)};t&&this.setMessageHandler(e,o,s),this.websocket.next(e)})}sendForStream(e,t,i,c){if(!this.isConnected)return Qg(()=>new Error("WebSocket connection is closed"));const o=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,nf.info,o),this.setMessageHandler(e,t,i,!0),p.queueUpdate(()=>this.websocket.next(e)),new qm(t=>{const i=this.wsMessages.pipe(uv(t=>t.SOURCE_REF===e.SOURCE_REF)).subscribe({next:e=>{t.next(e)},error:e=>{t.error(e)},complete:()=>{t.complete()}});return()=>{i.unsubscribe(),this.sendDataLogoff(e.SOURCE_REF),this.removeMessageHandler(e.SOURCE_REF),c&&c()}})}sendForStreamWithoutTeardown(e,t,i){if(!this.isConnected)return Qg(()=>new Error("WebSocket connection is closed"));const c=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,nf.info,c),this.setMessageHandler(e,t,i,!0),this.websocket.next(e),this.wsMessages.pipe(uv(t=>t.SOURCE_REF===e.SOURCE_REF))}setMessageHandler(e,t,i,c=!1){const o=`Setting Message Handler for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,nf.debug,o),this.wsMessageHandlers.set(e.SOURCE_REF,new lz(e,t,i,c))}sendDataLogoff(e){this.send(this.messageBuilder.createDataLogoffMessage(e),!1)}removeMessageHandler(e){this.wsMessageHandlers.delete(e)}getMessageHandler(e,t){const i=`Getting Message Handler for SourceRef: ${e} | MessageType: ${t}`;return this.logMessageTypeFlow(t,nf.debug,i),this.wsMessageHandlers.get(e)}logMessageTypeFlow(e,t,i){switch(e){case Ab.DATA_LOGOFF:t(i);break;case Nb.HEARTBEAT_PING:case Nb.HEARTBEAT_PONG:this.heartbeatLoggingIsEnabled&&t(i);break;default:this.messageLoggingIsEnabled&&t(i)}}};Ou([b],dz.prototype,"websocket",void 0),Ou([b],dz.prototype,"wsMessages",void 0),Ou([b],dz.prototype,"wsMessageHandlers",void 0),Ou([Sb],dz.prototype,"http",void 0),Ou([b],dz.prototype,"heartbeatIsEnabled",void 0),dz=Ou([Tu(0,Hb),Tu(1,xb),Tu(2,Lm),Tu(3,Xv),Tu(4,az),Tu(5,tb),Tu(6,pb)],dz);const hz=mt.createInterface(e=>e.singleton(dz));let uz=class{get isConnected(){return this.socket.isConnected}get isConnectedSubject(){return this.socket.isConnectedSubject}get isConnected$(){var e;return null===(e=this.socket.isConnectedSubject)||void 0===e?void 0:e.asObservable()}get host(){return this.socket.host}constructor(e,t,i,c,o){this.socket=e,this.messageBuilder=t,this.metaCache=i,this.events=c,this.config=o,this.isWorking=!1,this.inFlightRequests=new Map}httpMode(){return!1}setValidSession(e){nf.deprecated("setValidSession","Please refrain from calling this API as this state is managed internally.","15.0.0")}send(e,t){return this.socket.send(e,t)}connect(){return Ru(this,arguments,void 0,function*(e=Bf){return this.socket.reset(),this.socket.connect(e,this.config.connect,this.config.reconnect)})}disconnect(){this.socket.reset()}snapshot(e,t){return Ru(this,void 0,void 0,function*(){const i=this.messageBuilder.createDataLogonMessage(e,t);return nf.debug(`${i.MESSAGE_TYPE} (snapshot) message created -> `,i),this.socket.send(i)})}stream(e,t,i,c){const o=this.messageBuilder.createDataLogonMessage(e,c);nf.debug(`${o.MESSAGE_TYPE} (stream) message created -> `,o);const s=performance.now();let a=null;const n=this.socket.sendForStream(o,(...i)=>{null===a&&(a=performance.now(),nf.debug(`[stream:${e}] time to initial response: ${(a-s).toFixed(2)}ms`)),t(...i)},t=>{i(t),this.events.onStreamErrorEvent(e,n,t)},()=>{this.events.onStreamCompleteEvent(e,n)});return this.events.onStreamEvent(e,o,n,{onMessage:t,onError:i}),n}streamState(e,t=()=>{},i=()=>{},c,o=[]){return this.stream(e,t,i,c).pipe(fv(Yy,o))}streamWithoutAutoTeardown(e,t,i,c){nf.deprecated("streamWithoutAutoTeardown","Please use 'stream' api instead.","15.0.0");const o=this.messageBuilder.createDataLogonMessage(e,c);nf.debug(`${o.MESSAGE_TYPE} (stream without auto-teardown) message created -> `,o);const s=this.socket.sendForStreamWithoutTeardown(o,t,t=>{i(t),this.events.onStreamErrorEvent(e,s,t)});return this.events.onStreamEvent(e,o,s,{onMessage:t,onError:i}),s}getMoreRows(e,t){return Ru(this,void 0,void 0,function*(){const i=this.messageBuilder.createMoreRowsMessage(e,t);return nf.debug(`${i.MESSAGE_TYPE} message created -> `,i),this.socket.send(i,!1)})}getMoreColumns(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createMoreColumnsMessage(e);return this.socket.send(t)})}dataLogoff(e){return Ru(this,void 0,void 0,function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return nf.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t)})}getMetadata(e){return Ru(this,arguments,void 0,function*(e,t=!0){var i;if(t&&this.metaCache.hasMetadataFor(e))return nf.debug(`Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const c=this.messageBuilder.createMetaRequestMessage(e);let o,s;nf.debug(`${c.MESSAGE_TYPE} (metadata) message created -> `,c);try{this.isWorking=!0;const t=yield this.socket.send(c);o=null!==(i=null==t?void 0:t.DETAILS)&&void 0!==i?i:{},Object.keys(o).length&&this.metaCache.setMetadataFor(e,o)}catch(e){throw s=e,nf.error(e),e instanceof Error?e:new Error(String(e))}finally{this.events.onMetadataEvent(e,c,s),this.isWorking=!1}return o})}getJSONSchema(e){return Ru(this,arguments,void 0,function*(e,t=!0){var i;if(t&&this.metaCache.hasJsonSchemaFor(e))return nf.debug(`Cached JsonSchema retrieved for ${e}`),this.metaCache.getJsonSchemaFor(e);const c=this.messageBuilder.createMetaRequestMessage(e,Ab.JSON_SCHEMA_REQUEST);let o;nf.debug(`${c.MESSAGE_TYPE} (json schema) message created -> `,c);try{this.isWorking=!0,o=null!==(i=yield this.socket.send(c))&&void 0!==i?i:{},Object.keys(o).length&&this.metaCache.setJsonSchemaFor(e,o)}catch(e){nf.error(e)}finally{this.isWorking=!1}return o})}request(e,t){return Ru(this,arguments,void 0,function*(e,t,i=!1){const c=Ib(e,t);if(i&&this.metaCache.hasRequestFor(c))return nf.debug(`Cached request response retrieved for ${c}`),this.metaCache.getRequestFor(c);const o=this.inFlightRequests.get(c);if(o)return nf.debug(`In-flight request collapsed for ${c}`),o;const s=this.messageBuilder.createRequestMessage(e,t);nf.debug(`${s.MESSAGE_TYPE} (request server) message created -> `,s);const a=this.socket.send(s).finally(()=>{this.inFlightRequests.delete(c)});this.inFlightRequests.set(c,a);const n=yield a;return i&&n&&this.metaCache.setRequestFor(c,n),n})}getAvailableResources(e){return Ru(this,arguments,void 0,function*(e,t=!0){if(t&&this.metaCache.hasResources())return nf.debug("Cached resources retrieved"),this.metaCache.getResources();const i=this.messageBuilder.createResourcesMessage(e);nf.debug(`${i.MESSAGE_TYPE} (resources) message created -> `,i);const c=yield this.socket.send(i);return this.metaCache.setResources(c),c})}commitEvent(e,t){return Ru(this,void 0,void 0,function*(){const i=this.messageBuilder.createCommitMessage(e,t);nf.debug(`${i.MESSAGE_TYPE} (commit) message created -> `,i);const c=this.socket.send(i);return this.events.onCommitEvent(e,i),c.then(t=>(this.events.onCommitResponseEvent(e,t),t))})}};Ou([b],uz.prototype,"isWorking",void 0),uz=Ou([Tu(0,hz),Tu(1,Hb),Tu(2,cb),Tu(3,ub),Tu(4,pb)],uz);const fz="true"===Pf||Ff("forceHttp"),pz=mt.createInterface(e=>e.singleton(uz)),mz=mt.createInterface(e=>fz?e.aliasTo(Qy):e.aliasTo(pz));class gz{serialize(e){return nf.deprecated("serialize","Use `serialize` from `JSONSerializer` from `@genesislcap/foundation-utils` instead."),JSON.stringify(e)}deserialize(e){return nf.deprecated("deserialize","Use `deserialize` from `JSONSerializer` from `@genesislcap/foundation-utils` instead."),e?"string"==typeof e?JSON.parse(e):e.data?JSON.parse(e.data):e.text().then(e=>JSON.parse(e)):Promise.resolve({})}}
|
|
56
56
|
/*! js-cookie v3.0.7 | MIT */
|
|
57
|
-
function vz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var c in i)"__proto__"!==c&&(e[c]=i[c])}return e}mt.createInterface(e=>e.singleton(gz));var bz={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var yz=function e(t,i){function c(e,c,o){if("undefined"!=typeof document){"number"==typeof(o=vz({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(c,e)+s}}return Object.create({set:c,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],c={},o=0;o<i.length;o++){var s=i[o].split("="),a=s.slice(1).join("=");try{var n=decodeURIComponent(s[0]);if(n in c||(c[n]=t.read(a,n)),e===n)break}catch{}}return e?c[e]:c}},remove:function(e,t){c(e,"",vz({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,vz({},this.attributes,t))},withConverter:function(t){return e(vz({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}(bz,{path:"/"});const zz=mt.createInterface();function Cz(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(nf.warn("PasswordCredential not available in this browser."),!1):(nf.warn("CredentialsContainer not available in this browser."),!1)}const Lz=":";function xz(e="",t=Lz,i){return e.split(t,i).map(e=>e.trim()).filter(e=>""!==e)}function Mz(e,t=Lz){const i="string"==typeof e&&e.trim();return!!i&&i.includes(t)}function wz(e,t=Lz){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function Sz(e,t=Lz){for(const i of e)if(Mz(i,t))return i;return e.find(e=>"string"==typeof e&&""!==e.trim())}function kz(e,t,i){const c="string"==typeof e&&e.trim();return!c||i&&!c.includes(i)||wz(c)>1?i&&t&&i!==t?`${t}:${i}`:t||i:c}function Ez(e="credential"){nf.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const $z={password:!0,mediation:"optional"},Nz={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let Az=class{constructor(e,t=Nz){this.session=e,this.config=t}createBasicCredentials(e){return{type:$b.BASIC,username:e.username,password:e.password,mfaToken:this.getMFAToken()}}createRefreshCredentials(e){var t,i,c;return{type:$b.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(i=null==e?void 0:e.refreshToken)&&void 0!==i?i:this.getRefreshToken(),mfaToken:null!==(c=null==e?void 0:e.mfaToken)&&void 0!==c?c:this.getMFAToken()}}createSSOCredentials(e){var t;return{type:$b.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const i=e&&!!e.id&&!!e.name&&!e.name.includes(Lz)&&wz(e.id)<=1;return t?i&&!!e.password:i}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[i]=xz(t.name||t.id),[c,o]=xz(Sz([t.id,t.name]));return[{id:kz(t.id||t.name,i,o),name:i,password:t.password||""},!0]}catch(e){Ez("PasswordCredential")}if(t)try{const e=t,[i]=xz(e.name||e.username||e.organisation),[c,o]=xz(Sz([e.organisation||e.username||e.name]));return[{id:kz(e.id||e.username||e.name,i,o),name:i,password:e.password||""},!1]}catch(e){Ez("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return Ru(this,void 0,void 0,function*(){if(!Cz())return;const t=new PasswordCredential(e);return nf.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)})}getCredentialsFromContainer(){return Ru(this,arguments,void 0,function*(e=$z){if(Cz())return nf.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)})}storeCredentialsInCookie(e){const t=Au(e,["password"]),i=this.config.cookie.storePasswords?e:t;return nf.debug("Storing credentials in cookie"),!!yz.set(this.config.cookie.name,JSON.stringify(i),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){nf.debug("Getting credentials from cookie");const e=yz.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return Ru(this,void 0,void 0,function*(){if(Cz()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))})}getCredentials(e){return Ru(this,void 0,void 0,function*(){return Cz()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())})}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")||this.session.getLocalStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")||this.session.getLocalStorageItem("refreshToken")}getMFAToken(){return this.session.getSessionStorageItem("mfaToken")}removeCookie(){yz.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username"),this.session.removeLocalStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken"),this.session.removeLocalStorageItem("refreshToken")}removeMFAToken(){this.session.removeSessionStorageItem("mfaToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken(),this.removeMFAToken()}preventSilentAccess(){return Cz()&&navigator.credentials.preventSilentAccess()}};Az=Ou([Tu(0,xb),Tu(1,yt(zz))],Az);const Oz=mt.createInterface(e=>e.singleton(Az)),Tz=e=>Array.isArray(e)?e.map(e=>null!=e?e:""):[],Rz=e=>{try{if("EVENT_LOGIN_AUTH_ACK"===(null==e?void 0:e.MESSAGE_TYPE)){const{DETAILS:c}=e,o={messageType:e.MESSAGE_TYPE,sourceRef:e.SOURCE_REF,userName:e.USER_NAME,updateQueue:e.UPDATE_QUEUE,zeroMqProxyModeEnabled:e.ZERO_MQ_PROXY_MODE_ENABLED,zeroMqProxyInboundPort:e.ZERO_MQ_PROXY_INBOUND_PORT,zeroMqProxyOutboundPort:e.ZERO_MQ_PROXY_OUTBOUND_PORT,userKVs:e.USER,details:c?{system:(i=c.SYSTEM,i?{date:i.DATE}:null),heartbeatIntervalSecs:c.HEARTBEAT_INTERVAL_SECS,failedLoginAttempts:c.FAILED_LOGIN_ATTEMPTS,rejectedLoginAttempts:c.REJECTED_LOGIN_ATTEMPTS,lastLoginDatetime:c.LAST_LOGIN_DATETIME,daysToPasswordExpiry:c.DAYS_TO_PASSWORD_EXPIRY,product:(t=c.PRODUCT,t?t.map(e=>({name:e.NAME,version:e.VERSION})):[])}:null,permission:Tz(e.PERMISSION),profile:Tz(e.PROFILE)};return o}throw new Error("No Entity mapping implementation for provided DTO")}catch(e){throw nf.error(e),e}var t,i};let Iz=class{loggedUserResultChanged(){var e;null===(e=this.isLoggedInSubject)||void 0===e||e.next(this.isLoggedIn)}get isLoggedIn$(){return this.isLoggedInSubject.asObservable()}get isLoggedIn(){return this.currentUser.isAuthenticated}constructor(e,t,i,c,o){this.session=e,this.connect=t,this.messageBuilder=i,this.credentialManager=c,this.currentUser=o,this.isWorking=!1,this.isLoggedInSubject=new cg(this.isLoggedIn),this.currentUser.addAuthenticationChangeListener(e=>{var t;null===(t=this.isLoggedInSubject)||void 0===t||t.next(e.detail)})}login(e){return Ru(this,void 0,void 0,function*(){var t;this.isWorking=!0;try{const i=this.messageBuilder.createLoginMessage(e),c=yield this.connect.send(i);if(!c||c.ERROR||(null===(t=c.DETAILS)||void 0===t?void 0:t.ERROR))throw new Tb(i,c);this.applyAuthResults({authToken:c.SESSION_AUTH_TOKEN,refreshToken:c.REFRESH_AUTH_TOKEN,profiles:c.PROFILE,username:c.USER_NAME,permissions:c.PERMISSION,sessionId:c.SESSION_ID}),this.currentUser.set(Rz(c)),this.session.setAuthResult(c),nf.debug("Login Authentication Result:",c)}catch(e){if(nf.error("Login Authentication Error:",e),!(e instanceof Tb&&e.isIgnorableError()))throw this.removeAuthResults(),this.currentUser.unset(),e;nf.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult})}logout(){return Ru(this,void 0,void 0,function*(){var e;this.isWorking=!0;let t={success:!1};try{const i=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage();const{CODE:c,DETAILS:o,ERROR:s,MESSAGE_TYPE:a,OIDC_LOGOUT_URL:n}=yield this.connect.send(i),r=null!==(e=null==o?void 0:o.ERROR)&&void 0!==e?e:s,l=a===Nb.LOGOUT_NACK;l&&nf.warn("Unexpected Logout NACK received during logout.",r),t={success:a===Nb.LOGOUT_ACK||c===Ob.SESSION_NOT_FOUND||!l,error:r},n&&window.open(n,"_self")}catch(e){const i=new Tb(e.sentMessage,e.receivedMessage);if(nf.error("Logout Authentication Error:",i),!i.isIgnorableError())throw e;nf.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.currentUser.unset(),this.isWorking=!1}return t})}reAuthFromSession(){return Ru(this,void 0,void 0,function*(){const e=yield this.ensureConnection(),t=this.credentialManager.createRefreshCredentials();if(e&&this.credentialManager.validateRefreshCredentials(t)){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===Ab.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.currentUser.set(Rz(t)),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.currentUser.unset(),!1})}ensureConnection(){return Ru(this,void 0,void 0,function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)})}getLoggedUserFromMessage(e){const t=e.USER_NAME,i=e.SESSION_AUTH_TOKEN,c=e.REFRESH_AUTH_TOKEN;return t&&i&&c?{username:t,authToken:i,refreshToken:c,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId}:this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null}};Ou([b],Iz.prototype,"isWorking",void 0),Ou([b],Iz.prototype,"loggedUserResult",void 0),Iz=Ou([Tu(0,xb),Tu(1,mz),Tu(2,Hb),Tu(3,Oz),Tu(4,tb)],Iz);const Dz=mt.createInterface(e=>e.singleton(Iz));function Fz(e,t){const i=new Date(e),c=i.getUTCFullYear(),o=String(i.getUTCMonth()+1).padStart(2,"0"),s=String(i.getUTCDate()).padStart(2,"0");if(t)return`${c}${o}${s}`;return`${c}${o}${s}-${String(i.getUTCHours()).padStart(2,"0")}:${String(i.getUTCMinutes()).padStart(2,"0")}`}function Hz(e,t="ROW_REF"){const i=e=>{var i;const c=null!==(i=e.DETAILS[t])&&void 0!==i?i:e[t],o=Object.assign(Object.assign({},e),{[t]:c});return delete o.DETAILS,o},c=[],o=[],s=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":c.push(i(t));break;case"MODIFY":s.push(i(t));break;case"DELETE":o.push(i(t));break;default:nf.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:c,deletes:o,updates:s,SOURCE_REF:e.SOURCE_REF}}class _z{}_z.MAX_ROWS_250=250,_z.MAX_VIEW_1000=1e3,_z.REQ_REP_POLLING_INTERVAL_MS=1e4,_z.DATASERVER_ROW_ID="ROW_REF",_z.REQUEST_SERVER_ROW_ID="RECORD_ID",_z.DEFAULT_PAGINATION_PAGE_SIZE=25,_z.DEFAULT_REQ_REP_OFFSET=0;const Pz={options:{criteria:"",isSnapshot:!1,maxRows:_z.MAX_ROWS_250,maxView:_z.MAX_VIEW_1000,pollingInterval:_z.REQ_REP_POLLING_INTERVAL_MS,movingView:!1,orderBy:"",resourceName:"",reverse:!1,pollTriggerEvents:[]},criteriaToFields:function(e){if(!e)return{};const t=e.split("&&").map(e=>e.trim()),i={};return t.forEach(e=>{if(e)if(e.startsWith("Expr"))!function(e,t){const i=e.match(/Expr\.(\w+)\(/);if(i)switch(i[1]){case"dateIsToday":{const i=/Expr\.dateIsToday\((\w+)\)/,c=e.match(i);if(c){const[,e]=c,i=new Date;t[`${e}_FROM`]=`${i.toISOString().replace(/-/g,"").split("T")[0]}-00:00`,i.setDate(i.getDate()+1),t[`${e}_TO`]=`${i.toISOString().replace(/-/g,"").split("T")[0]}-00:00`}break}case"dateTimeIsGreaterEqual":{const i=/Expr\.dateTimeIsGreaterEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_FROM`]=i}break}case"dateTimeIsLessEqual":{const i=/Expr\.dateTimeIsLessEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_TO`]=i}break}case"dateIsGreaterEqual":{const i=/Expr\.dateIsGreaterEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_FROM`]=i}break}case"dateIsLessEqual":{const i=/Expr\.dateIsLessEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_TO`]=i}break}case"containsIgnoreCase":{const i=/Expr\.containsIgnoreCase\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[e]=`*${i}*`}break}}}(e,i);else if(/[A-Z_]+\s*(>=|<=)\s*\d+/.test(e)){const t=e.match(/([A-Z_]+)\s*>=\s*(\d+)/);if(t){const[,e,c]=t,o=parseInt(c,10),s=e.toUpperCase(),a=s.includes("DATE")&&!s.includes("DATETIME");i[`${e}_FROM`]=Fz(o,a)}const c=e.match(/([A-Z_]+)\s*<=\s*(\d+)/);if(c){const[,e,t]=c,o=parseInt(t,10),s=e.toUpperCase(),a=s.includes("DATE")&&!s.includes("DATETIME");i[`${e}_TO`]=Fz(o,a)}}else!function(e,t){const i=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),c=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");t[i]=c}(e,i)}),i},dataServerResultFilter:Hz},Vz=mt.createInterface(e=>e.instance(Pz)),Bz=e=>{class t extends e{constructor(){super(),this.hasOwnProperty("onDatasourceStatusChanged")||(this.onDatasourceStatusChanged=e=>{var t;const i=void 0!==this.data;this.resourceName||i||nf.warn("Target classes must have a resourceName or data property to use the DatasourceEventHandler mixin.");const c=e.detail;if(c.name===this.resourceName){const e=null!==(t=this.datasourceStatus)&&void 0!==t?t:{isInitialized:!1,hasMetadata:!1};(e.isInitialized!==c.isInitialized||c.metadataRequired&&e.hasMetadata!==c.hasMetadata)&&(this.datasourceStatus=c)}})}datasourceStatusChanged(e,t){nf.debug("Target classes should override the datasourceStatusChanged method of the DatasourceEventHandler mixin to respond to changes in the target datasource.")}connectedCallback(){super.connectedCallback(),document.addEventListener(nb,this.onDatasourceStatusChanged,{passive:!0,capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(nb,this.onDatasourceStatusChanged,{capture:!0})}}return Ou([b],t.prototype,"datasourceStatus",void 0),t},Uz={throwWhenUnavailable:!0,throwWhenUnknown:!1},jz=mt.createInterface(e=>e.instance(Uz)),qz=ff("genesis-resources");let Gz=class{constructor(e,t){this.connect=e,this.config=t}isValidResource(e){return Ru(this,void 0,void 0,function*(){if(!(e=null==e?void 0:e.trim()))return!1;yield this.fetchResources();return!!this.resources.find(t=>t.RESOURCE_NAME===e)})}getResourceTypeFor(e){return Ru(this,void 0,void 0,function*(){yield this.fetchResources();const t=this.resources.find(t=>t.RESOURCE_NAME===e);if(t)return t.RESOURCE_TYPE;const i=`${e} resource does not exist.`;if(nf.error(i),this.config.throwWhenUnknown)throw new Error(i)})}getAllResources(){return Ru(this,void 0,void 0,function*(){return this.resources||(yield this.fetchResources()),this.resources})}destroy(){this.resources=void 0,this.resourcesPromise=void 0}fetchResources(){return Ru(this,void 0,void 0,function*(){var e;if(this.resources)return Promise.resolve();if(this.resourcesPromise)yield this.resourcesPromise;else{this.resourcesPromise=this.connect.getAvailableResources();const t=yield this.resourcesPromise;if(this.resources=null==t?void 0:t.RESOURCES,!(null===(e=this.resources)||void 0===e?void 0:e.length)){const e="Genesis resources unavailable.";if(nf.error(e),this.config.throwWhenUnavailable)throw new Error(e)}this.postLoadedMessage(),this.resourcesPromise=void 0}})}postLoadedMessage(){const e=mt.getOrCreateDOMContainer().get(qz);e.postMessage("resources-loaded",this.resources),e.close()}};Gz=Ou([Tu(0,mz),Tu(1,jz)],Gz);const Wz=mt.createInterface(e=>e.singleton(Gz));let Yz=class{get initialized(){var e;return!!(null===(e=this.status)||void 0===e?void 0:e.isInitialized)}constructor(e,t,i,c,o){this.connect=e,this.auth=t,this.resources=i,this.config=c,this.connectEvents=o,this.fetchMetadataRequired=!0,this.startStreamRequired=!0,this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.customRequestFields=[],this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.criteriaOnlyRequest=!1,this.loadMoreCount=0,this.readOnly=!0,this._allParams=null,this.pollTrigger$=new tg}triggerPoll(){this.pollTrigger$.next()}validResourceName(e){return nf.deprecated("Datasource.validResourceName","Use `GenesisResources.isValidResource` instead."),!!e&&!!e.trim().length}init(e){return Ru(this,arguments,void 0,function*(e,t=this.fetchMetadataRequired,i=this.startStreamRequired){this.fetchMetadataRequired=t,this.options=Object.assign(Object.assign({},this.config.options),e),this.invalidateCache();const c=this.options.resourceName;if(!(this.connect.isConnected||(yield this.connect.connect())))return nf.error(`Unable to connect to ${this.connect.host} to get ${c} datasource`),this.reportStatus(),!1;return(yield this.resources.isValidResource(c))?(this.resourceType=yield this.resources.getResourceTypeFor(c),this.resourceType?(this.fetchMetadataRequired&&(yield this.fetchAndApplyMetadata(this.options.resourceName),this._allParams=null),nf.debug(`Initializing ${c} datasource from ${this.connect.host}`),!this.options.isSnapshot&&i&&(this.pollTrigger$=new tg,this.stream=yield this.createStream()),nf.debug(`${c} datasource initialization ${this.initialized?"was successful.":"has failed."}`),this.reportStatus(),this.initialized):(nf.error(`Unable to get the resource type for ${c} datasource from ${this.connect.host}`),this.reportStatus(),!1)):(nf.error(`${c} datasource does not exist on ${this.connect.host}`),this.reportStatus(),!1)})}startStream(){return Ru(this,void 0,void 0,function*(){this.options.isSnapshot||void 0!==this.stream||(this.stream=yield this.createStream())})}destroy(){var e,t;nf.debug("Datasource.destroy",null===(e=this.options)||void 0===e?void 0:e.resourceName),this.commitResponseUnsubscribe&&(this.commitResponseUnsubscribe(),this.commitResponseUnsubscribe=void 0),null===(t=this.pollTrigger$)||void 0===t||t.complete(),this.status=void 0,this.fetchMetadataRequired=!0,this.options={},this.resourceType=void 0,this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.criteriaOnlyRequest=!1,this.loadMoreCount=0,this.stream=void 0}get allResourceParams(){var e;if(this._allParams)return this._allParams;let t;if(this.options.orderBy)if(this.criteriaOnlyRequest||(null===(e=this.availableIndexes)||void 0===e?void 0:e.findIndex(e=>e.NAME===this.options.orderBy))>-1)t=this.options.orderBy;else{const e=this.availableIndexes.map(e=>e.NAME);nf.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return this._allParams={CRITERIA_MATCH:this.options.criteria,MAX_ROWS:this.options.maxRows,ORDER_BY:t,VIEW_NUMBER:this.options.viewNumber,FIELDS:this.options.fields,MAX_VIEW:this.options.maxView,MOVING_VIEW:this.options.movingView,REVERSE:this.options.reverse,DISABLE_POLLING:this.options.disablePolling,OFFSET:this.options.offset,POLLING_INTERVAL:this.options.pollingInterval,REQUEST:this.options.request},nf.debug("Getting configured params:",this._allParams),this._allParams}get dataserverOnlyParams(){return{CRITERIA_MATCH:this.allResourceParams.CRITERIA_MATCH,MAX_ROWS:this.allResourceParams.MAX_ROWS,VIEW_NUMBER:this.allResourceParams.VIEW_NUMBER,FIELDS:this.allResourceParams.FIELDS,MAX_VIEW:this.allResourceParams.MAX_VIEW,MOVING_VIEW:this.allResourceParams.MOVING_VIEW,ORDER_BY:this.allResourceParams.ORDER_BY,REVERSE:this.allResourceParams.REVERSE}}get requestOnlyParams(){const e=this.allResourceParams,{REQUEST:t}=e,i=Au(e,["REQUEST"]);return{DETAILS:{CRITERIA_MATCH:this.options.requestAutoSetup?void 0:i.CRITERIA_MATCH,MAX_ROWS:i.MAX_ROWS,OFFSET:i.OFFSET,ORDER_BY:i.ORDER_BY,VIEW_NUMBER:i.VIEW_NUMBER},REQUEST:this.criteriaOnlyRequest?{}:null!=t?t:this.buildRequestFields()}}buildRequestFields(){if(!this.options.requestAutoSetup)return{};const e=Object.fromEntries(this.requestFields.map(e=>[e.NAME,"*"])),t=this.options.criteria?this.config.criteriaToFields(this.options.criteria):{};return Object.assign(Object.assign({},e),t)}updateLoadMoreCount(e){this.loadMoreCount=e}snapshot(e){return Ru(this,void 0,void 0,function*(){switch(nf.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case ab.DATASERVER:return this.connect.snapshot(this.options.resourceName,Object.assign(Object.assign({},this.dataserverOnlyParams),e));case ab.REQUEST_SERVER:return this.connect.request(this.options.resourceName,Object.assign(Object.assign({},this.requestOnlyParams),e));default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}})}snapshotFiltered(){return Ru(this,arguments,void 0,function*(e="ROW_REF"){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0})}createStream(){return Ru(this,void 0,void 0,function*(){if(![ab.DATASERVER,ab.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===ab.DATASERVER?this.createDataserverStream():(nf.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())})}createDataserverStream(){return Ru(this,void 0,void 0,function*(){return this.connect.stream(this.options.resourceName,e=>{},e=>nf.error(e),this.dataserverOnlyParams)})}createReqRepStream(){this.commitResponseUnsubscribe=this.connectEvents.addCommitResponseListener(e=>{var t;const{eventName:i,response:c}=e.detail;this.options.pollTriggerEvents&&this.options.pollTriggerEvents.includes(i)&&(null===(t=c.MESSAGE_TYPE)||void 0===t?void 0:t.endsWith("_ACK"))&&(nf.debug(`Received commit response for ${i}, triggering poll.`),this.triggerPoll())});const e=this.allResourceParams.DISABLE_POLLING?void 0:this.allResourceParams.POLLING_INTERVAL,t=()=>{const e=this.requestOnlyParams;if(this.resourceType===ab.REQUEST_SERVER&&this.loadMoreCount>0){const t=25,i=(this.options.maxRows||t)*(this.loadMoreCount+1);e.DETAILS.MAX_ROWS=i}return av([this.connect.isConnected$,this.auth.isLoggedIn$]).pipe(gv(()=>this.connect.isConnected&&this.auth.isLoggedIn),mv(()=>Kg(this.snapshot(e))))};return e?this.pollTrigger$.pipe(pv(0),mv(()=>hv(0,e).pipe(mv(t)))):this.pollTrigger$.pipe(pv(0),mv(t))}fetchAndApplyMetadata(e){return Ru(this,void 0,void 0,function*(){var t,i,c,o;try{nf.debug(`Requesting metadata for ${this.options.resourceName} Datasource`);const e=yield this.connect.getMetadata(this.options.resourceName);e&&(this.availableIndexes=null!==(t=e.INDEXES)&&void 0!==t?t:[],this.availableSortableFields=null!==(i=e.SORTABLE_FIELDS)&&void 0!==i?i:[],this.availableCriteriaFields=null!==(c=e.CRITERIA_FIELDS)&&void 0!==c?c:[],this.originalFieldDef=lb(e),this.fieldMetadata=rb(this.originalFieldDef),this.requestFields=e.REQUEST_FIELD||[],this.customRequestFields=e.FIELD||[],this.criteriaOnlyRequest=e.CRITERIA_ONLY_REQUEST||!1,this.fetchMetadataRequired=!1),this.status=this.normaliseStatus({isInitialized:!0,metadataRequired:!0,hasMetadata:(null===(o=this.fieldMetadata)||void 0===o?void 0:o.length)>0})}catch(t){nf.error(`Metadata Fetch failed for ${e}:`,t),this.status=this.normaliseStatus({isInitialized:!1,metadataRequired:!0,hasMetadata:!1})}})}reportStatus(e={}){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseStatus(e),nf.debug(`Dispatching '${nb}'`,this.status),null==i||i.dispatchEvent(new CustomEvent(nb,{detail:this.status,bubbles:i!==document,composed:!0}))}normaliseStatus(e){var t,i,c,o,s;const a=null!==(t=e.isInitialized)&&void 0!==t?t:this.initialized,n=null!==(i=e.metadataRequired)&&void 0!==i?i:this.fetchMetadataRequired,r=null!==(c=e.hasMetadata)&&void 0!==c?c:(null===(o=this.fieldMetadata)||void 0===o?void 0:o.length)>0;return{name:null===(s=this.options)||void 0===s?void 0:s.resourceName,type:this.resourceType,isInitialized:a,metadataRequired:n,hasMetadata:r}}invalidateCache(){this._allParams=null}};Ou([b],Yz.prototype,"status",void 0),Ou([b],Yz.prototype,"fetchMetadataRequired",void 0),Ou([b],Yz.prototype,"startStreamRequired",void 0),Ou([b],Yz.prototype,"originalFieldDef",void 0),Ou([b],Yz.prototype,"fieldMetadata",void 0),Ou([b],Yz.prototype,"requestFields",void 0),Ou([b],Yz.prototype,"customRequestFields",void 0),Ou([b],Yz.prototype,"availableIndexes",void 0),Ou([b],Yz.prototype,"availableSortableFields",void 0),Ou([b],Yz.prototype,"availableCriteriaFields",void 0),Ou([b],Yz.prototype,"criteriaOnlyRequest",void 0),Ou([b],Yz.prototype,"loadMoreCount",void 0),Ou([b],Yz.prototype,"readOnly",void 0),Ou([b],Yz.prototype,"stream",void 0),Yz=Ou([Tu(0,mz),Tu(1,Dz),Tu(2,Wz),Tu(3,Vz),Tu(4,hb)],Yz);const Kz=mt.createInterface(e=>e.transient(Yz));class Zz extends Yz{constructor(){super(...arguments),this.entityCache=[],this.entityMap=new Map,this.rowId="ROW_REF",this.initialize=e=>Ru(this,void 0,void 0,function*(){return this.disconnect(),this.options=Object.assign({},e.options),this.mapper=e.mapper,this.initialized=yield this.init(this.options,e.fetchMeta),this.initialized?(this.subscription=this.stream.subscribe(e=>{this.sourceRef=e.SOURCE_REF,this.subscriptionLoggedOff=e.MESSAGE_TYPE===Nb.LOGOFF_ACK;const t=e.ROW;!this.subscriptionLoggedOff&&t&&this.updateCache(this.config.dataServerResultFilter(e,this.rowId))}),!0):(nf.debug(`EntityDatasource init failed for ${this.options.resourceName}`),!1)}),this.disconnect=()=>{var e;null===(e=this.subscription)||void 0===e||e.unsubscribe(),this.entityCache=[]}}get initialized(){return this._initialized}set initialized(e){this._initialized=e}get cache(){if(!this.initialized)throw new Error("Please initialize EntityDatasource before querying.");return this.entityCache}get isEmpty(){return 0===this.entityCache.length}updateCache(e){var t;this.isEmpty,null===(t=e.deletes)||void 0===t||t.forEach(e=>{const t=e[this.rowId];this.entityMap.delete(t)}),this.processRowDataUpdate(e.inserts,!0),this.processRowDataUpdate(e.updates);this.entityCache=[{}].map(e=>this.mapper.fromDTO(e))}processRowDataUpdate(e,t=!1){e.forEach(e=>{const i=e[this.rowId],c=this.entityMap.get(i);if(c&&t)throw new Error("Existing entity found in map while inserting.");const o=this.mapper.fromDTO(e),s=c?Object.assign(Object.assign({},c),o):o;this.entityMap.set(i,s)})}}function Qz(e,t=";"){return e?e.split(t).map(e=>e.trim()).sort((e,t)=>e.localeCompare(t)).join(t):e}mt.createInterface(e=>e.transient(Zz));const Xz="system-health-changed",Jz={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>Ru(void 0,void 0,void 0,function*(){const t=mt.getOrCreateDOMContainer().get(mz),i=yield t.getMoreColumns(e),c=Date.now(),o=i;return{isConnected:i.MESSAGE_TYPE===Nb.MORE_COLUMNS_ACK,lastUpdated:c,lastMessage:o}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:c}=t;mt.getOrCreateDOMContainer().get(hz).sendForStream(e,i,c)}},eC=mt.createInterface(e=>e.instance(Jz));var tC,iC={exports:{}};var cC,oC,sC=(tC||(tC=1,function(e){e.exports=function(e){var t={};function i(c){if(t[c])return t[c].exports;var o=t[c]={i:c,l:!1,exports:{}};return e[c].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,c){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(c,o,function(t){return e[t]}.bind(null,o));return c},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=90)}({17:function(e,t,i){t.__esModule=!0,t.default=void 0;var c=i(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var i=t.match(e);return i&&i.length>0&&i[1]||""},e.getSecondMatch=function(e,t){var i=t.match(e);return i&&i.length>1&&i[2]||""},e.matchAndReturnConst=function(e,t,i){if(e.test(t))return i},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var i=t[0],c=t[1];if(10===i)switch(c){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,i,c){void 0===c&&(c=!1);var o=e.getVersionPrecision(t),s=e.getVersionPrecision(i),a=Math.max(o,s),n=0,r=e.map([t,i],function(t){var i=a-e.getVersionPrecision(t),c=t+new Array(i+1).join(".0");return e.map(c.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(c&&(n=a-Math.min(o,s)),a-=1;a>=n;){if(r[0][a]>r[1][a])return 1;if(r[0][a]===r[1][a]){if(a===n)return 0;a-=1}else if(r[0][a]<r[1][a])return-1}},e.map=function(e,t){var i,c=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(i=0;i<e.length;i+=1)c.push(t(e[i]));return c},e.find=function(e,t){var i,c;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(i=0,c=e.length;i<c;i+=1){var o=e[i];if(t(o,i))return o}},e.assign=function(e){for(var t,i,c=e,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var n=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){c[t]=e[t]})};for(t=0,i=s.length;t<i;t+=1)n();return e},e.getBrowserAlias=function(e){return c.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return c.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,i){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(91))&&c.__esModule?c:{default:c},s=i(18);function a(e,t){for(var i=0;i<t.length;i++){var c=t[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}var n=function(){function e(){}var t,i,c;return e.getParser=function(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t,i)},e.parse=function(e,t){return void 0===t&&(t=null),new o.default(e,t).getResult()},t=e,c=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(i=null)&&a(t.prototype,i),c&&a(t,c),e}();t.default=n,e.exports=t.default},91:function(e,t,i){t.__esModule=!0,t.default=void 0;var c=r(i(92)),o=r(i(93)),s=r(i(94)),a=r(i(95)),n=r(i(17));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var c=!1;"boolean"==typeof t?(c=t,this._hints=i):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==c&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),i=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return i?i.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=n.default.find(c.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=n.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=n.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=n.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return n.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,i={},c=0,o={},s=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(o[t]=a,s+=1):"object"==typeof a&&(i[t]=a,c+=1)}),c>0){var a=Object.keys(i),r=n.default.find(a,function(e){return t.isOS(e)});if(r){var l=this.satisfies(i[r]);if(void 0!==l)return l}var d=n.default.find(a,function(e){return t.isPlatform(e)});if(d){var h=this.satisfies(i[d]);if(void 0!==h)return h}}if(s>0){var u=Object.keys(o),f=n.default.find(u,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var i=this.getBrowserName().toLowerCase(),c=e.toLowerCase(),o=n.default.getBrowserTypeByAlias(c);return t&&o&&(c=o.toLowerCase()),c===i},t.compareVersion=function(e){var t=[0],i=e,c=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(i=e.substr(1),"="===e[1]?(c=!0,i=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?i=e.substr(1):"~"===e[0]&&(c=!0,i=e.substr(1)),t.indexOf(n.default.compareVersions(o,i,c))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},i=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},i=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},i=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"},i=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},i=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},i=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},i=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},i=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},i=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},i=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},i=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},i=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},i=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},i=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},i=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},i=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},i=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},i=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},i=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},i=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},i=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},i=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},i=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},i=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},i=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},i=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},i=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},i=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},i=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},i=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},i=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},i=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},i=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},i=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},i=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return i&&(t.version=i),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},i=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},i=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},i=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},i=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},i=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},i=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},i=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},i=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},i=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},i=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),c=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),s=o.default.getFirstMatch(/se ([\d.]+)x/i,e),a=i||c||s;return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},i=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var i={name:"DuckDuckGo"};if(t){var c=t.getBrandVersion("DuckDuckGo");if(c)return i.version=c,i}var s=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return s&&(i.version=s),i}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var i={name:"Brave"};if(t){var c=t.getBrandVersion("Brave");if(c)return i.version=c,i}return i}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},i=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},i=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},i=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe:function(e){var t={name:"Android Browser"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),i=o.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},i=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return i&&(t.version=i),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),i=o.default.getMacOSVersionName(t),c={name:s.OS_MAP.MacOS,version:t};return i&&(c.versionName=i),c}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),i=o.default.getAndroidVersionName(t),c={name:s.OS_MAP.Android,version:t};return i&&(c.versionName=i),c}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),i={name:s.OS_MAP.WebOS};return t&&t.length&&(i.version=t),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",i={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(i.model=t),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),i=e.test(/like (ipod|iphone)/i);return t&&!i},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),i={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(i.model=t),i}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},i=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},i=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){var t=e.test(/gecko/i),i=e.test(/like gecko/i);return t&&!i},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},i=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},i=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}}];t.default=a,e.exports=t.default}})}(iC)),iC.exports),aC=op(sC);var nC,rC=function(){if(oC)return cC;oC=1,cC=s,s.default=s,s.stable=l,s.stableStringify=l;var e="[...]",t="[Circular]",i=[],c=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,s,a){var r;void 0===a&&(a=o()),n(e,"",0,[],void 0,0,a);try{r=0===c.length?JSON.stringify(e,t,s):JSON.stringify(e,h(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return r}function a(e,t,o,s){var a=Object.getOwnPropertyDescriptor(s,o);void 0!==a.get?a.configurable?(Object.defineProperty(s,o,{value:e}),i.push([s,o,t,a])):c.push([t,o,e]):(s[o]=e,i.push([s,o,t]))}function n(i,c,o,s,r,l,d){var h;if(l+=1,"object"==typeof i&&null!==i){for(h=0;h<s.length;h++)if(s[h]===i)return void a(t,i,c,r);if(void 0!==d.depthLimit&&l>d.depthLimit)return void a(e,i,c,r);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void a(e,i,c,r);if(s.push(i),Array.isArray(i))for(h=0;h<i.length;h++)n(i[h],h,h,s,i,l,d);else{var u=Object.keys(i);for(h=0;h<u.length;h++){var f=u[h];n(i[f],f,h,s,i,l,d)}}s.pop()}}function r(e,t){return e<t?-1:e>t?1:0}function l(e,t,s,a){void 0===a&&(a=o());var n,r=d(e,"",0,[],void 0,0,a)||e;try{n=0===c.length?JSON.stringify(r,t,s):JSON.stringify(r,h(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return n}function d(c,o,s,n,l,h,u){var f;if(h+=1,"object"==typeof c&&null!==c){for(f=0;f<n.length;f++)if(n[f]===c)return void a(t,c,o,l);try{if("function"==typeof c.toJSON)return}catch(e){return}if(void 0!==u.depthLimit&&h>u.depthLimit)return void a(e,c,o,l);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(e,c,o,l);if(n.push(c),Array.isArray(c))for(f=0;f<c.length;f++)d(c[f],f,f,n,c,h,u);else{var p={},m=Object.keys(c).sort(r);for(f=0;f<m.length;f++){var g=m[f];d(c[g],g,f,n,c,h,u),p[g]=c[g]}if(void 0===l)return p;i.push([l,o,c]),l[o]=p}n.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(c.length>0)for(var o=0;o<c.length;o++){var s=c[o];if(s[1]===t&&s[0]===i){i=s[2],c.splice(o,1);break}}return e.call(this,t,i)}}return cC}(),lC=op(rC);const dC=af("network-monitor",{level:ju.info}),hC=Date.now(),uC=(null===(nC=window.navigator)||void 0===nC?void 0:nC.userAgent)?aC.parse(window.navigator.userAgent):void 0,fC=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:lC(e,void 0,2,t);class pC{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>Ru(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;dC.info("Run health checks, triggered by",fC(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const c=yield this.isOnlineCheck();c?dC.debug(`Network connected at ${i}`):dC.warn(`Network disconnected at ${i}`);const o=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),c),s=this.preFlightSocketChecks(o);if(s||dC.debug("Socket pre-flight checks failed"),!c||!s){dC.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const o=e[i.resourceName];return o?(o.sourceRef=[...o.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},c)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:c,resources:e,resourcesAllConnected:!1,socket:o}),void(this.isRunningChecks=!1)}let a=!0;const n=[];this.resources.forEach((e,t)=>{const{resourceName:c,message:o,functions:s}=e,{resourceChecks:r=this.config.resourceChecks,resourceDataLogon:l=this.config.resourceDataLogon}=s,{SOURCE_REF:d}=o;let h,u,f,p,m,g=!1;n.push((()=>Ru(this,void 0,void 0,function*(){var o,s,n;try{dC.debug(`Running health check against ${c}`);const e=yield Promise.race([r(d,t),(s=this.config.checkTimeout,n=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise(e=>{setTimeout(()=>{e(n())},s)}))]);g=e.isConnected,h=e.lastUpdated,u=e.lastMessage,p=e.timeout}catch(e){g=!1,h=this.getNowTimestamp(),f=e,u=null!==(o=null==e?void 0:e.receivedMessage)&&void 0!==o?o:e}return m=(null==u?void 0:u.MESSAGE_TYPE)===Nb.MSG_NACK||Db(u,bb.NOT_FOUND),i=this.getFormattedTimestamp(null!=h?h:this.getNowTimestamp()),g?dC.debug(`${c} is healthy at ${i}`):dC.warn(`${c} is not healthy at ${i}`),u&&dC.debug(`${c} messaged at ${i}`,fC(u)),f&&dC.error(`${c} errored at ${i}`,fC(f)),p&&dC.warn(`${c} timed out at ${i}`),m&&(dC.error(`${c} issue, re-attempting data logon at ${i}`),l(e)),a&&(a=g),{name:c,sourceRef:[d],isConnected:g,lastUpdated:h,lastError:f}}))())});const r=(yield Promise.allSettled(n)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return dC.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});dC.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:c,resources:r,resourcesAllConnected:a,socket:o}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(dC.level=this.config.logLevel)}create(){this.resources?dC.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout(()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")},this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.addEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.addEventListener(e,this.runAllChecks)),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener(({detail:e})=>{const{functions:t,message:i,resourceName:c,stream:o}=e;this.config.ignoredGenesisResources.includes(c)||this.addResource(o,{functions:t,message:i,resourceName:c})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:c,error:o}=e,s=null!==(t=o.receivedMessage)&&void 0!==t?t:o;let a="";Db(s,bb.NOT_FOUND)?a="Please check the resource is running.":Db(s,bb.FORBIDDEN)&&(a="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(c)),dC.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,a,o)})),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener(e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)})),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener(({detail:e})=>{const{resourceName:t,error:i}=e;i&&dC.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.removeEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.removeEventListener(e,this.runAllChecks)),this.unsubscribableObservers.forEach(e=>e()),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?dC.debug:dC.warn)("Emitting 'system-health-changed' event",fC(this.status)),null==i||i.dispatchEvent(new CustomEvent(Xz,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(dC.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return Ru(this,void 0,void 0,function*(){return dC.debug("User requested report stability to Genesis."),dC.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const c=!!t&&e.isConnected,o=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:c,lastUpdated:o})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,c=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:c})}normaliseEventDetail(e){var t,i,c,o;const s=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),a=null!==(c=e.lastUpdated)&&void 0!==c?c:this.getNowTimestamp(),n=null!==(o=e.nextUpdate)&&void 0!==o?o:this.getNextTimestamp(),r=e.isAuthenticated&&this.user?this.user.username:void 0,l=Object.assign(Object.assign({},e),{browserInformation:uC,username:r,isHealthy:s,lastUpdated:a,nextUpdate:n,firstUpdated:hC,runAllChecks:()=>{dC.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(l)});return l}preFlightSocketChecks(e){if(!e.isConfigured)return dC.debug("Socket not configured"),!1;if(e.isReconnecting)return dC.debug("Socket reconnecting"),!1;if(e.isConnecting)return dC.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return dC.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&dC.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return dC.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return Xf(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval(()=>this.runAllChecks("check interval"),this.config.checkInterval)}}Ou([eC],pC.prototype,"config",void 0),Ou([az],pC.prototype,"socketStatus",void 0),Ou([hb],pC.prototype,"connectEvents",void 0),Ou([tb],pC.prototype,"user",void 0),Ou([b],pC.prototype,"status",void 0);const mC=mt.createInterface(e=>e.singleton(pC)),gC={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},vC=mt.createInterface();var bC,yC;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(bC||(bC={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(yC||(yC={}));let zC=class{constructor(e,t,i=gC){this.connect=e,this.user=t,this.kvStorageConfig=i}delete(e){return Ru(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},i=yield this.connect.commitEvent(yC.EVENT_KEY_VALUE_DELETE,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}get(e){return Ru(this,void 0,void 0,function*(){var t;const i={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},c=yield this.connect.request(bC.REQ_KEY_VALUE_READ,i);if(c&&c.REPLY&&c.REPLY.length>0){const t=c.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=If(e);return"string"==typeof t&&t.startsWith("str:")&&(t=If(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=If(t)),t}list(){return Ru(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},i=yield this.connect.request(bC.REQ_KEY_VALUE_LIST,t);if(i&&i.REPLY&&i.REPLY.length>0){return i.REPLY.map(e=>e.KEY)}return[]})}put(e){return Ru(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?Df(e.value):e.value}))}},i=yield this.connect.commitEvent(yC.EVENT_KEY_VALUE_PUT,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}};zC=Ou([Tu(0,mz),Tu(1,tb),Tu(2,yt(vC))],zC),mt.createInterface(e=>e.singleton(zC));class CC{constructor(){this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null,this.isLoggedIn=!1,this.isLoggedInSubject=new cg(!1)}get isLoggedIn$(){return this.isLoggedInSubject.asObservable()}login(e){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextLoginResult)})}logout(){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextLogoutResult)})}reAuthFromSession(){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextReAuthResult)})}setTestUser(e={}){this.currentUser=new eb,this.currentUser.set(Object.assign({userName:"JaneDee",profile:["USER"],permission:["CreateRules"]},e)),this.isLoggedIn=!0,this.isLoggedInSubject.next(!0)}resetTestUser(){this.currentUser=null,this.isLoggedIn=!1,this.isLoggedInSubject.next(!1)}}Ou([b],CC.prototype,"isWorking",void 0),Ou([b],CC.prototype,"loggedUserResult",void 0),Ou([b],CC.prototype,"currentUser",void 0),Ou([b],CC.prototype,"isLoggedIn",void 0);class LC{constructor(){this.fetchMetadataRequired=!0,this.fetchingMetadata=!1,this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.customRequestFields=[],this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.criteriaOnlyRequest=!1}init(e,t){return Promise.resolve(this.initialized)}startStream(){return Promise.resolve()}setMetadata(e){var t,i,c;this.availableIndexes=null!==(t=e.INDEXES)&&void 0!==t?t:[],this.availableSortableFields=null!==(i=e.SORTABLE_FIELDS)&&void 0!==i?i:[],this.availableCriteriaFields=null!==(c=e.CRITERIA_FIELDS)&&void 0!==c?c:[],this.originalFieldDef=lb(e),this.fieldMetadata=rb(this.originalFieldDef),this.requestFields=e.REQUEST_FIELD||[],this.customRequestFields=e.FIELD||[],this.fetchMetadataRequired=!1}unsetMedata(){this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.fetchMetadataRequired=!0}setStream(e){this.stream=Kg(Promise.resolve(e))}unsetStream(){this.stream=void 0}deinit(){}destroy(){}validResourceName(e){return!!e&&!!e.trim().length}getMetadata(e){return Promise.resolve(this.fieldMetadata)}snapshot(e){return Promise.resolve(null)}snapshotFiltered(e){return Promise.resolve(null)}updateData(e){return Promise.resolve()}dataHandler(e){return[]}addView(e){}dropView(e){}setFilter(e,t,i){return Promise.resolve()}clearFilter(e){return Promise.resolve()}createItem(e){return Promise.resolve("")}deleteItem(e){return Promise.resolve()}updateItem(e,t){return Promise.resolve()}get dataserverOnlyParams(){return{}}get requestOnlyParams(){return{}}updateLoadMoreCount(e){}}Ou([b],LC.prototype,"status",void 0),Ou([b],LC.prototype,"fetchMetadataRequired",void 0),Ou([b],LC.prototype,"originalFieldDef",void 0),Ou([b],LC.prototype,"fieldMetadata",void 0),Ou([b],LC.prototype,"requestFields",void 0),Ou([b],LC.prototype,"customRequestFields",void 0),Ou([b],LC.prototype,"availableIndexes",void 0),Ou([b],LC.prototype,"availableSortableFields",void 0),Ou([b],LC.prototype,"availableCriteriaFields",void 0),Ou([b],LC.prototype,"criteriaOnlyRequest",void 0),mt.createInterface(e=>e.aliasTo(tb));const xC=af("foundation-ui");class MC extends(Bz(Wt)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=_z.MAX_ROWS_250,this.maxView=_z.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new cg(new Map),this.fetchGeneration=0}criteriaChanged(e,t){const i=e!==Qz(t,";");this.refetchIfInitializedAndChanged(i)}dataChanged(e){e&&(this.clearData(),this.reset())}requestChanged(e,t){const i=JSON.stringify(e)!==JSON.stringify(t);this.refetchIfInitializedAndChanged(i)}refetchIfInitializedAndChanged(e){this.datasource.initialized&&e&&this.fetchGenesisData(null)}set datasourceConfig(e){e&&Object.keys(e).forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return Ru(this,arguments,void 0,function*(e=!0){var t,i;null===(t=this.dataSub)||void 0===t||t.unsubscribe(),this.dataSub=void 0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.fetchGeneration+=1;const c=this.fetchGeneration,o=()=>c!==this.fetchGeneration;if(this.data)return void this.syncComponentData(this.data);const s=e||!this.datasource.initialized;s||(this.connect.dataLogoff(this.sourceRef),this.clearData()),this.sourceRef=void 0;const a=yield this.datasource.init(this.datasourceOptions(),s);if(!o())if(a){if(this.isSnapshot){const e=yield this.datasource.snapshot();if(o())return;const t=this.filterSnapshotResult(e);return this.updateRequestPagingState(e,null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0,this.initialRequestOffset()),void this.syncComponentData(t)}xC.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{if(o())return;e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF,"boolean"==typeof e.MORE_ROWS&&(this.moreRowsAvailable=e.MORE_ROWS);const t=e.MESSAGE_TYPE;if(t&&t===Nb.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=Hz(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)})}else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})})}initDatasource(){return Ru(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}canRequestMoreRows(){if(!this.isConnected||!this.datasource||!this.moreRowsAvailable)return!1;switch(this.datasource.resourceType){case ab.REQUEST_SERVER:return!0;case ab.DATASERVER:return!!this.sourceRef&&!this.dataSubWasLoggedOff;default:return!1}}requestMoreRows(){return Ru(this,void 0,void 0,function*(){var e;if(this.canRequestMoreRows())try{if(this.datasource.resourceType===ab.DATASERVER)return void(yield this.connect.getMoreRows(this.sourceRef));const t=this.fetchGeneration,i=this.nextRequestOffset;this.moreRowsAvailable=!1;const c=yield this.datasource.snapshot({DETAILS:Object.assign(Object.assign({},null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS),{OFFSET:i})});if(t!==this.fetchGeneration)return;const o=Array.isArray(null==c?void 0:c.REPLY)?c.REPLY:[];this.updateRequestPagingState(c,o.length,i),o.length>0&&this.handleStreamInserts(o)}catch(e){throw this.moreRowsAvailable=!0,this.handleError({message:`Failed to request more rows for ${this.resourceName}`,loggerType:"error",loggerArgs:[e]}),e}})}filterSnapshotResult(e){if(e)return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?Hz(e).inserts:void 0}updateRequestPagingState(e,t,i){if(Array.isArray(e)||!e)return void(this.moreRowsAvailable=!1);const c=e,o=Number(this.maxRows)||0;this.moreRowsAvailable="boolean"==typeof c.MORE_ROWS?c.MORE_ROWS:t>0&&o>0&&t>=o,this.nextRequestOffset="number"==typeof c.NEXT_OFFSET&&c.NEXT_OFFSET>0?c.NEXT_OFFSET:i+t}initialRequestOffset(){var e,t;return Number(null===(t=null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.OFFSET)||0}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,i;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const c=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(c)}applyDataserverData(e){var t,i,c,o;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(c=e.deletes)||void 0===c?void 0:c.length)>0&&this.handleStreamDeletes(e.deletes),(null===(o=e.updates)||void 0===o?void 0:o.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;return Qz(((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:i,loggerArgs:c=[]}=e;t&&xC[i](t,...c)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find(t=>t.name===e)}getDefaultLabelFormat(e,t){return t===ob.DATE||t===ob.DATETIME?Jf(e,t===ob.DATETIME):e}}Ou([mz],MC.prototype,"connect",void 0),Ou([Kz],MC.prototype,"datasource",void 0),Ou([de({mode:"boolean"})],MC.prototype,"withGridInit",void 0),Ou([de],MC.prototype,"criteria",void 0),Ou([b],MC.prototype,"data",void 0),Ou([de],MC.prototype,"fields",void 0),Ou([de({mode:"boolean"})],MC.prototype,"isSnapshot",void 0),Ou([de],MC.prototype,"maxRows",void 0),Ou([de],MC.prototype,"maxView",void 0),Ou([de],MC.prototype,"orderBy",void 0),Ou([de],MC.prototype,"request",void 0),Ou([de],MC.prototype,"resourceName",void 0),Ou([de({mode:"boolean"})],MC.prototype,"reverse",void 0),Ou([de],MC.prototype,"rowId",void 0),Ou([de({mode:"boolean",attribute:"with-timestamp-formatting"})],MC.prototype,"withTimestampFormatting",void 0);const wC=(e,t)=>!e.composedPath().includes(t),SC=(e,t)=>e.composedPath().includes(t),kC=e=>e.tagName.toLowerCase().split("-")[0];const EC=af("foundation-criteria");var $C;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}($C||($C={}));class NC{constructor(e){this.$$operator=e}static And(){return new NC($C.AND)}static Or(){return new NC($C.OR)}static Not(){return new NC($C.NOT)}static GreaterThan(){return new NC($C.GT)}static GreaterThanOrEqual(){return new NC($C.GE)}static LessThan(){return new NC($C.LT)}static LessThanOrEqual(){return new NC($C.LE)}static NotEqual(){return new NC($C.NE)}static Equal(){return new NC($C.EQ)}get operator(){return this.$$operator}}const AC=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},OC=e=>t=>`${t.field} ${e} ${AC(t)}`,TC={AND:e=>OC($C.AND)(e),OR:e=>OC($C.OR)(e),NOT:e=>OC($C.NOT)(e),GT:e=>OC($C.GT)(e),GE:e=>OC($C.GE)(e),LT:e=>OC($C.LT)(e),LE:e=>OC($C.LE)(e),NE:e=>OC($C.NE)(e),EQ:e=>OC($C.EQ)(e),equals:e=>`${e.field}.equals(${AC(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${AC(e)})`,contains:e=>`Expr.contains(${e.field}, ${AC(e)})`,fieldContains:e=>`${e.field}.contains(${AC(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${AC(e)})`,startsWith:e=>`${e.field}.startsWith(${AC(e)})`,endsWith:e=>`${e.field}.endsWith(${AC(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${AC(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${AC(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${AC(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${AC(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${AC(e)})`},RC=e=>Array.isArray(e)?e:[e],IC="default";class DC{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,NC.And()),this.Or=(e,t={})=>this.withExpression(e,t,NC.Or()),this.Not=(e,t={})=>this.withExpression(e,t,NC.Not())}withExpression(e,t={},i=NC.And()){const{condition:c,join:o,groupName:s}=t,a=(e,t=IC)=>{var s;const a=null!==(s=this.expressions[t])&&void 0!==s?s:[];this.expressions[t]=[...a,{join:i||o,condition:c,expression:e}]};if(Array.isArray(e))if(o){const t=e.filter(e=>{const t=e instanceof NC;return t&&EC.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(s)t.forEach(e=>{a(e,s)});else{const e=(n=o,t.flat().flatMap((e,t,i)=>i.length-1!==t?[e,n]:e));a(e,IC)}}else a(e,IC);else a(e,"string"==typeof e?IC:e.group);var n;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:`(${i.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},i,c)=>this.parseExpression(e,c[i-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,i){const c=[];return i&&t&&c.push(` ${i.operator} `),"string"==typeof e?c.push(e):Array.isArray(e)?(e.forEach((e,t,i)=>{if(e instanceof NC){if(i[t-1]instanceof NC)throw new Error("Adjacent Join operations detected")}}),c.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof NC?c.push(` ${e.operator} `):e&&c.push(e.serialiser(e)),c.join("")}}class FC{constructor(e){this.serialiser=TC.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}let HC=class extends ze{constructor(){super(...arguments),this.criteriaOptions=[],this.createCriteria=e=>{const t=new DC,{field:i,serialiser:c,value:o}=e;return Array.isArray(i)||Array.isArray(o)?t.And(RC(o).map(e=>RC(i).map(t=>(new FC).withField(t).withValue(e).withSerialiser(c).build())),{join:NC.Or()}):t.And((new FC).withField(i).withValue(o).withSerialiser(c).build()),t}}valueChanged(){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}selectedLabelChanged(){const e=this.criteriaOptions.find(e=>e.label===this.selectedLabel);this.value=e?this.createCriteria(e).build():""}itemClickHandler(e){this.selectedLabel===e&&(this.selectedLabel=void 0)}};function _C(e,t){var i;const c=new DC;c.withExpression((new FC).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(TC.containsIgnoreCase).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${c.build()}`:e.criteria=c.build()}Ou([b],HC.prototype,"criteriaOptions",void 0),Ou([b],HC.prototype,"prefix",void 0),Ou([b],HC.prototype,"value",void 0),Ou([b],HC.prototype,"selectedLabel",void 0),HC=Ou([Ce({name:"criteria-segmented-control",template:((e="rapid")=>K`<${e}-segmented-control :value="${Of(e=>e.selectedLabel)}"><slot name="label" slot='label'></slot>${We(e=>e.criteriaOptions,K`<${e}-segmented-item @click=${(e,t)=>t.parent.itemClickHandler(e.label)}value=${e=>e.label}>${e=>e.label}</${e}-segmented-item>`)}</${e}-segmented-control>`)(),styles:Me``})],HC);const PC=(e,t,i)=>K`<${t}-icon tooltip="${()=>e}" name="${()=>i}"></${t}-icon>`,VC=e=>K`<${e}-button id="actiosnMenuTrigger" class="actions-opener${e=>e.open?" opened":""}" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleActionsMenuVisibility()}>${e=>e.open?"✖":K` ${e.name} `}</${e}-button><${e}-menu ${Fe("actionsMenu")}class="actions-menu ${e=>e.classNames}" part="actions-menu">${We(e=>e.allActions,K` ${Ve((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData),K`<${e}-menu-item class="menu-item" tabindex="${(e,t)=>t.index}" disabled style=${(e,t)=>t.parent.hideDisabled?"display:none":""}>${(e,t)=>t.parent.getLabel(e.name)}</${e}-menu-item>`)} ${Ve((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData),K`<${e}-menu-item class="menu-item" tabindex="${(e,t)=>t.index}" @click=${(e,t)=>t.parent.onActionMenuItemClick(e.callback)}style="${e=>e.color?`color: ${e.color};`:""}">${(e,t)=>t.parent.getLabel(e.name)}</${e}-menu-item>`)} `,{positioning:!0})}</${e}-menu>`,BC=K`<div class="actions-container${e=>e.isVertical?" actions-vertical":""}" part="actions-container">${e=>e.getTemplate(kC(e))}</div>`;class UC extends Wt{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=ti(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return VC(e);const t=this.actions.filter(e=>!e.isDisabled||!e.isDisabled(this.rowData));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],(e=>K`<${e}-button appearance="${e=>e.buttonAppearance}" part="actions-opener" class="actions-opener" @click=${e=>null==e?void 0:e.singleOption.callback(e.rowData)}?disabled=${e=>(null==e?void 0:e.singleOption.isDisabled)&&(null==e?void 0:e.singleOption.isDisabled(e.rowData))}>${e=>e.getLabel(null==e?void 0:e.singleOption.name)}</${e}-button>`)(e)):VC(e):void 0}}Ou([b],UC.prototype,"actions",void 0),Ou([de({attribute:"is-vertical",mode:"boolean"})],UC.prototype,"isVertical",void 0),Ou([de({attribute:"add-default-actions",mode:"boolean"})],UC.prototype,"addDefaultActions",void 0),Ou([de({attribute:"auto-close-on-action",mode:"boolean"})],UC.prototype,"autoCloseOnAction",void 0),Ou([b],UC.prototype,"classNames",void 0),Ou([b],UC.prototype,"definition",void 0),Ou([de],UC.prototype,"name",void 0),Ou([de({attribute:"open",mode:"boolean"})],UC.prototype,"open",void 0),Ou([de],UC.prototype,"buttonAppearance",void 0),Ou([de({attribute:"hide-disabled",mode:"boolean"})],UC.prototype,"hideDisabled",void 0),Ou([de({attribute:"hide-menu-single-option",mode:"boolean"})],UC.prototype,"hideMenuSingleOption",void 0),Ou([b],UC.prototype,"singleOption",void 0),UC.compose({baseName:"actions-menu",styles:(e,t)=>Me` ${ku()}`,template:BC});let jC=!1;try{"undefined"!=typeof GENX_ENABLE_AI&&(jC="true"===GENX_ENABLE_AI)}catch(nC){}const qC=()=>jC||Ff("ai");function GC(){return"undefined"!=typeof window&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window)}af("foundation-ai");class WC{getStatus(){return Ru(this,void 0,void 0,function*(){return{provider:"none",model:""}})}interpretCriteria(e,t){return Ru(this,void 0,void 0,function*(){return null})}}class YC{constructor(){this.noopProvider=new WC}get(e){return e===YC.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return YC.DEFAULT_NAME}names(){return[YC.DEFAULT_NAME]}getStatus(e){return Ru(this,void 0,void 0,function*(){var t,i,c;return void 0!==e&&e!==YC.DEFAULT_NAME?null:null!==(c=yield null===(i=(t=this.noopProvider).getStatus)||void 0===i?void 0:i.call(t))&&void 0!==c?c:null})}listStatuses(){return Ru(this,void 0,void 0,function*(){var e,t,i;const c=null!==(i=yield null===(t=(e=this.noopProvider).getStatus)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null;return[{name:YC.DEFAULT_NAME,isDefault:!0,status:c}]})}}YC.DEFAULT_NAME="default";const KC=mt.createInterface(e=>e.singleton(YC)),ZC=Me` :host{display: block;width: 800px}.ai-criteria-search{display: flex;flex-direction: column;gap: calc(${fr} * 2px)}.ai-criteria-search-row{display: flex;flex-direction: row;gap: calc(${fr} * 2px);align-items: center}.criteria-input{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0}.criteria-chips-inline{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0;display: flex;align-items: center;gap: calc(${fr} * 1px);overflow-x: auto;padding: 0 calc(${fr} * 2px);background: var(--neutral-fill-input-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px);scrollbar-width: none}.criteria-chips-inline::-webkit-scrollbar{display: none}.mic-icon{color: var(--neutral-foreground-rest);fill: currentColor}.criteria-toggle-button, .criteria-clear-button{flex-shrink: 0}.criteria-chip{display: inline-flex;align-items: center;flex-shrink: 0;gap: calc(${fr} * 1px);padding: calc(${fr} * 0.5px) calc(${fr} * 2px);background: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(${fr} * 4px);font-size: var(--type-ramp-minus-1-font-size);color: var(--neutral-foreground-rest);white-space: nowrap}.criteria-chip-field{font-weight: 600}.criteria-chip-operator{color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-style: italic}.criteria-chip-remove{display: inline-flex;align-items: center;justify-content: center;width: 14px;height: 14px;padding: 0;margin-left: calc(${fr} * 0.5px);background: none;border: none;cursor: pointer;color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-size: 10px;border-radius: 50%;line-height: 1}.criteria-chip-remove:hover{background: var(--neutral-fill-hover);color: var(--neutral-foreground-rest)}`,QC=K` ${e=>(e=>K` ${Ve(()=>qC(),K`<div class="ai-criteria-search"><div class="ai-criteria-search-row">${Ve(e=>!e.showingChips,K`<${e}-text-area ${Fe("textAreaRef")}class="criteria-input" placeholder="${e=>e.placeholder}" ?disabled=${e=>e.disabled||e.isInterpreting}:value=${Of(e=>e.inputValue,"string","input")}@blur=${e=>e.handleBlur()}rows="1"></${e}-text-area>`)} ${Ve(e=>e.showingChips,K`<div class="criteria-chips-inline">${We(e=>e.criteriaChips,K`<span class="criteria-chip"><span class="criteria-chip-field">${e=>e.fieldLabel}</span><span class="criteria-chip-operator">${e=>e.operatorLabel}</span>${Ve(e=>!!e.valueLabel,K`<span class="criteria-chip-value">${e=>e.valueLabel}</span>`)}<button class="criteria-chip-remove" aria-label="Remove filter" @click=${(e,t)=>t.parent.removeChip(e.groupIndex,e.clauseIndex)}>
|
|
57
|
+
function vz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var c in i)"__proto__"!==c&&(e[c]=i[c])}return e}mt.createInterface(e=>e.singleton(gz));var bz={read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};var yz=function e(t,i){function c(e,c,o){if("undefined"!=typeof document){"number"==typeof(o=vz({},i,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var a in o)o[a]&&(s+="; "+a,!0!==o[a]&&(s+="="+o[a].split(";")[0]));return document.cookie=e+"="+t.write(c,e)+s}}return Object.create({set:c,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var i=document.cookie?document.cookie.split("; "):[],c={},o=0;o<i.length;o++){var s=i[o].split("="),a=s.slice(1).join("=");try{var n=decodeURIComponent(s[0]);if(n in c||(c[n]=t.read(a,n)),e===n)break}catch{}}return e?c[e]:c}},remove:function(e,t){c(e,"",vz({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,vz({},this.attributes,t))},withConverter:function(t){return e(vz({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(i)},converter:{value:Object.freeze(t)}})}(bz,{path:"/"});const zz=mt.createInterface();function Cz(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(nf.warn("PasswordCredential not available in this browser."),!1):(nf.warn("CredentialsContainer not available in this browser."),!1)}const Lz=":";function xz(e="",t=Lz,i){return e.split(t,i).map(e=>e.trim()).filter(e=>""!==e)}function Mz(e,t=Lz){const i="string"==typeof e&&e.trim();return!!i&&i.includes(t)}function wz(e,t=Lz){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function Sz(e,t=Lz){for(const i of e)if(Mz(i,t))return i;return e.find(e=>"string"==typeof e&&""!==e.trim())}function kz(e,t,i){const c="string"==typeof e&&e.trim();return!c||i&&!c.includes(i)||wz(c)>1?i&&t&&i!==t?`${t}:${i}`:t||i:c}function Ez(e="credential"){nf.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const $z={password:!0,mediation:"optional"},Nz={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let Az=class{constructor(e,t=Nz){this.session=e,this.config=t}createBasicCredentials(e){return{type:$b.BASIC,username:e.username,password:e.password,mfaToken:this.getMFAToken()}}createRefreshCredentials(e){var t,i,c;return{type:$b.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(i=null==e?void 0:e.refreshToken)&&void 0!==i?i:this.getRefreshToken(),mfaToken:null!==(c=null==e?void 0:e.mfaToken)&&void 0!==c?c:this.getMFAToken()}}createSSOCredentials(e){var t;return{type:$b.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const i=e&&!!e.id&&!!e.name&&!e.name.includes(Lz)&&wz(e.id)<=1;return t?i&&!!e.password:i}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[i]=xz(t.name||t.id),[c,o]=xz(Sz([t.id,t.name]));return[{id:kz(t.id||t.name,i,o),name:i,password:t.password||""},!0]}catch(e){Ez("PasswordCredential")}if(t)try{const e=t,[i]=xz(e.name||e.username||e.organisation),[c,o]=xz(Sz([e.organisation||e.username||e.name]));return[{id:kz(e.id||e.username||e.name,i,o),name:i,password:e.password||""},!1]}catch(e){Ez("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return Ru(this,void 0,void 0,function*(){if(!Cz())return;const t=new PasswordCredential(e);return nf.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)})}getCredentialsFromContainer(){return Ru(this,arguments,void 0,function*(e=$z){if(Cz())return nf.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)})}storeCredentialsInCookie(e){const t=Au(e,["password"]),i=this.config.cookie.storePasswords?e:t;return nf.debug("Storing credentials in cookie"),!!yz.set(this.config.cookie.name,JSON.stringify(i),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){nf.debug("Getting credentials from cookie");const e=yz.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return Ru(this,void 0,void 0,function*(){if(Cz()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))})}getCredentials(e){return Ru(this,void 0,void 0,function*(){return Cz()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())})}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")||this.session.getLocalStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")||this.session.getLocalStorageItem("refreshToken")}getMFAToken(){return this.session.getSessionStorageItem("mfaToken")}removeCookie(){yz.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username"),this.session.removeLocalStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken"),this.session.removeLocalStorageItem("refreshToken")}removeMFAToken(){this.session.removeSessionStorageItem("mfaToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken(),this.removeMFAToken()}preventSilentAccess(){return Cz()&&navigator.credentials.preventSilentAccess()}};Az=Ou([Tu(0,xb),Tu(1,yt(zz))],Az);const Oz=mt.createInterface(e=>e.singleton(Az)),Tz=e=>Array.isArray(e)?e.map(e=>null!=e?e:""):[],Rz=e=>{try{if("EVENT_LOGIN_AUTH_ACK"===(null==e?void 0:e.MESSAGE_TYPE)){const{DETAILS:c}=e,o={messageType:e.MESSAGE_TYPE,sourceRef:e.SOURCE_REF,userName:e.USER_NAME,updateQueue:e.UPDATE_QUEUE,zeroMqProxyModeEnabled:e.ZERO_MQ_PROXY_MODE_ENABLED,zeroMqProxyInboundPort:e.ZERO_MQ_PROXY_INBOUND_PORT,zeroMqProxyOutboundPort:e.ZERO_MQ_PROXY_OUTBOUND_PORT,userKVs:e.USER,details:c?{system:(i=c.SYSTEM,i?{date:i.DATE}:null),heartbeatIntervalSecs:c.HEARTBEAT_INTERVAL_SECS,failedLoginAttempts:c.FAILED_LOGIN_ATTEMPTS,rejectedLoginAttempts:c.REJECTED_LOGIN_ATTEMPTS,lastLoginDatetime:c.LAST_LOGIN_DATETIME,daysToPasswordExpiry:c.DAYS_TO_PASSWORD_EXPIRY,product:(t=c.PRODUCT,t?t.map(e=>({name:e.NAME,version:e.VERSION})):[])}:null,permission:Tz(e.PERMISSION),profile:Tz(e.PROFILE)};return o}throw new Error("No Entity mapping implementation for provided DTO")}catch(e){throw nf.error(e),e}var t,i};let Iz=class{loggedUserResultChanged(){var e;null===(e=this.isLoggedInSubject)||void 0===e||e.next(this.isLoggedIn)}get isLoggedIn$(){return this.isLoggedInSubject.asObservable()}get isLoggedIn(){return this.currentUser.isAuthenticated}constructor(e,t,i,c,o){this.session=e,this.connect=t,this.messageBuilder=i,this.credentialManager=c,this.currentUser=o,this.isWorking=!1,this.isLoggedInSubject=new cg(this.isLoggedIn),this.currentUser.addAuthenticationChangeListener(e=>{var t;null===(t=this.isLoggedInSubject)||void 0===t||t.next(e.detail)})}login(e){return Ru(this,void 0,void 0,function*(){var t;this.isWorking=!0;try{const i=this.messageBuilder.createLoginMessage(e),c=yield this.connect.send(i);if(!c||c.ERROR||(null===(t=c.DETAILS)||void 0===t?void 0:t.ERROR))throw new Tb(i,c);this.applyAuthResults({authToken:c.SESSION_AUTH_TOKEN,refreshToken:c.REFRESH_AUTH_TOKEN,profiles:c.PROFILE,username:c.USER_NAME,permissions:c.PERMISSION,sessionId:c.SESSION_ID}),this.currentUser.set(Rz(c)),this.session.setAuthResult(c),nf.debug("Login Authentication Result:",c)}catch(e){if(nf.error("Login Authentication Error:",e),!(e instanceof Tb&&e.isIgnorableError()))throw this.removeAuthResults(),this.currentUser.unset(),e;nf.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult})}logout(){return Ru(this,void 0,void 0,function*(){var e;this.isWorking=!0;let t={success:!1};try{const i=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage();const{CODE:c,DETAILS:o,ERROR:s,MESSAGE_TYPE:a,OIDC_LOGOUT_URL:n}=yield this.connect.send(i),r=null!==(e=null==o?void 0:o.ERROR)&&void 0!==e?e:s,l=a===Nb.LOGOUT_NACK;l&&nf.warn("Unexpected Logout NACK received during logout.",r),t={success:a===Nb.LOGOUT_ACK||c===Ob.SESSION_NOT_FOUND||!l,error:r},n&&window.open(n,"_self")}catch(e){const i=new Tb(e.sentMessage,e.receivedMessage);if(nf.error("Logout Authentication Error:",i),!i.isIgnorableError())throw e;nf.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.currentUser.unset(),this.isWorking=!1}return t})}reAuthFromSession(){return Ru(this,void 0,void 0,function*(){const e=yield this.ensureConnection(),t=this.credentialManager.createRefreshCredentials();if(e&&this.credentialManager.validateRefreshCredentials(t)){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===Ab.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.currentUser.set(Rz(t)),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.currentUser.unset(),!1})}ensureConnection(){return Ru(this,void 0,void 0,function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)})}getLoggedUserFromMessage(e){const t=e.USER_NAME,i=e.SESSION_AUTH_TOKEN,c=e.REFRESH_AUTH_TOKEN;return t&&i&&c?{username:t,authToken:i,refreshToken:c,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId}:this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null}};Ou([b],Iz.prototype,"isWorking",void 0),Ou([b],Iz.prototype,"loggedUserResult",void 0),Iz=Ou([Tu(0,xb),Tu(1,mz),Tu(2,Hb),Tu(3,Oz),Tu(4,tb)],Iz);const Dz=mt.createInterface(e=>e.singleton(Iz));function Fz(e,t){const i=new Date(e),c=i.getUTCFullYear(),o=String(i.getUTCMonth()+1).padStart(2,"0"),s=String(i.getUTCDate()).padStart(2,"0");if(t)return`${c}${o}${s}`;return`${c}${o}${s}-${String(i.getUTCHours()).padStart(2,"0")}:${String(i.getUTCMinutes()).padStart(2,"0")}`}function Hz(e,t="ROW_REF"){const i=e=>{var i;const c=null!==(i=e.DETAILS[t])&&void 0!==i?i:e[t],o=Object.assign(Object.assign({},e),{[t]:c});return delete o.DETAILS,o},c=[],o=[],s=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":c.push(i(t));break;case"MODIFY":s.push(i(t));break;case"DELETE":o.push(i(t));break;default:nf.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:c,deletes:o,updates:s,SOURCE_REF:e.SOURCE_REF}}class _z{}_z.MAX_ROWS_250=250,_z.MAX_VIEW_1000=1e3,_z.REQ_REP_POLLING_INTERVAL_MS=1e4,_z.DATASERVER_ROW_ID="ROW_REF",_z.REQUEST_SERVER_ROW_ID="RECORD_ID",_z.DEFAULT_PAGINATION_PAGE_SIZE=25,_z.DEFAULT_REQ_REP_OFFSET=0;const Pz={options:{criteria:"",isSnapshot:!1,maxRows:_z.MAX_ROWS_250,maxView:_z.MAX_VIEW_1000,pollingInterval:_z.REQ_REP_POLLING_INTERVAL_MS,movingView:!1,orderBy:"",resourceName:"",reverse:!1,pollTriggerEvents:[]},criteriaToFields:function(e){if(!e)return{};const t=e.split("&&").map(e=>e.trim()),i={};return t.forEach(e=>{if(e)if(e.startsWith("Expr"))!function(e,t){const i=e.match(/Expr\.(\w+)\(/);if(i)switch(i[1]){case"dateIsToday":{const i=/Expr\.dateIsToday\((\w+)\)/,c=e.match(i);if(c){const[,e]=c,i=new Date;t[`${e}_FROM`]=`${i.toISOString().replace(/-/g,"").split("T")[0]}-00:00`,i.setDate(i.getDate()+1),t[`${e}_TO`]=`${i.toISOString().replace(/-/g,"").split("T")[0]}-00:00`}break}case"dateTimeIsGreaterEqual":{const i=/Expr\.dateTimeIsGreaterEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_FROM`]=i}break}case"dateTimeIsLessEqual":{const i=/Expr\.dateTimeIsLessEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_TO`]=i}break}case"dateIsGreaterEqual":{const i=/Expr\.dateIsGreaterEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_FROM`]=i}break}case"dateIsLessEqual":{const i=/Expr\.dateIsLessEqual\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[`${e}_TO`]=i}break}case"containsIgnoreCase":{const i=/Expr\.containsIgnoreCase\((\w+), ?['"](.+)['"]\)/,c=e.match(i);if(c){const[,e,i]=c;t[e]=`*${i}*`}break}}}(e,i);else if(/[A-Z_]+\s*(>=|<=)\s*\d+/.test(e)){const t=e.match(/([A-Z_]+)\s*>=\s*(\d+)/);if(t){const[,e,c]=t,o=parseInt(c,10),s=e.toUpperCase(),a=s.includes("DATE")&&!s.includes("DATETIME");i[`${e}_FROM`]=Fz(o,a)}const c=e.match(/([A-Z_]+)\s*<=\s*(\d+)/);if(c){const[,e,t]=c,o=parseInt(t,10),s=e.toUpperCase(),a=s.includes("DATE")&&!s.includes("DATETIME");i[`${e}_TO`]=Fz(o,a)}}else!function(e,t){const i=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),c=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");t[i]=c}(e,i)}),i},dataServerResultFilter:Hz},Vz=mt.createInterface(e=>e.instance(Pz)),Bz=e=>{class t extends e{constructor(){super(),this.hasOwnProperty("onDatasourceStatusChanged")||(this.onDatasourceStatusChanged=e=>{var t;const i=void 0!==this.data;this.resourceName||i||nf.warn("Target classes must have a resourceName or data property to use the DatasourceEventHandler mixin.");const c=e.detail;if(c.name===this.resourceName){const e=null!==(t=this.datasourceStatus)&&void 0!==t?t:{isInitialized:!1,hasMetadata:!1};(e.isInitialized!==c.isInitialized||c.metadataRequired&&e.hasMetadata!==c.hasMetadata)&&(this.datasourceStatus=c)}})}datasourceStatusChanged(e,t){nf.debug("Target classes should override the datasourceStatusChanged method of the DatasourceEventHandler mixin to respond to changes in the target datasource.")}connectedCallback(){super.connectedCallback(),document.addEventListener(nb,this.onDatasourceStatusChanged,{passive:!0,capture:!0})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener(nb,this.onDatasourceStatusChanged,{capture:!0})}}return Ou([b],t.prototype,"datasourceStatus",void 0),t},Uz={throwWhenUnavailable:!0,throwWhenUnknown:!1},jz=mt.createInterface(e=>e.instance(Uz)),qz=ff("genesis-resources");let Gz=class{constructor(e,t){this.connect=e,this.config=t}isValidResource(e){return Ru(this,void 0,void 0,function*(){if(!(e=null==e?void 0:e.trim()))return!1;yield this.fetchResources();return!!this.resources.find(t=>t.RESOURCE_NAME===e)})}getResourceTypeFor(e){return Ru(this,void 0,void 0,function*(){yield this.fetchResources();const t=this.resources.find(t=>t.RESOURCE_NAME===e);if(t)return t.RESOURCE_TYPE;const i=`${e} resource does not exist.`;if(nf.error(i),this.config.throwWhenUnknown)throw new Error(i)})}getAllResources(){return Ru(this,void 0,void 0,function*(){return this.resources||(yield this.fetchResources()),this.resources})}destroy(){this.resources=void 0,this.resourcesPromise=void 0}fetchResources(){return Ru(this,void 0,void 0,function*(){var e;if(this.resources)return Promise.resolve();if(this.resourcesPromise)yield this.resourcesPromise;else{this.resourcesPromise=this.connect.getAvailableResources();const t=yield this.resourcesPromise;if(this.resources=null==t?void 0:t.RESOURCES,!(null===(e=this.resources)||void 0===e?void 0:e.length)){const e="Genesis resources unavailable.";if(nf.error(e),this.config.throwWhenUnavailable)throw new Error(e)}this.postLoadedMessage(),this.resourcesPromise=void 0}})}postLoadedMessage(){const e=mt.getOrCreateDOMContainer().get(qz);e.postMessage("resources-loaded",this.resources),e.close()}};Gz=Ou([Tu(0,mz),Tu(1,jz)],Gz);const Wz=mt.createInterface(e=>e.singleton(Gz));let Yz=class{get initialized(){var e;return!!(null===(e=this.status)||void 0===e?void 0:e.isInitialized)}constructor(e,t,i,c,o){this.connect=e,this.auth=t,this.resources=i,this.config=c,this.connectEvents=o,this.fetchMetadataRequired=!0,this.startStreamRequired=!0,this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.customRequestFields=[],this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.criteriaOnlyRequest=!1,this.loadMoreCount=0,this.readOnly=!0,this._allParams=null,this.pollTrigger$=new tg}triggerPoll(){this.pollTrigger$.next()}validResourceName(e){return nf.deprecated("Datasource.validResourceName","Use `GenesisResources.isValidResource` instead."),!!e&&!!e.trim().length}init(e){return Ru(this,arguments,void 0,function*(e,t=this.fetchMetadataRequired,i=this.startStreamRequired){this.fetchMetadataRequired=t,this.options=Object.assign(Object.assign({},this.config.options),e),this.invalidateCache();const c=this.options.resourceName;if(!(this.connect.isConnected||(yield this.connect.connect())))return nf.error(`Unable to connect to ${this.connect.host} to get ${c} datasource`),this.reportStatus(),!1;return(yield this.resources.isValidResource(c))?(this.resourceType=yield this.resources.getResourceTypeFor(c),this.resourceType?(this.fetchMetadataRequired&&(yield this.fetchAndApplyMetadata(this.options.resourceName),this._allParams=null),nf.debug(`Initializing ${c} datasource from ${this.connect.host}`),!this.options.isSnapshot&&i&&(this.pollTrigger$=new tg,this.stream=yield this.createStream()),nf.debug(`${c} datasource initialization ${this.initialized?"was successful.":"has failed."}`),this.reportStatus(),this.initialized):(nf.error(`Unable to get the resource type for ${c} datasource from ${this.connect.host}`),this.reportStatus(),!1)):(nf.error(`${c} datasource does not exist on ${this.connect.host}`),this.reportStatus(),!1)})}startStream(){return Ru(this,void 0,void 0,function*(){this.options.isSnapshot||void 0!==this.stream||(this.stream=yield this.createStream())})}destroy(){var e,t;nf.debug("Datasource.destroy",null===(e=this.options)||void 0===e?void 0:e.resourceName),this.commitResponseUnsubscribe&&(this.commitResponseUnsubscribe(),this.commitResponseUnsubscribe=void 0),null===(t=this.pollTrigger$)||void 0===t||t.complete(),this.status=void 0,this.fetchMetadataRequired=!0,this.options={},this.resourceType=void 0,this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.criteriaOnlyRequest=!1,this.loadMoreCount=0,this.stream=void 0}get allResourceParams(){var e;if(this._allParams)return this._allParams;let t;if(this.options.orderBy)if(this.criteriaOnlyRequest||(null===(e=this.availableIndexes)||void 0===e?void 0:e.findIndex(e=>e.NAME===this.options.orderBy))>-1)t=this.options.orderBy;else{const e=this.availableIndexes.map(e=>e.NAME);nf.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return this._allParams={CRITERIA_MATCH:this.options.criteria,MAX_ROWS:this.options.maxRows,ORDER_BY:t,VIEW_NUMBER:this.options.viewNumber,FIELDS:this.options.fields,MAX_VIEW:this.options.maxView,MOVING_VIEW:this.options.movingView,REVERSE:this.options.reverse,DISABLE_POLLING:this.options.disablePolling,OFFSET:this.options.offset,POLLING_INTERVAL:this.options.pollingInterval,REQUEST:this.options.request},nf.debug("Getting configured params:",this._allParams),this._allParams}get dataserverOnlyParams(){return{CRITERIA_MATCH:this.allResourceParams.CRITERIA_MATCH,MAX_ROWS:this.allResourceParams.MAX_ROWS,VIEW_NUMBER:this.allResourceParams.VIEW_NUMBER,FIELDS:this.allResourceParams.FIELDS,MAX_VIEW:this.allResourceParams.MAX_VIEW,MOVING_VIEW:this.allResourceParams.MOVING_VIEW,ORDER_BY:this.allResourceParams.ORDER_BY,REVERSE:this.allResourceParams.REVERSE}}get requestOnlyParams(){const e=this.allResourceParams,{REQUEST:t}=e,i=Au(e,["REQUEST"]);return{DETAILS:{CRITERIA_MATCH:this.options.requestAutoSetup?void 0:i.CRITERIA_MATCH,MAX_ROWS:i.MAX_ROWS,OFFSET:i.OFFSET,ORDER_BY:i.ORDER_BY,VIEW_NUMBER:i.VIEW_NUMBER},REQUEST:this.criteriaOnlyRequest?{}:null!=t?t:this.buildRequestFields()}}buildRequestFields(){if(!this.options.requestAutoSetup)return{};const e=Object.fromEntries(this.requestFields.map(e=>[e.NAME,"*"])),t=this.options.criteria?this.config.criteriaToFields(this.options.criteria):{};return Object.assign(Object.assign({},e),t)}updateLoadMoreCount(e){this.loadMoreCount=e}snapshot(e){return Ru(this,void 0,void 0,function*(){switch(nf.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case ab.DATASERVER:return this.connect.snapshot(this.options.resourceName,Object.assign(Object.assign({},this.dataserverOnlyParams),e));case ab.REQUEST_SERVER:return this.connect.request(this.options.resourceName,Object.assign(Object.assign({},this.requestOnlyParams),e));default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}})}snapshotFiltered(){return Ru(this,arguments,void 0,function*(e="ROW_REF"){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0})}createStream(){return Ru(this,void 0,void 0,function*(){if(![ab.DATASERVER,ab.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===ab.DATASERVER?this.createDataserverStream():(nf.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())})}createDataserverStream(){return Ru(this,void 0,void 0,function*(){return this.connect.stream(this.options.resourceName,e=>{},e=>nf.error(e),this.dataserverOnlyParams)})}createReqRepStream(){this.commitResponseUnsubscribe=this.connectEvents.addCommitResponseListener(e=>{var t;const{eventName:i,response:c}=e.detail;this.options.pollTriggerEvents&&this.options.pollTriggerEvents.includes(i)&&(null===(t=c.MESSAGE_TYPE)||void 0===t?void 0:t.endsWith("_ACK"))&&(nf.debug(`Received commit response for ${i}, triggering poll.`),this.triggerPoll())});const e=this.allResourceParams.DISABLE_POLLING?void 0:this.allResourceParams.POLLING_INTERVAL,t=()=>{const e=this.requestOnlyParams;if(this.resourceType===ab.REQUEST_SERVER&&this.loadMoreCount>0){const t=25,i=(this.options.maxRows||t)*(this.loadMoreCount+1);e.DETAILS.MAX_ROWS=i}return av([this.connect.isConnected$,this.auth.isLoggedIn$]).pipe(gv(()=>this.connect.isConnected&&this.auth.isLoggedIn),mv(()=>Kg(this.snapshot(e))))};return e?this.pollTrigger$.pipe(pv(0),mv(()=>hv(0,e).pipe(mv(t)))):this.pollTrigger$.pipe(pv(0),mv(t))}fetchAndApplyMetadata(e){return Ru(this,void 0,void 0,function*(){var t,i,c,o;try{nf.debug(`Requesting metadata for ${this.options.resourceName} Datasource`);const e=yield this.connect.getMetadata(this.options.resourceName);e&&(this.availableIndexes=null!==(t=e.INDEXES)&&void 0!==t?t:[],this.availableSortableFields=null!==(i=e.SORTABLE_FIELDS)&&void 0!==i?i:[],this.availableCriteriaFields=null!==(c=e.CRITERIA_FIELDS)&&void 0!==c?c:[],this.originalFieldDef=lb(e),this.fieldMetadata=rb(this.originalFieldDef),this.requestFields=e.REQUEST_FIELD||[],this.customRequestFields=e.FIELD||[],this.criteriaOnlyRequest=e.CRITERIA_ONLY_REQUEST||!1,this.fetchMetadataRequired=!1),this.status=this.normaliseStatus({isInitialized:!0,metadataRequired:!0,hasMetadata:(null===(o=this.fieldMetadata)||void 0===o?void 0:o.length)>0})}catch(t){nf.error(`Metadata Fetch failed for ${e}:`,t),this.status=this.normaliseStatus({isInitialized:!1,metadataRequired:!0,hasMetadata:!1})}})}reportStatus(e={}){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseStatus(e),nf.debug(`Dispatching '${nb}'`,this.status),null==i||i.dispatchEvent(new CustomEvent(nb,{detail:this.status,bubbles:i!==document,composed:!0}))}normaliseStatus(e){var t,i,c,o,s;const a=null!==(t=e.isInitialized)&&void 0!==t?t:this.initialized,n=null!==(i=e.metadataRequired)&&void 0!==i?i:this.fetchMetadataRequired,r=null!==(c=e.hasMetadata)&&void 0!==c?c:(null===(o=this.fieldMetadata)||void 0===o?void 0:o.length)>0;return{name:null===(s=this.options)||void 0===s?void 0:s.resourceName,type:this.resourceType,isInitialized:a,metadataRequired:n,hasMetadata:r}}invalidateCache(){this._allParams=null}};Ou([b],Yz.prototype,"status",void 0),Ou([b],Yz.prototype,"fetchMetadataRequired",void 0),Ou([b],Yz.prototype,"startStreamRequired",void 0),Ou([b],Yz.prototype,"originalFieldDef",void 0),Ou([b],Yz.prototype,"fieldMetadata",void 0),Ou([b],Yz.prototype,"requestFields",void 0),Ou([b],Yz.prototype,"customRequestFields",void 0),Ou([b],Yz.prototype,"availableIndexes",void 0),Ou([b],Yz.prototype,"availableSortableFields",void 0),Ou([b],Yz.prototype,"availableCriteriaFields",void 0),Ou([b],Yz.prototype,"criteriaOnlyRequest",void 0),Ou([b],Yz.prototype,"loadMoreCount",void 0),Ou([b],Yz.prototype,"readOnly",void 0),Ou([b],Yz.prototype,"stream",void 0),Yz=Ou([Tu(0,mz),Tu(1,Dz),Tu(2,Wz),Tu(3,Vz),Tu(4,hb)],Yz);const Kz=mt.createInterface(e=>e.transient(Yz));class Zz extends Yz{constructor(){super(...arguments),this.entityCache=[],this.entityMap=new Map,this.rowId="ROW_REF",this.initialize=e=>Ru(this,void 0,void 0,function*(){return this.disconnect(),this.options=Object.assign({},e.options),this.mapper=e.mapper,this.initialized=yield this.init(this.options,e.fetchMeta),this.initialized?(this.subscription=this.stream.subscribe(e=>{this.sourceRef=e.SOURCE_REF,this.subscriptionLoggedOff=e.MESSAGE_TYPE===Nb.LOGOFF_ACK;const t=e.ROW;!this.subscriptionLoggedOff&&t&&this.updateCache(this.config.dataServerResultFilter(e,this.rowId))}),!0):(nf.debug(`EntityDatasource init failed for ${this.options.resourceName}`),!1)}),this.disconnect=()=>{var e;null===(e=this.subscription)||void 0===e||e.unsubscribe(),this.entityCache=[]}}get initialized(){return this._initialized}set initialized(e){this._initialized=e}get cache(){if(!this.initialized)throw new Error("Please initialize EntityDatasource before querying.");return this.entityCache}get isEmpty(){return 0===this.entityCache.length}updateCache(e){var t;this.isEmpty,null===(t=e.deletes)||void 0===t||t.forEach(e=>{const t=e[this.rowId];this.entityMap.delete(t)}),this.processRowDataUpdate(e.inserts,!0),this.processRowDataUpdate(e.updates);this.entityCache=[{}].map(e=>this.mapper.fromDTO(e))}processRowDataUpdate(e,t=!1){e.forEach(e=>{const i=e[this.rowId],c=this.entityMap.get(i);if(c&&t)throw new Error("Existing entity found in map while inserting.");const o=this.mapper.fromDTO(e),s=c?Object.assign(Object.assign({},c),o):o;this.entityMap.set(i,s)})}}function Qz(e,t=";"){return e?e.split(t).map(e=>e.trim()).sort((e,t)=>e.localeCompare(t)).join(t):e}mt.createInterface(e=>e.transient(Zz));const Xz="system-health-changed",Jz={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>Ru(void 0,void 0,void 0,function*(){const t=mt.getOrCreateDOMContainer().get(mz),i=yield t.getMoreColumns(e),c=Date.now(),o=i;return{isConnected:i.MESSAGE_TYPE===Nb.MORE_COLUMNS_ACK,lastUpdated:c,lastMessage:o}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:c}=t;mt.getOrCreateDOMContainer().get(hz).sendForStream(e,i,c)}},eC=mt.createInterface(e=>e.instance(Jz));var tC,iC={exports:{}};var cC,oC,sC=(tC||(tC=1,function(e){e.exports=function(e){var t={};function i(c){if(t[c])return t[c].exports;var o=t[c]={i:c,l:!1,exports:{}};return e[c].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=e,i.c=t,i.d=function(e,t,c){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:c})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(c,o,function(t){return e[t]}.bind(null,o));return c},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=90)}({17:function(e,t,i){t.__esModule=!0,t.default=void 0;var c=i(18),o=function(){function e(){}return e.getFirstMatch=function(e,t){var i=t.match(e);return i&&i.length>0&&i[1]||""},e.getSecondMatch=function(e,t){var i=t.match(e);return i&&i.length>1&&i[2]||""},e.matchAndReturnConst=function(e,t,i){if(e.test(t))return i},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});t.push(0);var i=t[0],c=t[1];if(10===i)switch(c){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}switch(i){case 11:return"Big Sur";case 12:return"Monterey";case 13:return"Ventura";case 14:return"Sonoma";case 15:return"Sequoia";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map(function(e){return parseInt(e,10)||0});if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,i,c){void 0===c&&(c=!1);var o=e.getVersionPrecision(t),s=e.getVersionPrecision(i),a=Math.max(o,s),n=0,r=e.map([t,i],function(t){var i=a-e.getVersionPrecision(t),c=t+new Array(i+1).join(".0");return e.map(c.split("."),function(e){return new Array(20-e.length).join("0")+e}).reverse()});for(c&&(n=a-Math.min(o,s)),a-=1;a>=n;){if(r[0][a]>r[1][a])return 1;if(r[0][a]===r[1][a]){if(a===n)return 0;a-=1}else if(r[0][a]<r[1][a])return-1}},e.map=function(e,t){var i,c=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(i=0;i<e.length;i+=1)c.push(t(e[i]));return c},e.find=function(e,t){var i,c;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(i=0,c=e.length;i<c;i+=1){var o=e[i];if(t(o,i))return o}},e.assign=function(e){for(var t,i,c=e,o=arguments.length,s=new Array(o>1?o-1:0),a=1;a<o;a++)s[a-1]=arguments[a];if(Object.assign)return Object.assign.apply(Object,[e].concat(s));var n=function(){var e=s[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach(function(t){c[t]=e[t]})};for(t=0,i=s.length;t<i;t+=1)n();return e},e.getBrowserAlias=function(e){return c.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return c.BROWSER_MAP[e]||""},e}();t.default=o,e.exports=t.default},18:function(e,t,i){t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={AmazonBot:"amazonbot","Amazon Silk":"amazon_silk","Android Browser":"android",BaiduSpider:"baiduspider",Bada:"bada",BingCrawler:"bingcrawler",Brave:"brave",BlackBerry:"blackberry","ChatGPT-User":"chatgpt_user",Chrome:"chrome",ClaudeBot:"claudebot",Chromium:"chromium",Diffbot:"diffbot",DuckDuckBot:"duckduckbot",DuckDuckGo:"duckduckgo",Electron:"electron",Epiphany:"epiphany",FacebookExternalHit:"facebookexternalhit",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot",GPTBot:"gptbot","Internet Explorer":"ie",InternetArchiveCrawler:"internetarchivecrawler","K-Meleon":"k_meleon",LibreWolf:"librewolf",Linespider:"linespider",Maxthon:"maxthon","Meta-ExternalAds":"meta_externalads","Meta-ExternalAgent":"meta_externalagent","Meta-ExternalFetcher":"meta_externalfetcher","Meta-WebIndexer":"meta_webindexer","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver","OAI-SearchBot":"oai_searchbot",Omgilibot:"omgilibot",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PerplexityBot:"perplexitybot","Perplexity-User":"perplexity_user",PhantomJS:"phantomjs",PingdomBot:"pingdombot",Puffin:"puffin",QQ:"qq",QQLite:"qqlite",QupZilla:"qupzilla",Roku:"roku",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SlackBot:"slackbot",SeaMonkey:"seamonkey",Sleipnir:"sleipnir","Sogou Browser":"sogou",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat",YahooSlurp:"yahooslurp","Yandex Browser":"yandex",YandexBot:"yandexbot",YouBot:"youbot"},t.BROWSER_MAP={amazonbot:"AmazonBot",amazon_silk:"Amazon Silk",android:"Android Browser",baiduspider:"BaiduSpider",bada:"Bada",bingcrawler:"BingCrawler",blackberry:"BlackBerry",brave:"Brave",chatgpt_user:"ChatGPT-User",chrome:"Chrome",claudebot:"ClaudeBot",chromium:"Chromium",diffbot:"Diffbot",duckduckbot:"DuckDuckBot",duckduckgo:"DuckDuckGo",edge:"Microsoft Edge",electron:"Electron",epiphany:"Epiphany",facebookexternalhit:"FacebookExternalHit",firefox:"Firefox",focus:"Focus",generic:"Generic",google_search:"Google Search",googlebot:"Googlebot",gptbot:"GPTBot",ie:"Internet Explorer",internetarchivecrawler:"InternetArchiveCrawler",k_meleon:"K-Meleon",librewolf:"LibreWolf",linespider:"Linespider",maxthon:"Maxthon",meta_externalads:"Meta-ExternalAds",meta_externalagent:"Meta-ExternalAgent",meta_externalfetcher:"Meta-ExternalFetcher",meta_webindexer:"Meta-WebIndexer",mz:"MZ Browser",naver:"NAVER Whale Browser",oai_searchbot:"OAI-SearchBot",omgilibot:"Omgilibot",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",perplexitybot:"PerplexityBot",perplexity_user:"Perplexity-User",phantomjs:"PhantomJS",pingdombot:"PingdomBot",puffin:"Puffin",qq:"QQ Browser",qqlite:"QQ Browser Lite",qupzilla:"QupZilla",roku:"Roku",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",slackbot:"SlackBot",sleipnir:"Sleipnir",sogou:"Sogou Browser",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yahooslurp:"YahooSlurp",yandex:"Yandex Browser",yandexbot:"YandexBot",youbot:"YouBot"},t.PLATFORMS_MAP={bot:"bot",desktop:"desktop",mobile:"mobile",tablet:"tablet",tv:"tv"},t.OS_MAP={Android:"Android",Bada:"Bada",BlackBerry:"BlackBerry",ChromeOS:"Chrome OS",HarmonyOS:"HarmonyOS",iOS:"iOS",Linux:"Linux",MacOS:"macOS",PlayStation4:"PlayStation 4",Roku:"Roku",Tizen:"Tizen",WebOS:"WebOS",Windows:"Windows",WindowsPhone:"Windows Phone"},t.ENGINE_MAP={Blink:"Blink",EdgeHTML:"EdgeHTML",Gecko:"Gecko",Presto:"Presto",Trident:"Trident",WebKit:"WebKit"}},90:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(91))&&c.__esModule?c:{default:c},s=i(18);function a(e,t){for(var i=0;i<t.length;i++){var c=t[i];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(e,c.key,c)}}var n=function(){function e(){}var t,i,c;return e.getParser=function(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),"string"!=typeof e)throw new Error("UserAgent should be a string");return new o.default(e,t,i)},e.parse=function(e,t){return void 0===t&&(t=null),new o.default(e,t).getResult()},t=e,c=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(i=null)&&a(t.prototype,i),c&&a(t,c),e}();t.default=n,e.exports=t.default},91:function(e,t,i){t.__esModule=!0,t.default=void 0;var c=r(i(92)),o=r(i(93)),s=r(i(94)),a=r(i(95)),n=r(i(17));function r(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(e,t,i){if(void 0===t&&(t=!1),void 0===i&&(i=null),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e;var c=!1;"boolean"==typeof t?(c=t,this._hints=i):this._hints=null!=t&&"object"==typeof t?t:null,this.parsedResult={},!0!==c&&this.parse()}var t=e.prototype;return t.getHints=function(){return this._hints},t.hasBrand=function(e){if(!this._hints||!Array.isArray(this._hints.brands))return!1;var t=e.toLowerCase();return this._hints.brands.some(function(e){return e.brand&&e.brand.toLowerCase()===t})},t.getBrandVersion=function(e){if(this._hints&&Array.isArray(this._hints.brands)){var t=e.toLowerCase(),i=this._hints.brands.find(function(e){return e.brand&&e.brand.toLowerCase()===t});return i?i.version:void 0}},t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=n.default.find(c.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA(),this)),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=n.default.find(o.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=n.default.find(s.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=n.default.find(a.default,function(t){if("function"==typeof t.test)return t.test(e);if(Array.isArray(t.test))return t.test.some(function(t){return e.test(t)});throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return n.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,i={},c=0,o={},s=0;if(Object.keys(e).forEach(function(t){var a=e[t];"string"==typeof a?(o[t]=a,s+=1):"object"==typeof a&&(i[t]=a,c+=1)}),c>0){var a=Object.keys(i),r=n.default.find(a,function(e){return t.isOS(e)});if(r){var l=this.satisfies(i[r]);if(void 0!==l)return l}var d=n.default.find(a,function(e){return t.isPlatform(e)});if(d){var h=this.satisfies(i[d]);if(void 0!==h)return h}}if(s>0){var u=Object.keys(o),f=n.default.find(u,function(e){return t.isBrowser(e,!0)});if(void 0!==f)return this.compareVersion(o[f])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var i=this.getBrowserName().toLowerCase(),c=e.toLowerCase(),o=n.default.getBrowserTypeByAlias(c);return t&&o&&(c=o.toLowerCase()),c===i},t.compareVersion=function(e){var t=[0],i=e,c=!1,o=this.getBrowserVersion();if("string"==typeof o)return">"===e[0]||"<"===e[0]?(i=e.substr(1),"="===e[1]?(c=!0,i=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?i=e.substr(1):"~"===e[0]&&(c=!0,i=e.substr(1)),t.indexOf(n.default.compareVersions(o,i,c))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some(function(e){return t.is(e)})},e}();t.default=l,e.exports=t.default},92:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/gptbot/i],describe:function(e){var t={name:"GPTBot"},i=o.default.getFirstMatch(/gptbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/chatgpt-user/i],describe:function(e){var t={name:"ChatGPT-User"},i=o.default.getFirstMatch(/chatgpt-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/oai-searchbot/i],describe:function(e){var t={name:"OAI-SearchBot"},i=o.default.getFirstMatch(/oai-searchbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(e){var t={name:"ClaudeBot"},i=o.default.getFirstMatch(/(?:claudebot|claude-web|claude-user|claude-searchbot)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(e){var t={name:"Omgilibot"},i=o.default.getFirstMatch(/(?:omgilibot|webzio-extended)\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/diffbot/i],describe:function(e){var t={name:"Diffbot"},i=o.default.getFirstMatch(/diffbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/perplexitybot/i],describe:function(e){var t={name:"PerplexityBot"},i=o.default.getFirstMatch(/perplexitybot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/perplexity-user/i],describe:function(e){var t={name:"Perplexity-User"},i=o.default.getFirstMatch(/perplexity-user\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/youbot/i],describe:function(e){var t={name:"YouBot"},i=o.default.getFirstMatch(/youbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-webindexer/i],describe:function(e){var t={name:"Meta-WebIndexer"},i=o.default.getFirstMatch(/meta-webindexer\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalads/i],describe:function(e){var t={name:"Meta-ExternalAds"},i=o.default.getFirstMatch(/meta-externalads\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalagent/i],describe:function(e){var t={name:"Meta-ExternalAgent"},i=o.default.getFirstMatch(/meta-externalagent\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/meta-externalfetcher/i],describe:function(e){var t={name:"Meta-ExternalFetcher"},i=o.default.getFirstMatch(/meta-externalfetcher\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},i=o.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/linespider/i],describe:function(e){var t={name:"Linespider"},i=o.default.getFirstMatch(/(?:linespider)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/amazonbot/i],describe:function(e){var t={name:"AmazonBot"},i=o.default.getFirstMatch(/amazonbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/bingbot/i],describe:function(e){var t={name:"BingCrawler"},i=o.default.getFirstMatch(/bingbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/baiduspider/i],describe:function(e){var t={name:"BaiduSpider"},i=o.default.getFirstMatch(/baiduspider\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/duckduckbot/i],describe:function(e){var t={name:"DuckDuckBot"},i=o.default.getFirstMatch(/duckduckbot\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/ia_archiver/i],describe:function(e){var t={name:"InternetArchiveCrawler"},i=o.default.getFirstMatch(/ia_archiver\/(\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{name:"FacebookExternalHit"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(e){var t={name:"SlackBot"},i=o.default.getFirstMatch(/(?:slackbot|slack-imgproxy)(?:-[-\w]+)?[\s/](\d+(\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/yahoo!?[\s/]*slurp/i],describe:function(){return{name:"YahooSlurp"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{name:"YandexBot"}}},{test:[/pingdom/i],describe:function(){return{name:"PingdomBot"}}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},i=o.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/PaleMoon/i],describe:function(e){var t={name:"Pale Moon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},i=o.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},i=o.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},i=o.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},i=o.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},i=o.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},i=o.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},i=o.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},i=o.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},i=o.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},i=o.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},i=o.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},i=o.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},i=o.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return i&&(t.version=i),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},i=o.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},i=o.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},i=o.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},i=o.default.getFirstMatch(s,e)||o.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},i=o.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},i=o.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},i=o.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/librewolf/i],describe:function(e){var t={name:"LibreWolf"},i=o.default.getFirstMatch(/(?:librewolf)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},i=o.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},i=o.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/sogoumobilebrowser/i,/metasr/i,/se 2\.[x]/i],describe:function(e){var t={name:"Sogou Browser"},i=o.default.getFirstMatch(/(?:sogoumobilebrowser)[\s/](\d+(\.?_?\d+)+)/i,e),c=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),s=o.default.getFirstMatch(/se ([\d.]+)x/i,e),a=i||c||s;return a&&(t.version=a),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},i=o.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){return!!e.hasBrand("DuckDuckGo")||e.test(/\sDdg\/[\d.]+$/i)},describe:function(e,t){var i={name:"DuckDuckGo"};if(t){var c=t.getBrandVersion("DuckDuckGo");if(c)return i.version=c,i}var s=o.default.getFirstMatch(/\sDdg\/([\d.]+)$/i,e);return s&&(i.version=s),i}},{test:function(e){return e.hasBrand("Brave")},describe:function(e,t){var i={name:"Brave"};if(t){var c=t.getBrandVersion("Brave");if(c)return i.version=c,i}return i}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},i=o.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},i=o.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},i=o.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe:function(e){var t={name:"Android Browser"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},i=o.default.getFirstMatch(s,e);return i&&(t.version=i),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:o.default.getFirstMatch(t,e),version:o.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:[/Roku\/DVP/],describe:function(e){var t=o.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=o.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=o.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),i=o.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:i}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},i=o.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return i&&(t.version=i),t}},{test:[/macintosh/i],describe:function(e){var t=o.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),i=o.default.getMacOSVersionName(t),c={name:s.OS_MAP.MacOS,version:t};return i&&(c.versionName=i),c}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=o.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:[/OpenHarmony/i],describe:function(e){var t=o.default.getFirstMatch(/OpenHarmony\s+(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.HarmonyOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),i=e.test(/android/i);return t&&i},describe:function(e){var t=o.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),i=o.default.getAndroidVersionName(t),c={name:s.OS_MAP.Android,version:t};return i&&(c.versionName=i),c}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=o.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),i={name:s.OS_MAP.WebOS};return t&&t.length&&(i.version=t),i}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=o.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||o.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||o.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=o.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=o.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=o.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:[/googlebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Google"}}},{test:[/linespider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Line"}}},{test:[/amazonbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Amazon"}}},{test:[/gptbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/chatgpt-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/oai-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"OpenAI"}}},{test:[/baiduspider/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Baidu"}}},{test:[/bingbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Bing"}}},{test:[/duckduckbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"DuckDuckGo"}}},{test:[/claudebot/i,/claude-web/i,/claude-user/i,/claude-searchbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Anthropic"}}},{test:[/omgilibot/i,/webzio-extended/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Webz.io"}}},{test:[/diffbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Diffbot"}}},{test:[/perplexitybot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/perplexity-user/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Perplexity AI"}}},{test:[/youbot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"You.com"}}},{test:[/ia_archiver/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Internet Archive"}}},{test:[/meta-webindexer/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalads/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalagent/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/meta-externalfetcher/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/facebookexternalhit/i,/facebookcatalog/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Meta"}}},{test:[/slackbot/i,/slack-imgProxy/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Slack"}}},{test:[/yahoo/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yahoo"}}},{test:[/yandexbot/i,/yandexmobilebot/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Yandex"}}},{test:[/pingdom/i],describe:function(){return{type:s.PLATFORMS_MAP.bot,vendor:"Pingdom"}}},{test:[/huawei/i],describe:function(e){var t=o.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",i={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(i.model=t),i}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),i=e.test(/like (ipod|iphone)/i);return t&&!i},describe:function(e){var t=o.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe:function(e){var t=o.default.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),i={type:s.PLATFORMS_MAP.mobile,vendor:"Nokia"};return t&&(i.model=t),i}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:[/smart-?tv|smarttv/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:[/netcast/i],describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,i){t.__esModule=!0,t.default=void 0;var c,o=(c=i(17))&&c.__esModule?c:{default:c},s=i(18),a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=o.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},i=o.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},i=o.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:function(e){var t=e.test(/gecko/i),i=e.test(/like gecko/i);return t&&!i},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},i=o.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},i=o.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return i&&(t.version=i),t}}];t.default=a,e.exports=t.default}})}(iC)),iC.exports),aC=op(sC);var nC,rC=function(){if(oC)return cC;oC=1,cC=s,s.default=s,s.stable=l,s.stableStringify=l;var e="[...]",t="[Circular]",i=[],c=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,s,a){var r;void 0===a&&(a=o()),n(e,"",0,[],void 0,0,a);try{r=0===c.length?JSON.stringify(e,t,s):JSON.stringify(e,h(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return r}function a(e,t,o,s){var a=Object.getOwnPropertyDescriptor(s,o);void 0!==a.get?a.configurable?(Object.defineProperty(s,o,{value:e}),i.push([s,o,t,a])):c.push([t,o,e]):(s[o]=e,i.push([s,o,t]))}function n(i,c,o,s,r,l,d){var h;if(l+=1,"object"==typeof i&&null!==i){for(h=0;h<s.length;h++)if(s[h]===i)return void a(t,i,c,r);if(void 0!==d.depthLimit&&l>d.depthLimit)return void a(e,i,c,r);if(void 0!==d.edgesLimit&&o+1>d.edgesLimit)return void a(e,i,c,r);if(s.push(i),Array.isArray(i))for(h=0;h<i.length;h++)n(i[h],h,h,s,i,l,d);else{var u=Object.keys(i);for(h=0;h<u.length;h++){var f=u[h];n(i[f],f,h,s,i,l,d)}}s.pop()}}function r(e,t){return e<t?-1:e>t?1:0}function l(e,t,s,a){void 0===a&&(a=o());var n,r=d(e,"",0,[],void 0,0,a)||e;try{n=0===c.length?JSON.stringify(r,t,s):JSON.stringify(r,h(t),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==i.length;){var l=i.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}}return n}function d(c,o,s,n,l,h,u){var f;if(h+=1,"object"==typeof c&&null!==c){for(f=0;f<n.length;f++)if(n[f]===c)return void a(t,c,o,l);try{if("function"==typeof c.toJSON)return}catch(e){return}if(void 0!==u.depthLimit&&h>u.depthLimit)return void a(e,c,o,l);if(void 0!==u.edgesLimit&&s+1>u.edgesLimit)return void a(e,c,o,l);if(n.push(c),Array.isArray(c))for(f=0;f<c.length;f++)d(c[f],f,f,n,c,h,u);else{var p={},m=Object.keys(c).sort(r);for(f=0;f<m.length;f++){var g=m[f];d(c[g],g,f,n,c,h,u),p[g]=c[g]}if(void 0===l)return p;i.push([l,o,c]),l[o]=p}n.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(c.length>0)for(var o=0;o<c.length;o++){var s=c[o];if(s[1]===t&&s[0]===i){i=s[2],c.splice(o,1);break}}return e.call(this,t,i)}}return cC}(),lC=op(rC);const dC=af("network-monitor",{level:ju.info}),hC=Date.now(),uC=(null===(nC=window.navigator)||void 0===nC?void 0:nC.userAgent)?aC.parse(window.navigator.userAgent):void 0,fC=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:lC(e,void 0,2,t);class pC{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>Ru(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;dC.info("Run health checks, triggered by",fC(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const c=yield this.isOnlineCheck();c?dC.debug(`Network connected at ${i}`):dC.warn(`Network disconnected at ${i}`);const o=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),c),s=this.preFlightSocketChecks(o);if(s||dC.debug("Socket pre-flight checks failed"),!c||!s){dC.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const o=e[i.resourceName];return o?(o.sourceRef=[...o.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},c)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:c,resources:e,resourcesAllConnected:!1,socket:o}),void(this.isRunningChecks=!1)}let a=!0;const n=[];this.resources.forEach((e,t)=>{const{resourceName:c,message:o,functions:s}=e,{resourceChecks:r=this.config.resourceChecks,resourceDataLogon:l=this.config.resourceDataLogon}=s,{SOURCE_REF:d}=o;let h,u,f,p,m,g=!1;n.push((()=>Ru(this,void 0,void 0,function*(){var o,s,n;try{dC.debug(`Running health check against ${c}`);const e=yield Promise.race([r(d,t),(s=this.config.checkTimeout,n=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise(e=>{setTimeout(()=>{e(n())},s)}))]);g=e.isConnected,h=e.lastUpdated,u=e.lastMessage,p=e.timeout}catch(e){g=!1,h=this.getNowTimestamp(),f=e,u=null!==(o=null==e?void 0:e.receivedMessage)&&void 0!==o?o:e}return m=(null==u?void 0:u.MESSAGE_TYPE)===Nb.MSG_NACK||Db(u,bb.NOT_FOUND),i=this.getFormattedTimestamp(null!=h?h:this.getNowTimestamp()),g?dC.debug(`${c} is healthy at ${i}`):dC.warn(`${c} is not healthy at ${i}`),u&&dC.debug(`${c} messaged at ${i}`,fC(u)),f&&dC.error(`${c} errored at ${i}`,fC(f)),p&&dC.warn(`${c} timed out at ${i}`),m&&(dC.error(`${c} issue, re-attempting data logon at ${i}`),l(e)),a&&(a=g),{name:c,sourceRef:[d],isConnected:g,lastUpdated:h,lastError:f}}))())});const r=(yield Promise.allSettled(n)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return dC.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});dC.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:c,resources:r,resourcesAllConnected:a,socket:o}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(dC.level=this.config.logLevel)}create(){this.resources?dC.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout(()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")},this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.addEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.addEventListener(e,this.runAllChecks)),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener(({detail:e})=>{const{functions:t,message:i,resourceName:c,stream:o}=e;this.config.ignoredGenesisResources.includes(c)||this.addResource(o,{functions:t,message:i,resourceName:c})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:c,error:o}=e,s=null!==(t=o.receivedMessage)&&void 0!==t?t:o;let a="";Db(s,bb.NOT_FOUND)?a="Please check the resource is running.":Db(s,bb.FORBIDDEN)&&(a="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(c)),dC.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,a,o)})),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener(e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)})),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener(({detail:e})=>{const{resourceName:t,error:i}=e;i&&dC.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach(e=>window.removeEventListener(e,this.runAllChecks)),null===(t=this.config.documentEvents)||void 0===t||t.forEach(e=>document.removeEventListener(e,this.runAllChecks)),this.unsubscribableObservers.forEach(e=>e()),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?dC.debug:dC.warn)("Emitting 'system-health-changed' event",fC(this.status)),null==i||i.dispatchEvent(new CustomEvent(Xz,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(dC.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return Ru(this,void 0,void 0,function*(){return dC.debug("User requested report stability to Genesis."),dC.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const c=!!t&&e.isConnected,o=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:c,lastUpdated:o})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,c=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:c})}normaliseEventDetail(e){var t,i,c,o;const s=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),a=null!==(c=e.lastUpdated)&&void 0!==c?c:this.getNowTimestamp(),n=null!==(o=e.nextUpdate)&&void 0!==o?o:this.getNextTimestamp(),r=e.isAuthenticated&&this.user?this.user.username:void 0,l=Object.assign(Object.assign({},e),{browserInformation:uC,username:r,isHealthy:s,lastUpdated:a,nextUpdate:n,firstUpdated:hC,runAllChecks:()=>{dC.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(l)});return l}preFlightSocketChecks(e){if(!e.isConfigured)return dC.debug("Socket not configured"),!1;if(e.isReconnecting)return dC.debug("Socket reconnecting"),!1;if(e.isConnecting)return dC.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return dC.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&dC.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return dC.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return Xf(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval(()=>this.runAllChecks("check interval"),this.config.checkInterval)}}Ou([eC],pC.prototype,"config",void 0),Ou([az],pC.prototype,"socketStatus",void 0),Ou([hb],pC.prototype,"connectEvents",void 0),Ou([tb],pC.prototype,"user",void 0),Ou([b],pC.prototype,"status",void 0);const mC=mt.createInterface(e=>e.singleton(pC)),gC={account:"genesis",namespace:"default",authKey:"kv-default",authEmail:void 0},vC=mt.createInterface();var bC,yC;!function(e){e.REQ_KEY_VALUE_LIST="REQ_KEY_VALUE_LIST",e.REQ_KEY_VALUE_READ="REQ_KEY_VALUE_READ"}(bC||(bC={})),function(e){e.EVENT_KEY_VALUE_PUT="EVENT_KEY_VALUE_PUT",e.EVENT_KEY_VALUE_DELETE="EVENT_KEY_VALUE_DELETE"}(yC||(yC={}));let zC=class{constructor(e,t,i=gC){this.connect=e,this.user=t,this.kvStorageConfig=i}delete(e){return Ru(this,void 0,void 0,function*(){const t={DETAILS:{KEYS:e}},i=yield this.connect.commitEvent(yC.EVENT_KEY_VALUE_DELETE,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}get(e){return Ru(this,void 0,void 0,function*(){var t;const i={REQUEST:{USER_NAME:null!==(t=this.kvStorageConfig.authEmail)&&void 0!==t?t:this.user.userName,KEY:e}},c=yield this.connect.request(bC.REQ_KEY_VALUE_READ,i);if(c&&c.REPLY&&c.REPLY.length>0){const t=c.REPLY.map(e=>{const t=this.getDecodedValue(e.VALUE);return{kv:{key:e.KEY,value:t}}});return e?t[0]:t}return e?void 0:[]})}getDecodedValue(e){e.startsWith("str:")||e.startsWith("bin:")||(e=`str:${e}`);let t=If(e);return"string"==typeof t&&t.startsWith("str:")&&(t=If(t)),"string"==typeof t&&t.startsWith("bin:")&&(t=If(t)),t}list(){return Ru(this,void 0,void 0,function*(){var e;const t={REQUEST:{USER_NAME:null!==(e=this.kvStorageConfig.authEmail)&&void 0!==e?e:this.user.userName}},i=yield this.connect.request(bC.REQ_KEY_VALUE_LIST,t);if(i&&i.REPLY&&i.REPLY.length>0){return i.REPLY.map(e=>e.KEY)}return[]})}put(e){return Ru(this,void 0,void 0,function*(){const t={DETAILS:{RECORDS:e.map(e=>({KEY:e.key,VALUE:e.base64?Df(e.value):e.value}))}},i=yield this.connect.commitEvent(yC.EVENT_KEY_VALUE_PUT,t);return!(!i||"EVENT_ACK"!==i.MESSAGE_TYPE)||{ERROR:i.ERROR,WARNING:i.WARNING}})}};zC=Ou([Tu(0,mz),Tu(1,tb),Tu(2,yt(vC))],zC),mt.createInterface(e=>e.singleton(zC));class CC{constructor(){this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null,this.isLoggedIn=!1,this.isLoggedInSubject=new cg(!1)}get isLoggedIn$(){return this.isLoggedInSubject.asObservable()}login(e){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextLoginResult)})}logout(){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextLogoutResult)})}reAuthFromSession(){return Ru(this,void 0,void 0,function*(){return Promise.resolve(this.nextReAuthResult)})}setTestUser(e={}){this.currentUser=new eb,this.currentUser.set(Object.assign({userName:"JaneDee",profile:["USER"],permission:["CreateRules"]},e)),this.isLoggedIn=!0,this.isLoggedInSubject.next(!0)}resetTestUser(){this.currentUser=null,this.isLoggedIn=!1,this.isLoggedInSubject.next(!1)}}Ou([b],CC.prototype,"isWorking",void 0),Ou([b],CC.prototype,"loggedUserResult",void 0),Ou([b],CC.prototype,"currentUser",void 0),Ou([b],CC.prototype,"isLoggedIn",void 0);class LC{constructor(){this.fetchMetadataRequired=!0,this.fetchingMetadata=!1,this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.customRequestFields=[],this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.criteriaOnlyRequest=!1}init(e,t){return Promise.resolve(this.initialized)}startStream(){return Promise.resolve()}setMetadata(e){var t,i,c;this.availableIndexes=null!==(t=e.INDEXES)&&void 0!==t?t:[],this.availableSortableFields=null!==(i=e.SORTABLE_FIELDS)&&void 0!==i?i:[],this.availableCriteriaFields=null!==(c=e.CRITERIA_FIELDS)&&void 0!==c?c:[],this.originalFieldDef=lb(e),this.fieldMetadata=rb(this.originalFieldDef),this.requestFields=e.REQUEST_FIELD||[],this.customRequestFields=e.FIELD||[],this.fetchMetadataRequired=!1}unsetMedata(){this.availableIndexes=[],this.availableSortableFields=[],this.availableCriteriaFields=[],this.originalFieldDef=[],this.fieldMetadata=[],this.requestFields=[],this.fetchMetadataRequired=!0}setStream(e){this.stream=Kg(Promise.resolve(e))}unsetStream(){this.stream=void 0}deinit(){}destroy(){}validResourceName(e){return!!e&&!!e.trim().length}getMetadata(e){return Promise.resolve(this.fieldMetadata)}snapshot(e){return Promise.resolve(null)}snapshotFiltered(e){return Promise.resolve(null)}updateData(e){return Promise.resolve()}dataHandler(e){return[]}addView(e){}dropView(e){}setFilter(e,t,i){return Promise.resolve()}clearFilter(e){return Promise.resolve()}createItem(e){return Promise.resolve("")}deleteItem(e){return Promise.resolve()}updateItem(e,t){return Promise.resolve()}get dataserverOnlyParams(){return{}}get requestOnlyParams(){return{}}updateLoadMoreCount(e){}}Ou([b],LC.prototype,"status",void 0),Ou([b],LC.prototype,"fetchMetadataRequired",void 0),Ou([b],LC.prototype,"originalFieldDef",void 0),Ou([b],LC.prototype,"fieldMetadata",void 0),Ou([b],LC.prototype,"requestFields",void 0),Ou([b],LC.prototype,"customRequestFields",void 0),Ou([b],LC.prototype,"availableIndexes",void 0),Ou([b],LC.prototype,"availableSortableFields",void 0),Ou([b],LC.prototype,"availableCriteriaFields",void 0),Ou([b],LC.prototype,"criteriaOnlyRequest",void 0),mt.createInterface(e=>e.aliasTo(tb));const xC=af("foundation-ui");class MC extends(Bz(Wt)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=_z.MAX_ROWS_250,this.maxView=_z.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new cg(new Map),this.fetchGeneration=0}criteriaChanged(e,t){const i=e!==Qz(t,";");this.refetchIfInitializedAndChanged(i)}dataChanged(e){e&&(this.clearData(),this.reset())}requestChanged(e,t){const i=JSON.stringify(e)!==JSON.stringify(t);this.refetchIfInitializedAndChanged(i)}refetchIfInitializedAndChanged(e){this.datasource.initialized&&e&&this.fetchGenesisData(null)}set datasourceConfig(e){e&&Object.keys(e).forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return Ru(this,arguments,void 0,function*(e=!0){var t,i;null===(t=this.dataSub)||void 0===t||t.unsubscribe(),this.dataSub=void 0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.fetchGeneration+=1;const c=this.fetchGeneration,o=()=>c!==this.fetchGeneration;if(this.data)return void this.syncComponentData(this.data);const s=e||!this.datasource.initialized;s||(this.connect.dataLogoff(this.sourceRef),this.clearData()),this.sourceRef=void 0;const a=yield this.datasource.init(this.datasourceOptions(),s);if(!o())if(a){if(this.isSnapshot){const e=yield this.datasource.snapshot();if(o())return;const t=this.filterSnapshotResult(e);return this.updateRequestPagingState(e,null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0,this.initialRequestOffset()),void this.syncComponentData(t)}xC.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{if(o())return;e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF,"boolean"==typeof e.MORE_ROWS&&(this.moreRowsAvailable=e.MORE_ROWS);const t=e.MESSAGE_TYPE;if(t&&t===Nb.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=Hz(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)})}else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})})}initDatasource(){return Ru(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}canRequestMoreRows(){if(!this.isConnected||!this.datasource||!this.moreRowsAvailable)return!1;switch(this.datasource.resourceType){case ab.REQUEST_SERVER:return!0;case ab.DATASERVER:return!!this.sourceRef&&!this.dataSubWasLoggedOff;default:return!1}}requestMoreRows(){return Ru(this,void 0,void 0,function*(){var e;if(this.canRequestMoreRows())try{if(this.datasource.resourceType===ab.DATASERVER)return void(yield this.connect.getMoreRows(this.sourceRef));const t=this.fetchGeneration,i=this.nextRequestOffset;this.moreRowsAvailable=!1;const c=yield this.datasource.snapshot({DETAILS:Object.assign(Object.assign({},null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS),{OFFSET:i})});if(t!==this.fetchGeneration)return;const o=Array.isArray(null==c?void 0:c.REPLY)?c.REPLY:[];this.updateRequestPagingState(c,o.length,i),o.length>0&&this.handleStreamInserts(o)}catch(e){throw this.moreRowsAvailable=!0,this.handleError({message:`Failed to request more rows for ${this.resourceName}`,loggerType:"error",loggerArgs:[e]}),e}})}filterSnapshotResult(e){if(e)return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?Hz(e).inserts:void 0}updateRequestPagingState(e,t,i){if(Array.isArray(e)||!e)return void(this.moreRowsAvailable=!1);const c=e,o=Number(this.maxRows)||0;this.moreRowsAvailable="boolean"==typeof c.MORE_ROWS?c.MORE_ROWS:t>0&&o>0&&t>=o,this.nextRequestOffset="number"==typeof c.NEXT_OFFSET&&c.NEXT_OFFSET>0?c.NEXT_OFFSET:i+t}initialRequestOffset(){var e,t;return Number(null===(t=null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.OFFSET)||0}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,i;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if("ROW_REF"===this.rowId)return void this.syncComponentData(e.REPLY);if(this.requiresFullDataRefresh)return null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}),void this.syncComponentData(Array.from(this.rowsSyncedWithStream.values()));this.handleStreamInserts(e.REPLY);const c=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(c)}applyDataserverData(e){var t,i,c,o;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(c=e.deletes)||void 0===c?void 0:c.length)>0&&this.handleStreamDeletes(e.deletes),(null===(o=e.updates)||void 0===o?void 0:o.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;return Qz(((null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[]).join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:i,loggerArgs:c=[]}=e;t&&xC[i](t,...c)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find(t=>t.name===e)}getDefaultLabelFormat(e,t){return t===ob.DATE||t===ob.DATETIME?Jf(e,t===ob.DATETIME):e}}Ou([mz],MC.prototype,"connect",void 0),Ou([Kz],MC.prototype,"datasource",void 0),Ou([de({mode:"boolean"})],MC.prototype,"withGridInit",void 0),Ou([de],MC.prototype,"criteria",void 0),Ou([b],MC.prototype,"data",void 0),Ou([de],MC.prototype,"fields",void 0),Ou([de({mode:"boolean"})],MC.prototype,"isSnapshot",void 0),Ou([de],MC.prototype,"maxRows",void 0),Ou([de],MC.prototype,"maxView",void 0),Ou([de],MC.prototype,"orderBy",void 0),Ou([de],MC.prototype,"request",void 0),Ou([de],MC.prototype,"resourceName",void 0),Ou([de({mode:"boolean"})],MC.prototype,"reverse",void 0),Ou([de],MC.prototype,"rowId",void 0),Ou([de({mode:"boolean",attribute:"with-timestamp-formatting"})],MC.prototype,"withTimestampFormatting",void 0);const wC=(e,t)=>!e.composedPath().includes(t),SC=(e,t)=>e.composedPath().includes(t),kC=e=>e.tagName.toLowerCase().split("-")[0];const EC=af("foundation-criteria");var $C;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}($C||($C={}));class NC{constructor(e){this.$$operator=e}static And(){return new NC($C.AND)}static Or(){return new NC($C.OR)}static Not(){return new NC($C.NOT)}static GreaterThan(){return new NC($C.GT)}static GreaterThanOrEqual(){return new NC($C.GE)}static LessThan(){return new NC($C.LT)}static LessThanOrEqual(){return new NC($C.LE)}static NotEqual(){return new NC($C.NE)}static Equal(){return new NC($C.EQ)}get operator(){return this.$$operator}}const AC=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},OC=e=>t=>`${t.field} ${e} ${AC(t)}`,TC={AND:e=>OC($C.AND)(e),OR:e=>OC($C.OR)(e),NOT:e=>OC($C.NOT)(e),GT:e=>OC($C.GT)(e),GE:e=>OC($C.GE)(e),LT:e=>OC($C.LT)(e),LE:e=>OC($C.LE)(e),NE:e=>OC($C.NE)(e),EQ:e=>OC($C.EQ)(e),equals:e=>`${e.field}.equals(${AC(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${AC(e)})`,contains:e=>`Expr.contains(${e.field}, ${AC(e)})`,fieldContains:e=>`${e.field}.contains(${AC(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${AC(e)})`,startsWith:e=>`${e.field}.startsWith(${AC(e)})`,endsWith:e=>`${e.field}.endsWith(${AC(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${AC(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${AC(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${AC(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${AC(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${AC(e)})`},RC=e=>Array.isArray(e)?e:[e],IC="default";class DC{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,NC.And()),this.Or=(e,t={})=>this.withExpression(e,t,NC.Or()),this.Not=(e,t={})=>this.withExpression(e,t,NC.Not())}withExpression(e,t={},i=NC.And()){const{condition:c,join:o,groupName:s}=t,a=(e,t=IC)=>{var s;const a=null!==(s=this.expressions[t])&&void 0!==s?s:[];this.expressions[t]=[...a,{join:i||o,condition:c,expression:e}]};if(Array.isArray(e))if(o){const t=e.filter(e=>{const t=e instanceof NC;return t&&EC.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(s)t.forEach(e=>{a(e,s)});else{const e=(n=o,t.flat().flatMap((e,t,i)=>i.length-1!==t?[e,n]:e));a(e,IC)}}else a(e,IC);else a(e,"string"==typeof e?IC:e.group);var n;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:`(${i.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},i,c)=>this.parseExpression(e,c[i-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,i){const c=[];return i&&t&&c.push(` ${i.operator} `),"string"==typeof e?c.push(e):Array.isArray(e)?(e.forEach((e,t,i)=>{if(e instanceof NC){if(i[t-1]instanceof NC)throw new Error("Adjacent Join operations detected")}}),c.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof NC?c.push(` ${e.operator} `):e&&c.push(e.serialiser(e)),c.join("")}}class FC{constructor(e){this.serialiser=TC.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}let HC=class extends ze{constructor(){super(...arguments),this.criteriaOptions=[],this.createCriteria=e=>{const t=new DC,{field:i,serialiser:c,value:o}=e;return Array.isArray(i)||Array.isArray(o)?t.And(RC(o).map(e=>RC(i).map(t=>(new FC).withField(t).withValue(e).withSerialiser(c).build())),{join:NC.Or()}):t.And((new FC).withField(i).withValue(o).withSerialiser(c).build()),t}}valueChanged(){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}selectedLabelChanged(){const e=this.criteriaOptions.find(e=>e.label===this.selectedLabel);this.value=e?this.createCriteria(e).build():""}itemClickHandler(e){this.selectedLabel===e&&(this.selectedLabel=void 0)}};function _C(e,t){var i;const c=new DC;c.withExpression((new FC).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(TC.containsIgnoreCase).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${c.build()}`:e.criteria=c.build()}Ou([b],HC.prototype,"criteriaOptions",void 0),Ou([b],HC.prototype,"prefix",void 0),Ou([b],HC.prototype,"value",void 0),Ou([b],HC.prototype,"selectedLabel",void 0),HC=Ou([Ce({name:"criteria-segmented-control",template:((e="rapid")=>K`<${e}-segmented-control :value="${Of(e=>e.selectedLabel)}"><slot name="label" slot='label'></slot>${We(e=>e.criteriaOptions,K`<${e}-segmented-item @click=${(e,t)=>t.parent.itemClickHandler(e.label)}value=${e=>e.label}>${e=>e.label}</${e}-segmented-item>`)}</${e}-segmented-control>`)(),styles:Me``})],HC);const PC=(e,t,i)=>K`<${t}-icon tooltip="${()=>e}" name="${()=>i}"></${t}-icon>`,VC=e=>K`<${e}-button id="actiosnMenuTrigger" class="actions-opener${e=>e.open?" opened":""}" appearance="${e=>e.buttonAppearance}" part="actions-opener" @click=${e=>e.toggleActionsMenuVisibility()}>${e=>e.open?"✖":K` ${e.name} `}</${e}-button><${e}-menu ${Fe("actionsMenu")}class="actions-menu ${e=>e.classNames}" part="actions-menu">${We(e=>e.allActions,K` ${Ve((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData),K`<${e}-menu-item class="menu-item" tabindex="${(e,t)=>t.index}" disabled style=${(e,t)=>t.parent.hideDisabled?"display:none":""}>${(e,t)=>t.parent.getLabel(e.name)}</${e}-menu-item>`)} ${Ve((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData),K`<${e}-menu-item class="menu-item" tabindex="${(e,t)=>t.index}" @click=${(e,t)=>t.parent.onActionMenuItemClick(e.callback)}style="${e=>e.color?`color: ${e.color};`:""}">${(e,t)=>t.parent.getLabel(e.name)}</${e}-menu-item>`)} `,{positioning:!0})}</${e}-menu>`,BC=K`<div class="actions-container${e=>e.isVertical?" actions-vertical":""}" part="actions-container">${e=>e.getTemplate(kC(e))}</div>`;class UC extends Wt{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=ti(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return VC(e);const t=this.actions.filter(e=>!e.isDisabled||!e.isDisabled(this.rowData));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],(e=>K`<${e}-button appearance="${e=>e.buttonAppearance}" part="actions-opener" class="actions-opener" @click=${e=>null==e?void 0:e.singleOption.callback(e.rowData)}?disabled=${e=>(null==e?void 0:e.singleOption.isDisabled)&&(null==e?void 0:e.singleOption.isDisabled(e.rowData))}>${e=>e.getLabel(null==e?void 0:e.singleOption.name)}</${e}-button>`)(e)):VC(e):void 0}}Ou([b],UC.prototype,"actions",void 0),Ou([de({attribute:"is-vertical",mode:"boolean"})],UC.prototype,"isVertical",void 0),Ou([de({attribute:"add-default-actions",mode:"boolean"})],UC.prototype,"addDefaultActions",void 0),Ou([de({attribute:"auto-close-on-action",mode:"boolean"})],UC.prototype,"autoCloseOnAction",void 0),Ou([b],UC.prototype,"classNames",void 0),Ou([b],UC.prototype,"definition",void 0),Ou([de],UC.prototype,"name",void 0),Ou([de({attribute:"open",mode:"boolean"})],UC.prototype,"open",void 0),Ou([de],UC.prototype,"buttonAppearance",void 0),Ou([de({attribute:"hide-disabled",mode:"boolean"})],UC.prototype,"hideDisabled",void 0),Ou([de({attribute:"hide-menu-single-option",mode:"boolean"})],UC.prototype,"hideMenuSingleOption",void 0),Ou([b],UC.prototype,"singleOption",void 0),UC.compose({baseName:"actions-menu",styles:(e,t)=>Me` ${ku()}`,template:BC});let jC=!1;try{"undefined"!=typeof GENX_ENABLE_AI&&(jC="true"===GENX_ENABLE_AI)}catch(nC){}const qC=()=>jC||Ff("ai");function GC(){return"undefined"!=typeof window&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window)}af("foundation-ai");class WC{getStatus(){return Ru(this,void 0,void 0,function*(){return{provider:"none",model:""}})}interpretCriteria(e,t){return Ru(this,void 0,void 0,function*(){return null})}}class YC{constructor(){this.noopProvider=new WC}get(e){return e===YC.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return YC.DEFAULT_NAME}names(){return[YC.DEFAULT_NAME]}getStatus(e){return Ru(this,void 0,void 0,function*(){var t,i,c;return void 0!==e&&e!==YC.DEFAULT_NAME?null:null!==(c=yield null===(i=(t=this.noopProvider).getStatus)||void 0===i?void 0:i.call(t))&&void 0!==c?c:null})}listStatuses(){return Ru(this,void 0,void 0,function*(){var e,t,i;const c=null!==(i=yield null===(t=(e=this.noopProvider).getStatus)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null;return[{name:YC.DEFAULT_NAME,isDefault:!0,status:c}]})}}YC.DEFAULT_NAME="default";const KC=mt.createInterface(e=>e.singleton(YC)),ZC=Me` :host{display: block;width: 800px}.ai-criteria-search{display: flex;flex-direction: column;gap: calc(${fr} * 2px)}.ai-criteria-search-row{display: flex;flex-direction: row;gap: calc(${fr} * 2px);align-items: center}.criteria-input{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0}.criteria-chips-inline{height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);flex: 1;min-width: 0;display: flex;align-items: center;gap: calc(${fr} * 1px);overflow-x: auto;padding: 0 calc(${fr} * 2px);background: var(--neutral-fill-input-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px);scrollbar-width: none}.criteria-chips-inline::-webkit-scrollbar{display: none}.mic-icon{color: var(--neutral-foreground-rest);fill: currentColor}.criteria-toggle-button, .criteria-clear-button{flex-shrink: 0}.criteria-chip{display: inline-flex;align-items: center;flex-shrink: 0;gap: calc(${fr} * 1px);padding: calc(${fr} * 0.5px) calc(${fr} * 2px);background: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(${fr} * 4px);font-size: var(--type-ramp-minus-1-font-size);color: var(--neutral-foreground-rest);white-space: nowrap}.criteria-chip-field{font-weight: 600}.criteria-chip-operator{color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-style: italic}.criteria-chip-remove{display: inline-flex;align-items: center;justify-content: center;width: 14px;height: 14px;padding: 0;margin-left: calc(${fr} * 0.5px);background: none;border: none;cursor: pointer;color: var(--neutral-foreground-hint, var(--neutral-foreground-rest));font-size: 10px;border-radius: 50%;line-height: 1}.criteria-chip-remove:hover{background: var(--neutral-fill-hover);color: var(--neutral-foreground-rest)}`,QC=K` ${e=>(e=>K` ${Ve(()=>qC(),K`<div class="ai-criteria-search"><div class="ai-criteria-search-row">${Ve(e=>!e.showingChips,K`<${e}-text-area ${Fe("textAreaRef")}class="criteria-input" placeholder="${e=>e.placeholder}" ?disabled=${e=>e.disabled||e.isInterpreting}:value=${Of(e=>e.inputValue,"string","input")}@blur=${e=>e.handleBlur()}rows="1"></${e}-text-area>`)} ${Ve(e=>e.showingChips,K`<div class="criteria-chips-inline">${We(e=>e.criteriaChips,K`<span class="criteria-chip"><span class="criteria-chip-field">${e=>e.fieldLabel}</span><span class="criteria-chip-operator">${e=>e.operatorLabel}</span>${Ve(e=>!!e.valueLabel,K`<span class="criteria-chip-value">${e=>e.valueLabel}</span>`)}<button class="criteria-chip-remove" aria-label="Remove filter" @click=${(e,t)=>t.parent.removeChip(e.groupIndex,e.clauseIndex)}>
|
|
58
58
|
✕
|
|
59
59
|
</button></span>`)}</div>`)}<${e}-button class="criteria-toggle-button" appearance="outline" title=${e=>e.showingChips?"Add more criteria":"View active filters"}?disabled=${e=>0===e.activeGroups.length||e.isInterpreting}@click=${e=>e.toggleCriteriaView()}><${e}-icon name="pen" size="sm"></${e}-icon></${e}-button><${e}-button class="criteria-clear-button" appearance="outline" title="Clear all filters" ?disabled=${e=>0===e.activeGroups.length||e.isInterpreting}@click=${e=>e.clearChips()}><${e}-icon name="trash-alt" size="sm"></${e}-icon></${e}-button>${Ve(e=>e.speechAvailable,K`<${e}-button class="mic-button" appearance="${e=>e.isRecording?"accent":"outline"}" ?disabled=${e=>e.disabled||e.isInterpreting}@click=${e=>e.toggleSpeechInput()}title=${e=>e.isRecording?"Stop recording":"Start voice input"}><${e}-icon class="mic-icon" name="microphone" size="lg" variant="solid"></${e}-icon></${e}-button>`)}</div></div>`)} `)(kC(e))} `,XC={contains:TC.containsIgnoreCase,equals:TC.EQ,startsWith:TC.startsWith,endsWith:TC.endsWith,greaterThan:TC.GT,lessThan:TC.LT,greaterThanOrEqual:TC.GE,lessThanOrEqual:TC.LE,notEqual:TC.NE,dateIsToday:TC.dateIsToday,dateIsAfter:TC.dateIsGreaterEqual,dateIsGreaterEqual:TC.dateIsGreaterEqual,dateIsBefore:TC.dateIsLessEqual,dateIsLessEqual:TC.dateIsLessEqual,dateIsEqual:TC.dateIsEqual,dateTimeIsAfter:TC.dateTimeIsGreaterEqual,dateTimeIsGreaterEqual:TC.dateTimeIsGreaterEqual,dateTimeIsBefore:TC.dateTimeIsLessEqual,dateTimeIsLessEqual:TC.dateTimeIsLessEqual};function JC(e){var t,i;const c=null!==(t=XC[e.operator])&&void 0!==t?t:TC.containsIgnoreCase;return(new FC).withField(e.field).withValue(null!==(i=e.value)&&void 0!==i?i:null).withSerialiser(c).withGroup("default").build()}function eL(e,t){return 1===e.length?e[0]:e.reduce((e,i,c)=>0===c?[i]:[...e,t,i],[])}function tL(e){var t;const i=new DC;let c=!1;for(const o of e){if(!(null===(t=o.clauses)||void 0===t?void 0:t.length))continue;const e=o.clauses.map(JC),s="or"===o.logic?NC.Or():NC.And(),a=eL(e,s),n=e.length>1?{join:s}:{};o.negated?i.And([NC.Not(),a]):i.And(1===e.length?e[0]:e,n),c=!0}return c?i.build():""}const iL=["contains","equals","startsWith","endsWith","notEqual"],cL=["equals","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual","notEqual"],oL=["dateIsToday","dateIsAfter","dateIsBefore","dateIsEqual","dateIsGreaterEqual","dateIsLessEqual"],sL=["dateTimeIsAfter","dateTimeIsBefore","dateTimeIsGreaterEqual","dateTimeIsLessEqual"],aL={contains:"contains",equals:"=",startsWith:"starts with",endsWith:"ends with",notEqual:"≠",greaterThan:">",lessThan:"<",greaterThanOrEqual:"≥",lessThanOrEqual:"≤",dateIsToday:"is today",dateIsAfter:"after",dateIsBefore:"before",dateIsEqual:"=",dateIsGreaterEqual:"≥",dateIsLessEqual:"≤",dateTimeIsAfter:"after",dateTimeIsBefore:"before",dateTimeIsGreaterEqual:"≥",dateTimeIsLessEqual:"≤"},nL=new Set(["DATE","LOCALDATE"]),rL=new Set(["DATETIME","NANO_TIMESTAMP","LOCALDATETIME","TIMESTAMP"]),lL=new Set(["INT","INTEGER","LONG","SHORT","DOUBLE","BIGDECIMAL","DECIMAL"]);function dL(e){return(e||"").toUpperCase().trim().split("(")[0].trim()}function hL(e){const t=dL(e);return nL.has(t)?oL:rL.has(t)?sL:lL.has(t)?cL:iL}function uL(e){return lL.has(dL(e))}function fL(e){return null!=e&&("number"==typeof e?!Number.isNaN(e)&&e>0:"string"==typeof e&&(/^\d{8}$/.test(e)||/^\d{4}-\d{2}-\d{2}$/.test(e)||/^\d{8}-\d{2}:\d{2}(:\d{2})?$/.test(e)))}function pL(e){return null!=e&&("number"==typeof e?!Number.isNaN(e):"string"==typeof e&&!Number.isNaN(Number(e)))}function mL(e,t){const i=[],c=[],o=new Map;if(Array.isArray(t)&&t.length>0){"string"==typeof t[0]?t.forEach(e=>o.set(e,void 0)):t.forEach(e=>o.set(e.NAME,e))}for(const t of e){const{field:e,operator:s,value:a}=t;if(!e||"string"!=typeof e){c.push({field:String(e),message:"Field name is required"});continue}const n=o.get(e),r=n&&"TYPE"in n?n.TYPE:"STRING";hL(r).includes(s)?!oL.includes(s)&&!sL.includes(s)||"dateIsToday"===s||fL(a)?uL(r)&&cL.includes(s)&&!pL(a)?c.push({field:e,operator:s,value:a,message:"Invalid numeric value"}):o.size>0&&!o.has(e)?c.push({field:e,operator:s,value:a,message:`Unknown field '${e}'`}):i.push(t):c.push({field:e,operator:s,value:a,message:"Invalid date/datetime value; use yyyyMMdd, yyyy-MM-dd, or epoch"}):c.push({field:e,operator:s,value:a,message:`Operator '${s}' is not allowed for field type ${r}`})}return{valid:i,invalid:c}}const gL=af("foundation-notifications");let vL=null;const bL=new Map,yL=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.body)&&void 0!==i?i:"Something went wrong"}`},zL=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ju.debug},CL=e=>{gL.log({message:yL(e),level:zL(e)})},LL=(e,t)=>{let i=document.querySelector(`#${e}`);if(!i)if(bL.has(e))i=bL.get(e);else{const t=zf(document).find(t=>t.id===e);t&&(i=t,bL.set(e,t))}if(!i){i=document.createElement("div"),i.setAttribute("id",e),i.style.zIndex="9999";const{element:t,prefix:c}=Cf(document.body,"rapid");if(t)t.appendChild(i),vL=t;else if(vL)vL.appendChild(i);else{const e=document.createElement(`${c}-design-system-provider`);e.appendChild(i),document.body.appendChild(e),vL=e}}return i},xL=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e};var ML,wL,SL;!function(e){e.NOTIFICATION_EVENT="notification-event"}(ML||(ML={})),function(e){e.Top="top",e.Bottom="bottom"}(wL||(wL={})),function(e){e.Left="left",e.Right="right"}(SL||(SL={}));const kL="12px";const EL=(e,t,i)=>{var c,o,s,a,n,r,l,d,h,u,f,p,m,g,v,b,y,z,C;CL(e);const L=t.split("-")[0],x=(null===(o=null===(c=null==e?void 0:e.config)||void 0===c?void 0:c.toast)||void 0===o?void 0:o.position)||"top-right",M=null!==(s=null!=i?i:(e=>zf(document.body).find(t=>"notify-container"===t.tagName.toLowerCase()&&t.position===e))(x))&&void 0!==s?s:LL("notify-container");M&&"notify-container"!==M.tagName.toLowerCase()&&function(e,t){var i,c;switch(t.style.position="fixed",null===(c=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===c?void 0:c.position){case"top-left":t.style.top="var(--nav-height, 0)",t.style.left="0";break;case"bottom-left":t.style.bottom="0",t.style.left="0";break;case"bottom-right":t.style.bottom="0",t.style.right="0";break;default:t.style.top="var(--nav-height, 0)",t.style.right="0"}}(e,M);const w=document.createElement(`${L}-toast`),S=document.createElement("div");S.setAttribute("slot","top"),S.textContent=e.title;const k=document.createElement("div");k.setAttribute("slot","content"),k.textContent=(null==e?void 0:e.body)||"";const E=document.createElement("div");let $;E.setAttribute("slot","date"),E.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.toast)||void 0===r?void 0:r.buttons)&&(null===(h=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===h?void 0:h.length)&&($=document.createElement("div"),$.setAttribute("slot","bottom"),e.config.toast.buttons.forEach(t=>{const i=document.createElement(`${L}-button`);i.textContent=t.placeholder||"example placeholder",i.addEventListener("click",()=>{const{details:c}=e.config.toast;if(t.action)return t.action({details:c,buttonElement:i,toastElement:w})}),t.appearance&&i.setAttribute("appearance",t.appearance),$.appendChild(i)})),w.setAttribute("notify",(null===(f=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===f?void 0:f.type)||""),e.iconName&&w.setAttribute("notification-icon",e.iconName),(null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===m?void 0:m.autoClose)&&w.setAttribute("auto-close",`${null===(v=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===v?void 0:v.autoClose}`),(null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout)&&w.setAttribute("close-timeout",`${null===(C=null===(z=null==e?void 0:e.config)||void 0===z?void 0:z.toast)||void 0===C?void 0:C.closeTimeout}`),w.appendChild(S),w.appendChild(k),w.appendChild(E),$&&w.appendChild($),M.prepend(w)},$L=(e,t,i)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let c={title:e.title,body:e.body,iconName:e.iconName},o={};e.createdAt&&(c=Object.assign({createdAt:e.createdAt},c)),null!=e.logLevel&&(c=Object.assign({logLevel:e.logLevel},c)),e.toast&&(o=Object.assign({toast:e.toast},o),c=Object.assign({config:o},c)),EL(c,t,i)},NL=Me` :host{position: fixed;z-index: 9999;display: flex;flex-direction: column;gap: 4px;box-sizing: border-box;pointer-events: none;/* Allow clicks to pass through empty space */ width: 415px}.toast-container{padding: 0 8px 12px 12px;position: relative}/* Expanded / List State: Allow scrolling if too many items */ :host(:not([stack-collapsed])){max-height: calc(100% - var(--nav-height));overflow: hidden;pointer-events: auto;/* Enable pointer events for scrolling */ slot{display: block;height: calc(100vh - var(--nav-height) - 54px);position: relative}.toast-container{flex: 1;height: 100%;overflow-y: auto;overflow-x: hidden;scrollbar-color: var(--neutral-layer-3) transparent;&:hover{scrollbar-color: var(--neutral-layer-4) transparent}}}.header{display: flex;gap: 12px;pointer-events: none;margin: 5px 24px;justify-content: space-between;visibility: hidden;align-items: center;box-sizing: border-box;.header-title{text-shadow: 0 0 10px #000}.notification-header-buttons{display: flex;gap: 4px;rapid-icon{color: var(--neutral-foreground-hint);margin-left: 4px;display: inline-flex;font-size: 14px;&.chevron-up.collapse{transform: rotate(180deg);transition: transform 0.3s ease}}}--base-height-multiplier: 8;*[appearance='neutral']{font-size: 11px;cursor: pointer;background: var(--neutral-fill-rest)}}.header.visible{visibility: visible;pointer-events: auto;/* Enable clicks on header buttons */}:host([position$='left']) .header{justify-content: space-between}:host([position^='bottom']) .header{margin-bottom: 0;margin-top: 4px}/* Ensure children (toasts) are clickable */ ::slotted(*){pointer-events: auto}:host([position='top-right']){top: var(--nav-height, 0);right: 0}:host([position='top-left']){top: var(--nav-height, 0);left: 0}:host([position='bottom-right']){bottom: 0;right: 0;flex-direction: column-reverse}:host([position='bottom-left']){bottom: 0;left: 0;flex-direction: column-reverse}/* Stacked / Collapsed State */ :host([stack-collapsed]){height: min-content;/* Host allows pointer events so they can reach the slot */ pointer-events: auto;cursor: pointer}/* Apply the grid layout to the slot itself so it acts as the container and click target */ :host([stack-collapsed]) slot{display: grid;grid-template-columns: auto;grid-template-rows: auto;align-items: end;/* Default to bottom-up stacking */ justify-items: center;/* The slot catches the click */ pointer-events: auto}/* Rotate when the collapse class is present */ :host([stack-collapsed][position^='top']) slot{align-items: start}:host([stack-collapsed][position$='right']) slot{justify-items: end}:host([stack-collapsed][position$='left']) slot{justify-items: start}:host([stack-collapsed]) ::slotted(*){grid-area: 1 / 1;transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;opacity: 0%;pointer-events: none !important;/* Disable interaction with toasts in collapsed state */ transform: scale(0.9);top: 0 !important}/* Show and offset the top 3 items in the stack */ :host([stack-collapsed]) ::slotted([data-stack-index='0']){opacity: 100%;pointer-events: auto;transform: translateY(0) scale(1);z-index: 3;position: relative !important}:host([stack-collapsed]) ::slotted([data-stack-index='1']){opacity: 100%;transform: translateY(var(--stack-offset-y, 8px)) scale(0.95);z-index: 2;position: relative !important}:host([stack-collapsed]) ::slotted([data-stack-index='2']){opacity: 100%;transform: translateY(var(--stack-offset-y-2, 16px)) scale(0.9);z-index: 1;position: relative !important}/* Adjust offset direction based on position */ :host([stack-collapsed][position^='top']){--stack-offset-y: 8px;--stack-offset-y-2: 16px}:host([stack-collapsed][position^='bottom']){--stack-offset-y: -8px;--stack-offset-y-2: -16px}`,AL=K` ${Ve(e=>e.allowCloseAll||e.allowManualCollapse,K` ${e=>(e=>K`<div class="header ${e=>ti(["visible",e.slottedNodes.length>1])}">${Ve(e=>e.showCount,K`<span class="header-title">${e=>e.slottedNodes.length}Notifications</span>`)}<div class="notification-header-buttons">${Ve(e=>e.allowManualCollapse,K`<${e}-button @click=${e=>e.handleToggleCollapse()}>${e=>e.stackCollapsed?"Expand":"Collapse"}<${e}-icon class="chevron-up ${e=>ti(["collapse",e.stackCollapsed])}" name="chevron-up"></${e}-icon></${e}-button>`)} ${Ve(e=>e.allowCloseAll,K`<${e}-button @click=${e=>e.handleCloseAll()}>
|
|
60
60
|
Close All <${e}-icon name="xmark"></${e}-icon></${e}-button>`)}</div></div>`)(e.designSystemPrefix)} `)}<div class="toast-container"><slot ${Qe("slottedNodes")}@click="${e=>e.handleContainerClick()}"></slot></div>`;let OL=class extends ze{constructor(){super(...arguments),this.position="top-right",this.stackThreshold=5,this.allowManualCollapse=!0,this.allowCloseAll=!0,this.designSystemPrefix="rapid",this.showCount=!0,this.stackCollapsed=!1,this.notificationInterval=0,this.manuallyExpanded=!1,this.pendingQueue=[],this.queueTimer=null,this.queuedNodes=new Set,this.mutationObserver=null,this.knownNodes=new Set,this.peekingNode=null,this.peekTimer=null,this.routeSubscriber={handleChange:()=>this.checkRoute(gp.shared.pathName)},this.slottedNodes=[]}connectedCallback(){super.connectedCallback(),"bottom-left"!==this.position&&"bottom-right"!==this.position||gL.error("NotifyContainer doesn't currently support bottom corner placements"),v.getNotifier(gp.shared).subscribe(this.routeSubscriber,"pathName"),this.checkRoute(gp.shared.pathName),this.mutationObserver=new MutationObserver(e=>this.handleMutation(e)),this.mutationObserver.observe(this,{childList:!0})}disconnectedCallback(){var e;super.disconnectedCallback(),v.getNotifier(gp.shared).unsubscribe(this.routeSubscriber,"pathName"),null===(e=this.mutationObserver)||void 0===e||e.disconnect(),this.mutationObserver=null}checkRoute(e){(e.includes("/login")||e.includes("/logout"))&&(this.pendingQueue=[],this.queuedNodes.clear(),clearTimeout(this.queueTimer),this.queueTimer=null,this.handleCloseAll())}slottedNodesChanged(){if(!this.manuallyExpanded&&!this.stackCollapsed&&this.slottedNodes.length>this.stackThreshold&&(this.stackCollapsed=!0),this.stackCollapsed&&this.slottedNodes.length<=1&&(this.stackCollapsed=!1,this.manuallyExpanded=!1,this.cancelPeek()),this.stackCollapsed){const e=this.slottedNodes.filter(e=>e instanceof HTMLElement&&!this.knownNodes.has(e)).shift();e&&this.maybePeek(e)}this.knownNodes=new Set(this.slottedNodes),this.applySort()}handleContainerClick(){this.stackCollapsed&&(this.stackCollapsed=!1,this.manuallyExpanded=!0,this.cancelPeek())}handleToggleCollapse(){this.stackCollapsed=!this.stackCollapsed,this.manuallyExpanded=!this.stackCollapsed,this.stackCollapsed||this.cancelPeek()}handleCloseAll(){for(this.cancelPeek();this.firstChild;)this.removeChild(this.firstChild);this.stackCollapsed=!1,this.manuallyExpanded=!1}notificationIntervalChanged(e,t){!t&&this.pendingQueue&&this.flushQueue()}handleMutation(e){this.notificationInterval&&(e.forEach(e=>{e.addedNodes.forEach(e=>{e instanceof HTMLElement&&(this.queuedNodes.has(e)?this.queuedNodes.delete(e):(this.removeChild(e),this.pendingQueue.push(e)))})}),this.queueTimer||this.processQueue())}processQueue(){if(!this.pendingQueue.length)return void(this.queueTimer=null);const e=this.pendingQueue.shift();this.queuedNodes.add(e),this.prepend(e),this.queueTimer=setTimeout(()=>{this.queueTimer=null,this.processQueue()},this.notificationInterval)}flushQueue(){for(clearTimeout(this.queueTimer),this.queueTimer=null;this.pendingQueue.length;){const e=this.pendingQueue.shift();this.queuedNodes.add(e),this.prepend(e)}}sortFnChanged(){this.applySort()}applySort(){const e=this.slottedNodes.filter(e=>e instanceof HTMLElement);if(!e.length)return;const t=this.sortFn&&e.length>1?[...e].sort(this.sortFn):e;this.peekingNode&&t.includes(this.peekingNode)?this.handlePosition([this.peekingNode,...t.filter(e=>e!==this.peekingNode)]):this.handlePosition(t)}maybePeek(e){const t=this.slottedNodes.filter(e=>e instanceof HTMLElement);if(0===(this.sortFn&&t.length>1?[...t].sort(this.sortFn):t).indexOf(e))return;this.cancelPeek(),this.peekingNode=e;const i=this.notificationInterval?this.notificationInterval/2:1500;this.peekTimer=setTimeout(()=>{this.peekingNode=null,this.peekTimer=null,this.applySort()},i)}cancelPeek(){clearTimeout(this.peekTimer),this.peekTimer=null,this.peekingNode=null}handlePosition(e){if(!e.length)return;e.forEach((t,i)=>{t.style.position="absolute",t.style.transition="all 0.3s ease-in",t.style.right="0px",t.style.zIndex=(e.length-i).toString(),t.dataset.stackIndex=i.toString()});const t=e.map(e=>e.offsetHeight);e.reduce((e,i,c)=>(i.style.top=`${e}px`,e+t[c]),0)}};Ou([de],OL.prototype,"position",void 0),Ou([de({attribute:"stack-threshold"})],OL.prototype,"stackThreshold",void 0),Ou([de({attribute:"allow-manual-collapse",mode:"boolean"})],OL.prototype,"allowManualCollapse",void 0),Ou([de({attribute:"allow-close-all",mode:"boolean"})],OL.prototype,"allowCloseAll",void 0),Ou([de({attribute:"design-system-prefix"})],OL.prototype,"designSystemPrefix",void 0),Ou([de({attribute:"show-count",mode:"boolean"})],OL.prototype,"showCount",void 0),Ou([de({attribute:"stack-collapsed",mode:"boolean"})],OL.prototype,"stackCollapsed",void 0),Ou([de({attribute:"notification-interval"})],OL.prototype,"notificationInterval",void 0),Ou([b],OL.prototype,"sortFn",void 0),Ou([b],OL.prototype,"slottedNodes",void 0),OL=Ou([Ce({name:"notify-container",template:AL,styles:NL})],OL);const TL={alert:e=>{CL(e),alert(yL(e))},toast:EL,dialog:(e,t,i)=>{CL(e);const c=t.split("-")[0],o=document.createElement(`${c}-dialog`),s=i?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(i):LL("dialog-container");s.appendChild(o),o.notification=e,o.show()},snackbar:(e,t)=>{var i,c,o,s,a,n;CL(e);const r=t.split("-")[0],l=document.createElement(`${r}-snackbar`),d=null!==(o=null===(c=null===(i=e.config)||void 0===i?void 0:i.snackbar)||void 0===c?void 0:c.verticalEdge)&&void 0!==o?o:wL.Bottom,h=null!==(n=null===(a=null===(s=e.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.horizontalEdge)&&void 0!==n?n:SL.Left,u=LL(`snack-container-${d}-${h}`);u&&((e,t,i)=>{e.style.position="fixed",e.style.top=t===wL.Top?kL:"",e.style.bottom=t===wL.Bottom?kL:"",e.style.left=i===SL.Left?kL:"",e.style.right=i===SL.Right?kL:""})(u,d,h),u.appendChild(l),l.notification=e},banner:(e,t,i)=>{var c;CL(e);const o=t.split("-")[0],s=document.createElement(`${o}-banner`),a=(e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const c=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(c)return c.style.position="relative",c;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return xL()})(i);(null===(c=null==a?void 0:a.children)||void 0===c?void 0:c.length)>0&&(s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.width="100%"),a.appendChild(s),s.notification=e}},RL=(e,t,i)=>{Object.keys((null==e?void 0:e.config)||{}).forEach(c=>{TL[c]&&TL[c](e,t,i)})};function IL(e,t,i){(null==t?void 0:t.trim())&&RL({title:e,body:t,config:{toast:{autoClose:!0,closeTimeout:4e3,type:"error"}}},i)}class DL extends Wt{constructor(){super(...arguments),this.placeholder="Describe your search criteria in natural language...",this.inputValue="",this.isInterpreting=!1,this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.fieldMetadata=[],this.isRecording=!1,this.stopRecording=null,this.speechApplyDebounceTimer=null}get speechAvailable(){return GC()}get criteriaChips(){return this.activeGroups.flatMap((e,t)=>e.clauses.map((e,i)=>{var c,o;return{groupIndex:t,clauseIndex:i,fieldLabel:this.getFieldLabel(e.field),operatorLabel:null!==(c=aL[e.operator])&&void 0!==c?c:e.operator,valueLabel:"dateIsToday"===e.operator?"":String(null!==(o=e.value)&&void 0!==o?o:"")}}))}getFieldLabel(e){var t,i;if(!Array.isArray(this.fieldMetadata)||0===this.fieldMetadata.length)return e;if("string"==typeof this.fieldMetadata[0])return e;const c=this.fieldMetadata.find(t=>t.NAME===e);return null!==(i=null!==(t=null==c?void 0:c.UI_LABEL)&&void 0!==t?t:null==c?void 0:c.NAME)&&void 0!==i?i:e}toggleCriteriaView(){this.showingChips?(this.inputValue="",this.showingChips=!1):this.showingChips=!0}removeChip(e,t){var i;const c=this.activeGroups.map(e=>Object.assign(Object.assign({},e),{clauses:[...e.clauses]}));null===(i=c[e])||void 0===i||i.clauses.splice(t,1);const o=c.filter(e=>e.clauses.length>0);if(this.activeGroups=o,0===o.length)this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null);else{const e=tL(o);this.lastValidCriteria=e,this.$emit("criteria-changed",e)}}clearChips(){this.activeGroups=[],this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null)}handleSubmit(){return Ru(this,void 0,void 0,function*(){var e,t,i;const c=null===(e=this.inputValue)||void 0===e?void 0:e.trim();if(!c||this.isInterpreting)return;const o=null===(t=this.providerRegistry)||void 0===t?void 0:t.default();if(null==o?void 0:o.interpretCriteria){this.isInterpreting=!0;try{const e=Array.isArray(this.fieldMetadata)?this.fieldMetadata:[],t=yield o.interpretCriteria(c,{fields:e});if(!(null===(i=null==t?void 0:t.groups)||void 0===i?void 0:i.some(e=>{var t;return null===(t=e.clauses)||void 0===t?void 0:t.length})))return IL("AI criteria search","AI could not interpret the criteria",kC(this)),void(this.isInterpreting=!1);const{valid:a,invalid:n}=function(e,t){var i;const c=[],o=[];for(const s of e){if(!(null==s?void 0:s.clauses)||!Array.isArray(s.clauses)){o.push({field:"",message:"Group must have a clauses array"});continue}const{valid:e,invalid:a}=mL(s.clauses,t);o.push(...a),e.length>0&&c.push({logic:null!==(i=s.logic)&&void 0!==i?i:"and",negated:s.negated,clauses:e})}return{valid:c,invalid:o}}(t.groups,this.fieldMetadata);if(n.length>0&&(IL("Criteria validation error",0===(s=n).length?"":1===s.length?s[0].message:s.map(e=>e.message).join("; "),kC(this)),this.$emit("validation-errors",n)),a.length>0){const e=[...this.activeGroups,...a],t=tL(e);this.lastValidCriteria=t,this.activeGroups=e,this.inputValue="",this.showingChips=!0,this.$emit("criteria-changed",t)}}catch(e){IL("AI criteria search",e instanceof Error?e.message:"Interpretation failed",kC(this))}finally{this.isInterpreting=!1}var s}else IL("AI criteria search","AI provider not configured",kC(this))})}handleBlur(){var e;if(this.isRecording)return;(null===(e=this.inputValue)||void 0===e?void 0:e.trim())?this.handleSubmit():this.activeGroups.length>0&&(this.showingChips=!0)}clear(){this.inputValue="",this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.$emit("criteria-changed",null)}toggleSpeechInput(){if(this.isRecording&&this.stopRecording)return this.clearSpeechApplyDebounce(),this.stopRecording(),this.stopRecording=null,void(this.isRecording=!1);this.inputValue="",this.showingChips=!1,this.stopRecording=function(e,t){if(!GC())return null;const i=new(window.SpeechRecognition||window.webkitSpeechRecognition);i.continuous=!0,i.interimResults=!0,i.lang="en-US";let c="";return i.onresult=t=>{let i="",o="";for(let e=t.resultIndex;e<t.results.length;e+=1){const c=t.results[e][0].transcript;t.results[e].isFinal?o+=c:i+=c}o?(c+=o,e(c,!0)):i&&e(c+i,!1)},i.onerror=e=>{"aborted"!==e.error&&(null==t||t(e.error||"Speech recognition error"))},i.start(),()=>{try{i.stop()}catch(e){}}}((e,t)=>{this.inputValue=e,t&&(null==e?void 0:e.trim())&&(this.clearSpeechApplyDebounce(),this.stopRecording&&(this.stopRecording(),this.stopRecording=null,this.isRecording=!1),this.speechApplyDebounceTimer=setTimeout(()=>{this.speechApplyDebounceTimer=null,this.handleSubmit()},700))},()=>{this.clearSpeechApplyDebounce(),this.isRecording=!1,this.stopRecording=null}),this.stopRecording&&(this.isRecording=!0)}clearSpeechApplyDebounce(){this.speechApplyDebounceTimer&&(clearTimeout(this.speechApplyDebounceTimer),this.speechApplyDebounceTimer=null)}}Ou([KC],DL.prototype,"providerRegistry",void 0),Ou([de],DL.prototype,"placeholder",void 0),Ou([de({mode:"boolean"})],DL.prototype,"disabled",void 0),Ou([b],DL.prototype,"inputValue",void 0),Ou([b],DL.prototype,"isInterpreting",void 0),Ou([b],DL.prototype,"lastValidCriteria",void 0),Ou([b],DL.prototype,"activeGroups",void 0),Ou([b],DL.prototype,"showingChips",void 0),Ou([b],DL.prototype,"fieldMetadata",void 0),Ou([b],DL.prototype,"isRecording",void 0),Ou([y],DL.prototype,"speechAvailable",null),Ou([y],DL.prototype,"criteriaChips",null);const FL=void 0,HL={};DL.compose(Object.assign({baseName:"ai-criteria-search",template:QC,styles:ZC,shadowOptions:FL},HL));const _L=(e,t)=>Me` :host{display: flex;justify-content: center;align-items: center;width: 100%;margin: calc(var(--design-unit) * 2px) 0;position: relative;/* Same as connection indicator */ --green: 50 164 49;--trafic-light-green: rgb(var(--green));--red: 187 30 16;--trafic-light-red: rgb(var(--red));--amber: 230 160 20;--trafic-light-amber: rgb(var(--amber))}.ai-indicator-container{display: flex;flex-direction: column;align-items: center;position: relative}.ai-indicator-badge{display: inline-flex;align-items: center;gap: calc(var(--design-unit) * 1.4px);font-size: 12px;line-height: 1;font-weight: 600;text-transform: uppercase;height: calc(var(--design-unit) * 6px);padding: calc(var(--design-unit) * 0.5px) calc(var(--design-unit) * 2px);border-radius: calc(var(--design-unit) * 1px);cursor: pointer;color: #fff}.ai-indicator-badge:hover{opacity: 90%}.ai-indicator-badge.green{background: var(--trafic-light-green)}.ai-indicator-badge.amber{background: var(--trafic-light-amber)}.ai-indicator-badge.red{background: var(--trafic-light-red)}.ai-indicator-badge .ai-indicator-icon{flex-shrink: 0;color: inherit}.ai-indicator-badge.pulsing{animation: ai-indicator-pulse 1.5s ease-in-out infinite}@keyframes ai-indicator-pulse{0%, 100%{opacity: 100%}50%{opacity: 50%}}.ai-indicator-dropdown{position: absolute;top: 100%;right: 0;margin-top: calc(var(--design-unit) * 2px);min-width: 200px;padding: calc(var(--design-unit) * 4px);background: var(--neutral-layer-floating, #fff);border: 1px solid var(--neutral-stroke-rest, #e0e0e0);border-radius: calc(var(--design-unit) * 2px);box-shadow: 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * 4px) rgb(0 0 0 / 12%);z-index: 1000}.ai-indicator-info{display: flex;flex-direction: column;gap: 0;margin: 0;padding: 0}.ai-indicator-info .info-row{display: grid;grid-template-columns: 72px 1fr;gap: calc(var(--design-unit) * 4px);align-items: baseline;padding: calc(var(--design-unit) * 1.5px) 0;border-bottom: 1px solid var(--neutral-stroke-subtle, #eee)}.ai-indicator-info .info-row:last-child{border-bottom: none}.ai-indicator-info .info-label{margin: 0;font-size: var(--type-ramp-base-font-size);font-weight: 500;color: var(--neutral-foreground-hint, #666)}.ai-indicator-info .info-value{margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest, #333);text-transform: capitalize;word-break: break-word}.install-button{margin-top: calc(var(--design-unit) * 3px);width: 100%}`,PL=K` ${e=>(e=>K` ${Ve(()=>qC(),K`<div class="ai-indicator-container" part="ai-indicator-container"><div class=${e=>ti("ai-indicator-badge",["green","available"===e.state||"server"===e.state],["amber","downloading"===e.state||"downloadable"===e.state],["red","unavailable"===e.state||"none"===e.state],["pulsing","downloading"===e.state||e.isInstalling])}data-test-id="ai-indicator-badge" part="ai-indicator-badge" role="button" tabindex="0" aria-label="AI status" aria-haspopup="true" aria-expanded="${e=>e.open}" @click=${e=>e.toggleDropdown()}@keydown=${(e,t)=>{const i=t.event;"Enter"!==i.key&&" "!==i.key||(i.preventDefault(),e.toggleDropdown())}}><${e}-icon class="ai-indicator-icon" name="wand-magic-sparkles" size="xs" variant="solid" part="ai-indicator-icon"></${e}-icon><span class="ai-indicator-text" data-test-id="ai-indicator-text" part="ai-indicator-text">AI</span></div>${Ve(e=>e.open,K`<div class="ai-indicator-dropdown" part="ai-indicator-dropdown"><dl class="ai-indicator-info"><div class="info-row"><dt class="info-label">Provider</dt><dd class="info-value">${e=>{var t,i;return null!==(i=null===(t=e.status)||void 0===t?void 0:t.provider)&&void 0!==i?i:"none"}}</dd></div><div class="info-row"><dt class="info-label">Model</dt><dd class="info-value">${e=>{var t;return(null===(t=e.status)||void 0===t?void 0:t.model)||"—"}}</dd></div>${Ve(e=>e.chromeStatusLabel,K`<div class="info-row"><dt class="info-label">Status</dt><dd class="info-value">${e=>e.chromeStatusLabel}</dd></div>`)}</dl>${Ve(e=>e.canInstall,K`<${e}-button class="install-button" appearance="accent" @click=${(e,t)=>{t.event.preventDefault(),e.onInstall()}}>
|
|
@@ -105,4 +105,4 @@ function vz(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var c
|
|
|
105
105
|
+
|
|
106
106
|
</${c}>`)}</div><div class="rule-header"><div class="btn-group rule-actions"><${c}type="button" class="btn btn-sm btn-danger" data-delete="rule" @click="${(e,t)=>e.dispatchDeleteRule(t.event)}">
|
|
107
107
|
Delete Rule </${c}></div></div></div>`}} `;let w6=class extends ze{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),Y0(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==G0(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(L6)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,b6(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(K0.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(K0.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(K0.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,c=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,o={ruleId:this.model.ruleId,newData:{field:c,value:null,operator:null}};this.dispatchEvent(new CustomEvent(K0.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,c={ruleId:this.model.ruleId,newData:C6(this.model,t,i)};this.dispatchEvent(new CustomEvent(K0.UpdateRule,{detail:c,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const c=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!c)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(K0.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:z6(c,this.model)},bubbles:!0,composed:!0}))}};Ou([b],w6.prototype,"config",void 0),Ou([b],w6.prototype,"styles",void 0),Ou([b],w6.prototype,"model",void 0),Ou([b],w6.prototype,"index",void 0),Ou([de({mode:"boolean"})],w6.prototype,"error",void 0),Ou([y],w6.prototype,"operandIterator",null),w6=Ou([Ce({name:"expression-rule",template:M6,styles:x6,shadowOptions:{delegatesFocus:!0}})],w6);let S6=class extends ze{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=V0(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=B0(t);this.dispatchChangeEvent(i)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(K0.AddGroup,this.handleAddGroup),this.addEventListener(K0.DelGroup,this.handleDeleteGroup),this.addEventListener(K0.AddRule,this.handleAddRule),this.addEventListener(K0.DelRule,this.handleDeleteRule),this.addEventListener(K0.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(K0.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(K0.AddGroup,this.handleAddGroup),this.removeEventListener(K0.DelGroup,this.handleDeleteGroup),this.removeEventListener(K0.AddRule,this.handleAddRule),this.removeEventListener(K0.DelRule,this.handleDeleteRule),this.removeEventListener(K0.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(K0.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,c;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(c=e.fields)||void 0===c?void 0:c.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:P0,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,c={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=_0(this.model,t,c)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=_0(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,c;this.model=I0(i=this.model,F0(i,c=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==c))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,c;this.model=I0(i=this.model,H0(i,c=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==c))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===P0?Object.assign(Object.assign({},e),i):I0(e,F0(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return I0(e,H0(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};Ou([b],S6.prototype,"config",void 0),Ou([b],S6.prototype,"styles",void 0),Ou([b],S6.prototype,"model",void 0),S6=Ou([Ce({name:"expression-builder",template:i6,styles:Z0})],S6);let k6=class extends S6{};k6=Ou([Ce({name:"foundation-expression-builder",styles:Z0,template:i6})],k6);const E6=["int","short","long"],$6=["double","bigdecimal"],N6=[...E6,...$6],A6=["date","date-time"],O6=["string","enum"],T6=["boolean"],R6=e=>{var t,i,c;return null!==(c=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==c?c:e.field.type};function I6(e){switch(R6(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function D6(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function F6(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function H6(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}function _6(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=R6(e);if(O6.includes(i))return t;if(N6.includes(i))return t.toString();if(T6.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(A6.includes(i))return new Date(t).getTime().toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function P6(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?P6(e,t):t(e)).filter(Boolean)}}function V6(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=R6(e);if(O6.includes(i))return t;if(E6.includes(i))return parseInt(t);if($6.includes(i))return parseFloat(t);if(T6.includes(i))return t;if(A6.includes(i)){const e=new Date(parseInt(t));return"date"===i?U0(e):j0(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const B6={template:i6,styles:Z0};var U6;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(U6||(U6={}));const j6=[{type:U6.logicalOperations.AND,maxRules:"many"},{type:U6.logicalOperations.OR,maxRules:"many"}],q6={EQUALS:U6.operations.EQUALS,NOT_EQUALS:U6.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:U6.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:U6.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:U6.operations.LESS_THAN,LESS_THAN_OR_EQUAL:U6.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:U6.operations.IS_CURRENT,IS_PREVIOUS:U6.operations.IS_PREVIOUS},G6=e=>({type:"enum",input:"select",values:e}),W6=G6({HOUR:{label:"Hour",tooltip:"Beginning of the hour immediately preceding the current one to the current hour."},DAY:{label:"Day",tooltip:"Midnight on the day before today to midnight of the current day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the previous week to midnight on the Monday of the current week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the previous month to midnight on the 1st of the current month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year."}}),Y6=G6({HOUR:{label:"Hour",tooltip:"Beginning of the current hour to beginning of the next hour."},DAY:{label:"Day",tooltip:"Midnight on the current day day to midnight of the next day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the current week to midnight on the Monday of the next week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the current month to midnight on the 1st of the next month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year."}}),K6=[{type:q6.EQUALS,label:"Equals",nbInputs:1,applyTo:[...O6,...T6,...N6,...A6],tooltip:"Check the equality of the field compared to a set value"},{type:q6.NOT_EQUALS,label:"Not equals",nbInputs:1,applyTo:[...O6,...T6,...N6,...A6],tooltip:"Check that the field is different from a set value"},{type:q6.IS_NULL,label:"Is null",nbInputs:0,applyTo:["enum",...T6,...N6,...A6],tooltip:"Check if the field value is null"},{type:q6.NOT_NULL,label:"Not null",nbInputs:0,applyTo:["enum",...T6,...N6,...A6],tooltip:"Check if the field value is not null"},{type:q6.IS_NULL_OR_BLANK,label:"Is null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:q6.NOT_NULL_OR_BLANK,label:"Not null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:q6.CONTAINS,label:"Contains",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:q6.CONTAINS_WORDS_STARTING_WITH,label:"Contains words starting with",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:q6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:"Contains words starting with (split)",nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:q6.GREATER_THAN,label:"Greater than",nbInputs:1,applyTo:[...N6],tooltip:"Check if the field value is greater than a specified number"},{type:q6.GREATER_THAN_OR_EQUAL,label:"Greater than or equal to",nbInputs:1,applyTo:[...N6],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:q6.LESS_THAN,label:"Less than",nbInputs:1,applyTo:[...N6],tooltip:"Check if the field value is less than a specified number"},{type:q6.LESS_THAN_OR_EQUAL,label:"Less than or equal to",nbInputs:1,applyTo:[...N6],tooltip:"Check if the field value is less than or equal to a specified number"},{type:q6.IS_BEFORE,label:"Is before",nbInputs:1,applyTo:[...A6],tooltip:"Check if the field is before a specified date/time"},{type:q6.IS_AFTER,label:"Is after",nbInputs:1,applyTo:[...A6],tooltip:"Check if the field is after a specified date/time"},{type:q6.ON_OR_BEFORE,label:"On or before",nbInputs:1,applyTo:[...A6],tooltip:"Check if the field is on or before a specified date/time"},{type:q6.ON_OR_AFTER,label:"On or after",nbInputs:1,applyTo:[...A6],tooltip:"Check if the field is on or after a specified date/time"},{type:q6.IS_CURRENT,label:"Is current",nbInputs:1,applyTo:[...A6],tooltip:"Check whether the current date/time matches the current hour/day/work day/week/month/year.",valueType:Y6,optgroup:"Relative Period"},{type:q6.IS_PREVIOUS,label:"Is previous",nbInputs:1,applyTo:[...A6],tooltip:"Check whether the current date/time matches the previous hour/day/work day/week/month/year",valueType:W6,optgroup:"Relative Period"}];function Z6(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const c=_6(e),o=I6(c),s=function(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}(c.operator.type);switch(s){case q6.EQUALS:case q6.NOT_EQUALS:case q6.GREATER_THAN:case q6.GREATER_THAN_OR_EQUAL:case q6.LESS_THAN:case q6.LESS_THAN_OR_EQUAL:return D6(c,s,o);case q6.IS_NULL:return F6(c,U6.operations.EQUALS,{TYPE:"NULL"});case q6.NOT_NULL:return F6(c,U6.operations.NOT_EQUALS,{TYPE:"NULL"});case q6.IS_NULL_OR_BLANK:case q6.NOT_NULL_OR_BLANK:case q6.CONTAINS:case q6.CONTAINS_WORDS_STARTING_WITH:case q6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case q6.IS_CURRENT:case q6.IS_PREVIOUS:return function(e,t){switch(t){case q6.IS_NULL_OR_BLANK:return H6(e,U6.methodCall.IS_NULL_OR_BLANK,[]);case q6.NOT_NULL_OR_BLANK:return H6(e,U6.methodCall.NOT_NULL_OR_BLANK,[]);case q6.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return H6(e,U6.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case q6.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return H6(e,U6.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case q6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return H6(e,U6.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case q6.IS_CURRENT:case q6.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return H6(e,U6.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===q6.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}(c,s);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function Q6(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return V6(function(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?q6[q6.IS_NULL]:q6[q6.NOT_NULL];return K6.find(t=>t.type===e)}const i=function(e,t){if("date"!==t.field.type&&"date-time"!==t.field.type)return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}(t.OPERATION,e);return K6.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function X6(e,t){return{combinator:j6.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return X6(e,t);if("BINARY_EXPRESSION"===t.TYPE)return Q6(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,c]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[q6[q6.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[q6[q6.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[q6[q6.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[q6[q6.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&3===t.PARAMETERS.length:return[q6[q6.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===U6.methodCall.DATE_TIME_IS_IN_RANGE&&3===t.PARAMETERS.length&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[q6["CURRENT"===t.PARAMETERS[2].VALUE?q6.IS_CURRENT:q6.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:K6.find(e=>e.type===i),value:c}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let J6=class extends S6{ruleConfigChanged(e,t){this.config=Object.assign({combinators:j6,operators:K6,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:X6(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=P6(e,Z6);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};Ou([b],J6.prototype,"ruleConfig",void 0),J6=Ou([Ce({name:"foundation-rule-expression-builder",styles:Z0,template:i6})],J6);const e8={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},t8=[{type:e8.PLUS,label:"Add (+)",applyTo:[...N6],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:e8.MINUS,label:"Subtract (-)",applyTo:[...N6],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:e8.MULTIPLY,label:"Multiply (*)",applyTo:[...N6],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:e8.DIVIDE,label:"Divide (/)",applyTo:[...N6],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:e8.CONVERT_TO_DATE,label:"Convert to date",applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:e8.CONVERT_TO_DATE_TIME,label:"Convert to date time",applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function i8(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const c=_6(e),o=I6(c),s=c.operator.type;switch(s){case e8.TRIM:case e8.CONVERT_TO_DATE:case e8.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case e8.TRIM:return H6(e,U6.methodCall.TRIM,[]);case e8.CONVERT_TO_DATE:return H6(e,U6.methodCall.LONG_TO_DATE,[]);case e8.CONVERT_TO_DATE_TIME:return H6(e,U6.methodCall.LONG_TO_DATE_TIME,[])}}(c,s);case e8.PLUS:case e8.MINUS:case e8.DIVIDE:case e8.MULTIPLY:return D6(c,s,o);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function c8(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return V6(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return t8.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function o8(e,t){return{combinator:N0,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return o8(e,t);if("BINARY_EXPRESSION"===t.TYPE)return c8(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,c]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[e8[e8.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[e8[e8.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[e8[e8.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:t8.find(e=>e.type===i),value:c}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let s8=class extends S6{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},c=o8(t.fields,i);this.config={combinators:[N0],operators:t8,fields:t.fields,model:c,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:i8(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};Ou([b],s8.prototype,"valueConfig",void 0),s8=Ou([Ce({name:"foundation-value-expression-builder",styles:Z0,template:i6})],s8);const a8=K`<template ${Fe("notificationListener")}><slot></slot></template>`;class n8 extends Wt{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return Ru(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(ML.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),RL(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>Ru(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return Ru(this,void 0,void 0,function*(){var e;this.resourceName&&(null===(e=this.dataSub)||void 0===e||e.unsubscribe(),this.dataSub=void 0,yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return Ru(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate(Hz(e))}):xC.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach(e=>{this.showNotificationToast(e)})}showNotificationToast(e){const{HEADER:t,MESSAGE:i,NOTIFY_SEVERITY:c}=e,o=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let a=[];this.toastButtons&&this.toastButtons.length>0&&(a=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));const n={title:t,body:i,createdAt:o,toast:{details:e,type:null==c?void 0:c.toLowerCase(),buttons:a,autoClose:void 0!==s?!!s:!!this.closeTimeout,closeTimeout:null!=s?s:this.closeTimeout,position:this.toastPosition}};$L(n,this.tagName)}}Ou([b],n8.prototype,"notificationListener",void 0),Ou([mz],n8.prototype,"connect",void 0),Ou([de({attribute:"resource-name"})],n8.prototype,"resourceName",void 0),Ou([de({attribute:"close-timeout",converter:re})],n8.prototype,"closeTimeout",void 0),Ou([b],n8.prototype,"toastButtons",void 0),Ou([de({attribute:"toast-position"})],n8.prototype,"toastPosition",void 0),Ou([Kz],n8.prototype,"datasource",void 0),n8.compose({baseName:"notification-listener",template:a8,shadowOptions:{mode:"open",delegatesFocus:!0}});const r8=af("foundation-router"),l8="$router",d8=Object.freeze({getOrCreateFor:e=>{const t=e[l8];return void 0!==t?t:e[l8]=new h8(e)},find:e=>zy.find(e),from:e=>zy.from(e)});class h8 extends Cy{}const u8=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function f8(e){return u8.test(e)}function p8(e){return e.config instanceof By?e:d8.find(e)}function m8(){null===document.querySelector("foundation-router, fast-router")&&window.dispatchEvent(new PopStateEvent("popstate"))}const g8=Object.freeze({path:Object.freeze({get current(){return jb.path.current},generateRoute:(e,t,...i)=>Ru(void 0,[e,t,...i],void 0,function*(e,t,i={}){let c=p8(e);for(;null!==c;){const e=yield c.config.generateRouteFromPath(t,i);if(null!==e)return e;c=c.parent}return null}),push:(e,t=!0)=>{e&&f8(e)?location.href=e:(history.pushState({},document.title,e),m8(),t&&g8.path.trigger(e))},replace:(e,t=!0)=>{e&&f8(e)?location.href=e:(history.replaceState({},document.title,e),m8(),t&&g8.path.trigger(e))},trigger:e=>{jb.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>Ru(void 0,[e,t,...i],void 0,function*(e,t,i={}){let c=p8(e);for(;null!==c;){const e=yield c.config.generateRouteFromName(t,i);if(null!==e)return e;c=c.parent}return null}),push:(e,t,...i)=>Ru(void 0,[e,t,...i],void 0,function*(e,t,i={},c=!0){const o=yield g8.name.generateRoute(e,t,i);null!==o&&g8.path.push(o,c)}),replace:(e,t,...i)=>Ru(void 0,[e,t,...i],void 0,function*(e,t,i={},c=!0){const o=yield g8.name.generateRoute(e,t,i);null!==o&&g8.path.replace(o,c)}),trigger:(e,t,...i)=>Ru(void 0,[e,t,...i],void 0,function*(e,t,i={}){const c=yield g8.name.generateRoute(e,t,i);null!==c&&g8.path.trigger(c)})})}),v8=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId;class b8 extends gy{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,c=t.basename;i&&(""!==c&&"/"!==c)&&(r8.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(c))return r8.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${c}${t}${e.path}`;return r8.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}Ou([b],b8.prototype,"definitions",void 0);class y8 extends By{constructor(){super(),this.logger=r8,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new b8(this),this.basename=_f,this.routes=new b8(this)}getNavItems(e=v8){return function(e,t=v8,i=10){const c=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,o)=>{e.navItems.filter(t).map((t,c)=>{var s,a,n,r;const l=null!==(s=t.placementIndex)&&void 0!==s?s:o*i+c;return Object.assign(Object.assign({},t),{navId:null!==(a=t.navId)&&void 0!==a?a:"header",placementIndex:l,routePath:null!==(n=t.routePath)&&void 0!==n?n:e.path,routeName:null!==(r=t.routeName)&&void 0!==r?r:e.name})}).forEach(e=>c.push(e))}),c.sort((e,t)=>e.placementIndex-t.placementIndex)}(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>Ru(this,void 0,void 0,function*(){this.analytics.trackEvent(lf.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>Ru(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,c;if(this.user.isAuthenticated){const o=null!==(c=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==c?c:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${o}.`),g8.name.replace(e.router,o)}else this.user.trackPath(),g8.name.replace(e.router,this.loginPath)})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),g8.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return Ru(this,void 0,void 0,function*(){const c=yield i.generateRouteFromName.call(this,e,t);return c?this.generateNavigationPath(c):null})}navigateTo(e){return Ru(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield g8.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&g8.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),c=Qb.build(t);let o=i&&!e.startsWith(i)?function(e,t="/",i=!1){const c=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&c.endsWith(t)?c.slice(0,-1):c}([i,e]):e;return o=c?`${o}?${c}`:o,o}getNavigationPathBasename(){var e,t;const i=this.parent,c=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return c?c.replace(`/*${uy}`,""):this.basename?this.basename:""}construct(e){return this.container.get(e)}}Ou([gt],y8.prototype,"container",void 0),Ou([hf],y8.prototype,"analytics",void 0),Ou([tb],y8.prototype,"user",void 0),Ou([xb],y8.prototype,"_session",void 0);const z8="navigate-to",C8="generate-navigation-path";let L8=class extends(d8.from(ze)){constructor(){super(...arguments),this.logger=r8,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:c}=e.detail;if(!c)return;c(this.config.generateNavigationPath(t,i))}}get router(){return this[l8]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),p.queueUpdate(()=>Ru(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(z8,this.onNavigateTo),this.addEventListener(C8,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(z8,this.onNavigateTo),this.removeEventListener(C8,this.onGenerateNavigationPath)}};L8=Ou([Ce({name:"foundation-router"})],L8);const x8=e=>K`<${e}-card class=${e=>ti("stepper-tab",["stepper-tab-hidden",e.hideTabs])}part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab"><div class=${e=>ti("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])}part="stepper-tab-menu"><slot name="tab" ${Qe("tabs")}></slot></div>${Ve(e=>e.orientation===pa,K`<div class="stepper-tab-progress" part="stepper-tab-progress"><${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring><label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label></div>`)}</${e}-card>${Ve(e=>!e.indicatorOnly,K`<${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel"><div class="stepper-panel-container" part="stepper-panel-container"><slot name="tab-panel" ${Qe("tabpanels")}></slot></div>${Ve(e=>!e.hideAllButtons,K`<div class="action-buttons-container" part="action-buttons-container"><slot name="action-buttons"><${e}-button @click=${e=>e.previousStep()}?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>${Ve(e=>e.isLastStep&&!e.hideSubmitButton,K`<${e}-button @click=${e=>e._submit()}?disabled=${e=>e.islastStepValid}data-test-id="submit-button">
|
|
108
|
-
Submit </${e}-button>`)} ${Ve(e=>!e.isLastStep,K`<${e}-button @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,M8=K` ${e=>x8(kC(e))} `,w8=Me` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;class S8 extends Wt{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=pa,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,c=t+1===this.tabIds.length,o=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(c)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=o)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],c=this.tabpanelIds[t];e.setAttribute("id",c),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return xC.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(xC.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${Si()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${Si()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}Ou([de({attribute:"hide-submit-button",mode:"boolean"})],S8.prototype,"hideSubmitButton",void 0),Ou([de({attribute:"hide-step-number",mode:"boolean"})],S8.prototype,"hideStepNumber",void 0),Ou([de({attribute:"allow-backward-jumps",mode:"boolean"})],S8.prototype,"allowBackwardJumps",void 0),Ou([de({attribute:"allow-forward-jumps",mode:"boolean"})],S8.prototype,"allowForwardJumps",void 0),Ou([de({attribute:"hide-all-buttons",mode:"boolean"})],S8.prototype,"hideAllButtons",void 0),Ou([de({attribute:"hide-tabs",mode:"boolean"})],S8.prototype,"hideTabs",void 0),Ou([de({attribute:"indicator-only",mode:"boolean"})],S8.prototype,"indicatorOnly",void 0),Ou([de],S8.prototype,"orientation",void 0),Ou([de],S8.prototype,"activeid",void 0),Ou([b],S8.prototype,"tabs",void 0),Ou([b],S8.prototype,"tabpanels",void 0),Ou([b],S8.prototype,"validation",void 0),Ou([b],S8.prototype,"progressValue",void 0),Ou([b],S8.prototype,"activeTabIndex",void 0),Ou([y],S8.prototype,"disabledPreviousStep",null),Ou([y],S8.prototype,"isLastStep",null),Ou([y],S8.prototype,"islastStepValid",null);const k8=void 0,E8={};S8.compose(Object.assign({baseName:"stepper",template:M8,styles:w8,shadowOptions:k8},E8));(class extends Mu{}).compose(Object.assign({baseName:"accordion-item",template:(e,t)=>Lu(0,t),styles:(e,t)=>Me` ${xu()} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc(((var(--design-unit) * 4)) * 1px);width: calc(((var(--design-unit) * 4)) * 1px)}svg:not(:root){height: calc(((var(--design-unit) * 4)) * 1px);width: calc(((var(--design-unit) * 4)) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:wu},Su));(class extends yu{}).compose(Object.assign({baseName:"accordion",template:(e,t)=>en(),styles:(e,t)=>Me` ${bu()} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:zu},Cu));(class extends UC{}).compose({baseName:"actions-menu",styles:(e,t)=>Me` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${ku()} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}.actions-vertical .actions-menu{padding: 0}.actions-vertical .menu-item{margin: 0;padding: calc(var(--design-unit) * 4px);border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}.actions-vertical .menu-item:last-child{border-bottom: none}.actions-vertical .menu-item:focus{border: calc(var(--stroke-width) * 1px) solid var(--accent-foreground-focus)}`,template:BC});const $8=Me` ${ZC}`;(class extends DL{}).compose(Object.assign({baseName:"ai-criteria-search",template:(e,t)=>QC,styles:$8,shadowOptions:FL},HL));function N8(e,t){return new Za("appearance",e,t)}(class extends VL{}).compose({baseName:"ai-indicator",template:PL,styles:(e,t)=>Me` ${_L()} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});const A8=Me` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,O8=Me` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,T8=Me` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,R8=Me` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,I8=Me` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,D8=Me` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,F8=Me` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,H8=Me` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,_8=Me` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,P8=Me` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,V8=Me` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,B8=(e,t)=>Me` ${Lx()} ${Me` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`} `.withBehaviors(N8("primary",A8),N8("secondary",O8),N8("tertiary",F8),N8("neutral",T8),N8("danger",R8),N8("success",I8),N8("warning",D8),N8("primary-outline",H8),N8("secondary-outline",_8),N8("neutral-outline",P8),N8("link",V8));(class extends jL{}).compose(Object.assign({baseName:"anchor",template:(e,t)=>BL(0,t),styles:(e,t)=>Me` ${UL()} ${B8()} `.withBehaviors(...B8().behaviors),shadowOptions:qL},GL));(class extends KL{}).compose(Object.assign({baseName:"anchored-region",template:(e,t)=>WL(),styles:(e,t)=>Me` ${YL()}`,shadowOptions:ZL},QL));(class extends tx{}).compose(Object.assign({baseName:"avatar",template:(e,t)=>XL(0,t),styles:(e,t)=>Me` ${ex(e)}`,shadowOptions:ix},cx));(class extends ax{}).compose(Object.assign({baseName:"badge",template:(e,t)=>ox(),styles:(e,t)=>Me` ${sx()} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${fr} * 1px) calc(${fr} * 2px);border: none}`,shadowOptions:nx},rx));const U8=Me` ${lx} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,j8=hx;(class extends ux{}).compose({baseName:"banner",shadowOptions:j8,styles:U8,template:dx});(class extends bx{}).compose(Object.assign({baseName:"breadcrumb-item",template:(e,t)=>gx(0,t),styles:(e,t)=>Me` ${vx()} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:yx},zx));(class extends mx{}).compose(Object.assign({baseName:"breadcrumb",template:(e,t)=>fx(),styles:(e,t)=>Me` ${px()}`,shadowOptions:void 0},{}));(class extends xx{}).compose(Object.assign({baseName:"button",template:(e,t)=>Cx(0,t),styles:B8,shadowOptions:Mx},wx));(class extends Ex{}).compose(Object.assign({baseName:"calendar",template:(e,t)=>kx(e,t),styles:()=>Me` ${Sx()}`,shadowOptions:$x},Nx));(class extends Tx{}).compose(Object.assign({baseName:"card",template:(e,t)=>Ax(),styles:(e,t)=>Me` ${Ox()} :host{background: var(--neutral-layer-card-container);color: ${kd};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:Rx},Ix));const q8=Me` ${Zx} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,G8=K` ${Qx("rapid")} `;const W8=eM,Y8=Jx;(class extends tM{}).compose(Object.assign({baseName:"categorized-multiselect",template:G8,styles:q8,shadowOptions:Y8},W8));(class extends oM{}).compose(Object.assign({baseName:"checkbox",template:(e,t)=>iM(0,t),styles:(e,t)=>Me` ${cM()} :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:sM},aM));(class extends hM{}).compose(Object.assign({baseName:"combobox",template:(e,t)=>rM(0,t),styles:(e,t)=>Me` ${nM(e)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:uM},fM));(class extends gM{}).compose({baseName:"connection-indicator",template:mM,styles:(e,t)=>Me` ${pM()} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`});const K8=K` ${yM("rapid")} `;var Z8;(class extends ZM{}).compose(Object.assign({baseName:"date-picker",template:K8,styles:()=>Me` ${vM} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,shadowOptions:void 0},{})),function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.tertiary="#7B2FBE",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376",e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(Z8||(Z8={}));const{create:Q8}=yo,X8=_n(Z8.error),J8=Un.create(X8.r,X8.g,X8.b),e5=Q8("error-color").withDefault(J8),t5=_n(Z8.success),i5=Un.create(t5.r,t5.g,t5.b),c5=Q8("success-color").withDefault(i5),o5=_n(Z8.warning),s5=Un.create(o5.r,o5.g,o5.b),a5=Q8("warning-color").withDefault(s5),n5=_n(Z8.buy),r5=Un.create(n5.r,n5.g,n5.b),l5=Q8("buy-color").withDefault(r5),d5=_n(Z8.sell),h5=Un.create(d5.r,d5.g,d5.b),u5=Q8("sell-color").withDefault(h5),f5=_n(Z8.info),p5=Un.create(f5.r,f5.g,f5.b),m5=Q8("info-color").withDefault(p5),g5=_n(Z8.error),v5=Un.create(g5.r,g5.g,g5.b),b5=Q8("serious-notify-color").withDefault(v5),{create:y5}=yo,z5=e=>yo.create({name:e,cssCustomPropertyName:null}),C5=Un.create(1,1,1),L5=Un.create(0,0,0);function x5(e,t){const i=e,c=z5(`${i}-palette`).withDefault(e=>Kn.from(t.getValueFor(e))),o=z5(`${i}-fill-rest-delta`).withDefault(0),s=z5(`${i}-fill-hover-delta`).withDefault(4),a=z5(`${i}-fill-active-delta`).withDefault(-5),n=z5(`${i}-fill-focus-delta`).withDefault(0),r=z5(`${i}-foreground-rest-delta`).withDefault(0),l=z5(`${i}-foreground-hover-delta`).withDefault(6),d=z5(`${i}-foreground-active-delta`).withDefault(-4),h=z5(`${i}-foreground-focus-delta`).withDefault(0),u=z5(`${i}-fill-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,c,o,s,a,n,r){const l=e.source,d=t.closestIndexOf(i)>=Math.max(a,n,r)?-1:1,h=e.closestIndexOf(l),u=h+-1*d*c,f=u+d*o,p=u+d*s;return{rest:e.get(u),hover:e.get(h),active:e.get(f),focus:e.get(p)}}(c.getValueFor(e),fl.getValueFor(e),null!=t?t:El.getValueFor(e),s.getValueFor(e),a.getValueFor(e),n.getValueFor(e),jr.getValueFor(e),qr.getValueFor(e),Gr.getValueFor(e))}),f=y5(`${i}-fill-rest`).withDefault(e=>u.getValueFor(e).evaluate(e).rest),p=y5(`${i}-fill-hover`).withDefault(e=>u.getValueFor(e).evaluate(e).hover),m=y5(`${i}-fill-active`).withDefault(e=>u.getValueFor(e).evaluate(e).active),g=y5(`${i}-fill-focus`).withDefault(e=>u.getValueFor(e).evaluate(e).focus),v=e=>(t,i)=>function(e,t){return e.contrast(C5)>=t?C5:L5}(null!=i?i:f.getValueFor(t),e),b=z5(`foreground-on-${i}-recipe`).withDefault({evaluate:(e,t)=>v(4.5)(e,t)}),y=y5(`foreground-on-${i}-rest`).withDefault(e=>b.getValueFor(e).evaluate(e,f.getValueFor(e))),z=y5(`foreground-on-${i}-hover`).withDefault(e=>b.getValueFor(e).evaluate(e,p.getValueFor(e))),C=y5(`foreground-on-${i}-active`).withDefault(e=>b.getValueFor(e).evaluate(e,m.getValueFor(e))),L=y5(`foreground-on-${i}-focus`).withDefault(e=>b.getValueFor(e).evaluate(e,g.getValueFor(e))),x=z5(`foreground-on-${i}-large-recipe`).withDefault({evaluate:(e,t)=>v(7)(e,t)}),M=y5(`foreground-on-${i}-rest-large`).withDefault(e=>x.getValueFor(e).evaluate(e,f.getValueFor(e))),w=y5(`foreground-on-${i}-hover-large`).withDefault(e=>x.getValueFor(e).evaluate(e,p.getValueFor(e))),S=y5(`foreground-on-${i}-active-large`).withDefault(e=>x.getValueFor(e).evaluate(e,m.getValueFor(e))),k=y5(`foreground-on-${i}-focus-large`).withDefault(e=>x.getValueFor(e).evaluate(e,g.getValueFor(e))),E=z5(`${i}-foreground-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,c,o,s,a){const n=e.source,r=e.closestIndexOf(n),l=Wn(t)?-1:1,d=r+(1===l?Math.min(c,o):Math.max(l*c,l*o)),h=e.colorContrast(t,i,d,l),u=e.closestIndexOf(h),f=u+l*Math.abs(c-o),p=1===l?c<o:l*c>l*o,m=p?u:f,g=p?f:u;return{rest:e.get(m),hover:e.get(g),active:e.get(m+l*s),focus:e.get(m+l*a)}}(c.getValueFor(e),null!=t?t:El.getValueFor(e),4.5,r.getValueFor(e),l.getValueFor(e),d.getValueFor(e),h.getValueFor(e))}),$=y5(`${i}-foreground-rest`).withDefault(e=>E.getValueFor(e).evaluate(e).rest),N=y5(`${i}-foreground-hover`).withDefault(e=>E.getValueFor(e).evaluate(e).hover),A=y5(`${i}-foreground-active`).withDefault(e=>E.getValueFor(e).evaluate(e).active),O=y5(`${i}-foreground-focus`).withDefault(e=>E.getValueFor(e).evaluate(e).focus);return{palette:c,fillRestDelta:o,fillHoverDelta:s,fillActiveDelta:a,fillFocusDelta:n,foregroundRestDelta:r,foregroundHoverDelta:l,foregroundActiveDelta:d,foregroundFocusDelta:h,fillRecipe:u,fillRest:f,fillHover:p,fillActive:m,fillFocus:g,foregroundOnRecipe:b,foregroundOnRest:y,foregroundOnHover:z,foregroundOnActive:C,foregroundOnFocus:L,foregroundOnLargeRecipe:x,foregroundOnRestLarge:M,foregroundOnHoverLarge:w,foregroundOnActiveLarge:S,foregroundOnFocusLarge:k,foregroundRecipe:E,foregroundRest:$,foregroundHover:N,foregroundActive:A,foregroundFocus:O}}const M5=_n(Z8.green),w5=Un.create(M5.r,M5.g,M5.b),S5=yo.create("secondary-color").withDefault(w5),{palette:k5,fillRestDelta:E5,fillHoverDelta:$5,fillActiveDelta:N5,fillFocusDelta:A5,foregroundRestDelta:O5,foregroundHoverDelta:T5,foregroundActiveDelta:R5,foregroundFocusDelta:I5,fillRecipe:D5,fillRest:F5,fillHover:H5,fillActive:_5,fillFocus:P5,foregroundOnRecipe:V5,foregroundOnRest:B5,foregroundOnHover:U5,foregroundOnActive:j5,foregroundOnFocus:q5,foregroundOnLargeRecipe:G5,foregroundOnRestLarge:W5,foregroundOnHoverLarge:Y5,foregroundOnActiveLarge:K5,foregroundOnFocusLarge:Z5,foregroundRecipe:Q5,foregroundRest:X5,foregroundHover:J5,foregroundActive:e7,foregroundFocus:t7}=x5("secondary",S5),i7=_n(Z8.tertiary),c7=Un.create(i7.r,i7.g,i7.b),o7=yo.create("tertiary-color").withDefault(c7),{palette:s7,fillRestDelta:a7,fillHoverDelta:n7,fillActiveDelta:r7,fillFocusDelta:l7,foregroundRestDelta:d7,foregroundHoverDelta:h7,foregroundActiveDelta:u7,foregroundFocusDelta:f7,fillRecipe:p7,fillRest:m7,fillHover:g7,fillActive:v7,fillFocus:b7,foregroundOnRecipe:y7,foregroundOnRest:z7,foregroundOnHover:C7,foregroundOnActive:L7,foregroundOnFocus:x7,foregroundOnLargeRecipe:M7,foregroundOnRestLarge:w7,foregroundOnHoverLarge:S7,foregroundOnActiveLarge:k7,foregroundOnFocusLarge:E7,foregroundRecipe:$7,foregroundRest:N7,foregroundHover:A7,foregroundActive:O7,foregroundFocus:T7}=x5("tertiary",o7),{palette:R7,fillRestDelta:I7,fillHoverDelta:D7,fillActiveDelta:F7,fillFocusDelta:H7,foregroundRestDelta:_7,foregroundHoverDelta:P7,foregroundActiveDelta:V7,foregroundFocusDelta:B7,fillRecipe:U7,fillRest:j7,fillHover:q7,fillActive:G7,fillFocus:W7,foregroundOnRecipe:Y7,foregroundOnRest:K7,foregroundOnHover:Z7,foregroundOnActive:Q7,foregroundOnFocus:X7,foregroundOnLargeRecipe:J7,foregroundOnRestLarge:e9,foregroundOnHoverLarge:t9,foregroundOnActiveLarge:i9,foregroundOnFocusLarge:c9,foregroundRecipe:o9,foregroundRest:s9,foregroundHover:a9,foregroundActive:n9,foregroundFocus:r9}=x5("error",e5),{palette:l9,fillRestDelta:d9,fillHoverDelta:h9,fillActiveDelta:u9,fillFocusDelta:f9,foregroundRestDelta:p9,foregroundHoverDelta:m9,foregroundActiveDelta:g9,foregroundFocusDelta:v9,fillRecipe:b9,fillRest:y9,fillHover:z9,fillActive:C9,fillFocus:L9,foregroundOnRecipe:x9,foregroundOnRest:M9,foregroundOnHover:w9,foregroundOnActive:S9,foregroundOnFocus:k9,foregroundOnLargeRecipe:E9,foregroundOnRestLarge:$9,foregroundOnHoverLarge:N9,foregroundOnActiveLarge:A9,foregroundOnFocusLarge:O9,foregroundRecipe:T9,foregroundRest:R9,foregroundHover:I9,foregroundActive:D9,foregroundFocus:F9}=x5("success",c5),{palette:H9,fillRestDelta:_9,fillHoverDelta:P9,fillActiveDelta:V9,fillFocusDelta:B9,foregroundRestDelta:U9,foregroundHoverDelta:j9,foregroundActiveDelta:q9,foregroundFocusDelta:G9,fillRecipe:W9,fillRest:Y9,fillHover:K9,fillActive:Z9,fillFocus:Q9,foregroundOnRecipe:X9,foregroundOnRest:J9,foregroundOnHover:eee,foregroundOnActive:tee,foregroundOnFocus:iee,foregroundOnLargeRecipe:cee,foregroundOnRestLarge:oee,foregroundOnHoverLarge:see,foregroundOnActiveLarge:aee,foregroundOnFocusLarge:nee,foregroundRecipe:ree,foregroundRest:lee,foregroundHover:dee,foregroundActive:hee,foregroundFocus:uee}=x5("warning",a5);var fee=Object.freeze({__proto__:null,accentFillActive:Tl,accentFillActiveDelta:Hr,accentFillFocus:Rl,accentFillFocusDelta:_r,accentFillHover:Ol,accentFillHoverDelta:Fr,accentFillRest:Al,accentFillRestDelta:Dr,accentForegroundActive:Zl,accentForegroundActiveDelta:Br,accentForegroundFocus:Ql,accentForegroundFocusDelta:Ur,accentForegroundHover:Kl,accentForegroundHoverDelta:Vr,accentForegroundRest:Yl,accentForegroundRestDelta:Pr,accentPalette:ml,baseHeightMultiplier:rr,baseLayerLuminance:dr,bodyFont:nr,controlCornerRadius:hr,density:ur,designUnit:fr,direction:pr,disabledOpacity:mr,fillColor:El,focusStrokeInner:xd,focusStrokeOuter:Cd,focusStrokeWidth:vr,foregroundOnAccentActive:_l,foregroundOnAccentActiveLarge:jl,foregroundOnAccentFocus:Pl,foregroundOnAccentFocusLarge:ql,foregroundOnAccentHover:Hl,foregroundOnAccentHoverLarge:Ul,foregroundOnAccentRest:Fl,foregroundOnAccentRestLarge:Bl,neutralFillActive:td,neutralFillActiveDelta:Gr,neutralFillFocus:id,neutralFillFocusDelta:Wr,neutralFillHover:ed,neutralFillHoverDelta:qr,neutralFillInputActive:ad,neutralFillInputActiveDelta:Zr,neutralFillInputFocus:nd,neutralFillInputFocusDelta:Qr,neutralFillInputHover:sd,neutralFillInputHoverDelta:Kr,neutralFillInputRest:od,neutralFillInputRestDelta:Yr,neutralFillLayerRest:yd,neutralFillLayerRestDelta:al,neutralFillRest:Jl,neutralFillRestDelta:jr,neutralFillStealthActive:hd,neutralFillStealthActiveDelta:el,neutralFillStealthFocus:ud,neutralFillStealthFocusDelta:tl,neutralFillStealthHover:dd,neutralFillStealthHoverDelta:Jr,neutralFillStealthRest:ld,neutralFillStealthRestDelta:Xr,neutralFillStrongActive:gd,neutralFillStrongActiveDelta:ol,neutralFillStrongFocus:vd,neutralFillStrongFocusDelta:sl,neutralFillStrongHover:md,neutralFillStrongHoverDelta:cl,neutralFillStrongRest:pd,neutralFillStrongRestDelta:il,neutralForegroundHint:wd,neutralForegroundRest:kd,neutralLayer1:Cl,neutralLayer2:xl,neutralLayer3:wl,neutralLayer4:kl,neutralLayerCardContainer:vl,neutralLayerFloating:yl,neutralPalette:fl,neutralStrokeActive:Ad,neutralStrokeActiveDelta:ll,neutralStrokeDividerRest:Rd,neutralStrokeDividerRestDelta:hl,neutralStrokeFocus:Od,neutralStrokeFocusDelta:dl,neutralStrokeHover:Nd,neutralStrokeHoverDelta:rl,neutralStrokeRest:$d,neutralStrokeRestDelta:nl,strokeWidth:gr,typeRampBaseFontSize:br,typeRampBaseLineHeight:yr,typeRampMinus1FontSize:zr,typeRampMinus1LineHeight:Cr,typeRampMinus2FontSize:Lr,typeRampMinus2LineHeight:xr,typeRampPlus1FontSize:Mr,typeRampPlus1LineHeight:wr,typeRampPlus2FontSize:Sr,typeRampPlus2LineHeight:kr,typeRampPlus3FontSize:Er,typeRampPlus3LineHeight:$r,typeRampPlus4FontSize:Nr,typeRampPlus4LineHeight:Ar,typeRampPlus5FontSize:Or,typeRampPlus5LineHeight:Tr,typeRampPlus6FontSize:Rr,typeRampPlus6LineHeight:Ir,defaultErrorColor:J8,errorColor:e5,defaultSuccessColor:i5,successColor:c5,defaultWarningColor:s5,warningColor:a5,defaultBuyColor:r5,buyColor:l5,defaultSellColor:h5,sellColor:u5,defaultInfoColor:p5,infoColor:m5,defaultSeriousNotifyColor:v5,seriousNotifyColor:b5,defaultSecondaryColor:w5,secondaryColor:S5,secondaryPalette:k5,secondaryFillRestDelta:E5,secondaryFillHoverDelta:$5,secondaryFillActiveDelta:N5,secondaryFillFocusDelta:A5,secondaryForegroundRestDelta:O5,secondaryForegroundHoverDelta:T5,secondaryForegroundActiveDelta:R5,secondaryForegroundFocusDelta:I5,secondaryFillRecipe:D5,secondaryFillRest:F5,secondaryFillHover:H5,secondaryFillActive:_5,secondaryFillFocus:P5,foregroundOnSecondaryRecipe:V5,foregroundOnSecondaryRest:B5,foregroundOnSecondaryHover:U5,foregroundOnSecondaryActive:j5,foregroundOnSecondaryFocus:q5,foregroundOnSecondaryLargeRecipe:G5,foregroundOnSecondaryRestLarge:W5,foregroundOnSecondaryHoverLarge:Y5,foregroundOnSecondaryActiveLarge:K5,foregroundOnSecondaryFocusLarge:Z5,secondaryForegroundRecipe:Q5,secondaryForegroundRest:X5,secondaryForegroundHover:J5,secondaryForegroundActive:e7,secondaryForegroundFocus:t7,defaultTertiaryColor:c7,tertiaryColor:o7,tertiaryPalette:s7,tertiaryFillRestDelta:a7,tertiaryFillHoverDelta:n7,tertiaryFillActiveDelta:r7,tertiaryFillFocusDelta:l7,tertiaryForegroundRestDelta:d7,tertiaryForegroundHoverDelta:h7,tertiaryForegroundActiveDelta:u7,tertiaryForegroundFocusDelta:f7,tertiaryFillRecipe:p7,tertiaryFillRest:m7,tertiaryFillHover:g7,tertiaryFillActive:v7,tertiaryFillFocus:b7,foregroundOnTertiaryRecipe:y7,foregroundOnTertiaryRest:z7,foregroundOnTertiaryHover:C7,foregroundOnTertiaryActive:L7,foregroundOnTertiaryFocus:x7,foregroundOnTertiaryLargeRecipe:M7,foregroundOnTertiaryRestLarge:w7,foregroundOnTertiaryHoverLarge:S7,foregroundOnTertiaryActiveLarge:k7,foregroundOnTertiaryFocusLarge:E7,tertiaryForegroundRecipe:$7,tertiaryForegroundRest:N7,tertiaryForegroundHover:A7,tertiaryForegroundActive:O7,tertiaryForegroundFocus:T7,errorPalette:R7,errorFillRestDelta:I7,errorFillHoverDelta:D7,errorFillActiveDelta:F7,errorFillFocusDelta:H7,errorForegroundRestDelta:_7,errorForegroundHoverDelta:P7,errorForegroundActiveDelta:V7,errorForegroundFocusDelta:B7,errorFillRecipe:U7,errorFillRest:j7,errorFillHover:q7,errorFillActive:G7,errorFillFocus:W7,foregroundOnErrorRecipe:Y7,foregroundOnErrorRest:K7,foregroundOnErrorHover:Z7,foregroundOnErrorActive:Q7,foregroundOnErrorFocus:X7,foregroundOnErrorLargeRecipe:J7,foregroundOnErrorRestLarge:e9,foregroundOnErrorHoverLarge:t9,foregroundOnErrorActiveLarge:i9,foregroundOnErrorFocusLarge:c9,errorForegroundRecipe:o9,errorForegroundRest:s9,errorForegroundHover:a9,errorForegroundActive:n9,errorForegroundFocus:r9,successPalette:l9,successFillRestDelta:d9,successFillHoverDelta:h9,successFillActiveDelta:u9,successFillFocusDelta:f9,successForegroundRestDelta:p9,successForegroundHoverDelta:m9,successForegroundActiveDelta:g9,successForegroundFocusDelta:v9,successFillRecipe:b9,successFillRest:y9,successFillHover:z9,successFillActive:C9,successFillFocus:L9,foregroundOnSuccessRecipe:x9,foregroundOnSuccessRest:M9,foregroundOnSuccessHover:w9,foregroundOnSuccessActive:S9,foregroundOnSuccessFocus:k9,foregroundOnSuccessLargeRecipe:E9,foregroundOnSuccessRestLarge:$9,foregroundOnSuccessHoverLarge:N9,foregroundOnSuccessActiveLarge:A9,foregroundOnSuccessFocusLarge:O9,successForegroundRecipe:T9,successForegroundRest:R9,successForegroundHover:I9,successForegroundActive:D9,successForegroundFocus:F9,warningPalette:H9,warningFillRestDelta:_9,warningFillHoverDelta:P9,warningFillActiveDelta:V9,warningFillFocusDelta:B9,warningForegroundRestDelta:U9,warningForegroundHoverDelta:j9,warningForegroundActiveDelta:q9,warningForegroundFocusDelta:G9,warningFillRecipe:W9,warningFillRest:Y9,warningFillHover:K9,warningFillActive:Z9,warningFillFocus:Q9,foregroundOnWarningRecipe:X9,foregroundOnWarningRest:J9,foregroundOnWarningHover:eee,foregroundOnWarningActive:tee,foregroundOnWarningFocus:iee,foregroundOnWarningLargeRecipe:cee,foregroundOnWarningRestLarge:oee,foregroundOnWarningHoverLarge:see,foregroundOnWarningActiveLarge:aee,foregroundOnWarningFocusLarge:nee,warningForegroundRecipe:ree,warningForegroundRest:lee,warningForegroundHover:dee,warningForegroundActive:hee,warningForegroundFocus:uee});const pee=tw(Z8.primary),mee=tw(Z8.neutral),gee=tw(Z8.green),vee=tw(Z8.tertiary),bee=tw(Z8.error),yee=tw(Z8.success),zee=tw(Z8.warning),Cee=cr,Lee=Li.ltr,xee='"Segoe UI", Arial, Helvetica, sans-serif',Mee="14px",wee="20px",See={design_tokens:{color:{accent:{$value:pee.source.toColorString(),$type:"color"},neutral:{$value:mee.source.toColorString(),$type:"color"},secondary:{$value:gee.source.toColorString(),$type:"color"},tertiary:{$value:vee.source.toColorString(),$type:"color"},error:{$value:bee.source.toColorString(),$type:"color"},success:{$value:yee.source.toColorString(),$type:"color"},warning:{$value:zee.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:xee,$type:"fontFamily"}},typography:{baseFontSize:{$value:Mee,$type:"dimension"},baseLineHeight:{$value:wee,$type:"dimension"}},mode:{luminance:{$value:Cee,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};var kee=Object.freeze({__proto__:null,accentPaletteValue:pee,neutralPaletteValue:mee,secondaryPaletteValue:gee,tertiaryPaletteValue:vee,errorPaletteValue:bee,successPaletteValue:yee,warningPaletteValue:zee,baseLayerLuminanceValue:Cee,accentFillRestDeltaValue:0,accentFillHoverDeltaValue:4,accentFillActiveDeltaValue:-5,accentFillFocusDeltaValue:0,accentForegroundRestDeltaValue:0,accentForegroundHoverDeltaValue:6,accentForegroundActiveDeltaValue:-4,accentForegroundFocusDeltaValue:0,neutralFillRestDeltaValue:7,neutralFillHoverDeltaValue:10,neutralFillActiveDeltaValue:5,neutralFillFocusDeltaValue:0,neutralFillInputRestDeltaValue:0,neutralFillInputHoverDeltaValue:5,neutralFillInputActiveDeltaValue:0,neutralFillInputFocusDeltaValue:10,neutralFillStealthRestDeltaValue:0,neutralFillStealthHoverDeltaValue:5,neutralFillStealthActiveDeltaValue:3,neutralFillStealthFocusDeltaValue:0,neutralFillStrongRestDeltaValue:0,neutralFillStrongHoverDeltaValue:8,neutralFillStrongActiveDeltaValue:-5,neutralFillStrongFocusDeltaValue:0,neutralFillLayerRestDeltaValue:3,neutralStrokeRestDeltaValue:25,neutralStrokeHoverDeltaValue:40,neutralStrokeActiveDeltaValue:16,neutralStrokeFocusDeltaValue:25,neutralStrokeDividerRestDeltaValue:8,designTokens:See,prefix:"rapid",directionValue:Lee,disabledOpacityValue:.3,strokeWidthValue:1,focusStrokeWidthValue:2,baseHeightMultiplierValue:10,controlCornerRadiusValue:4,densityValue:0,designUnitValue:4,bodyFontValue:xee,typeRampBaseFontSizeValue:Mee,typeRampBaseLineHeightValue:wee,typeRampMinus1FontSizeValue:"13px",typeRampMinus1LineHeightValue:"19px",typeRampMinus2FontSizeValue:"12px",typeRampMinus2LineHeightValue:"18px",typeRampPlus1FontSizeValue:"15px",typeRampPlus1LineHeightValue:"21px",typeRampPlus2FontSizeValue:"16px",typeRampPlus2LineHeightValue:"22px",typeRampPlus3FontSizeValue:"17px",typeRampPlus3LineHeightValue:"23px",typeRampPlus4FontSizeValue:"18px",typeRampPlus4LineHeightValue:"24px",typeRampPlus5FontSizeValue:"19px",typeRampPlus5LineHeightValue:"25px",typeRampPlus6FontSizeValue:"20px",typeRampPlus6LineHeightValue:"26px"});(class extends Ch{constructor(){super(),XM(fee,kee,this)}}).compose({baseName:"design-system-provider",template:K`<slot></slot>`});const Eee=Me` ${QK} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${kd}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,$ee=bZ,Nee=JK,Aee=vZ;(class extends zZ{}).compose(Object.assign({baseName:"dialog",shadowOptions:Aee,styles:Eee,template:Nee},$ee));(class extends xZ{}).compose(Object.assign({baseName:"disclosure",template:(e,t)=>CZ(),styles:(e,t)=>Me` ${LZ()} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:vZ},MZ));(class extends kZ{}).compose(Object.assign({baseName:"divider",template:(e,t)=>wZ(),styles:(e,t)=>Me` ${SZ()}`,shadowOptions:EZ},$Z));(class extends TZ{}).compose({baseName:"dropdown-menu",styles:(e,t)=>Me` ${NZ("rapid")} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:OZ});const Oee=Me` ${RZ}`;function Tee(e,...t){let i="";return e.forEach((e,c)=>{i+=e,c<t.length&&(i+=t[c])}),i}(class extends UZ{}).compose({baseName:"environment-indicator",styles:Oee,template:IZ});const Ree={number:"rapid-number-field",text:"rapid-text-field",date:"rapid-text-field",datetimeLocal:"rapid-text-field",checkbox:"rapid-checkbox",button:"rapid-button",select:"rapid-select",option:"rapid-option",optgroup:"rapid-optgroup",radio:{input:"rapid-radio",group:"rapid-radio-group"}},Iee=Tee` rapid-select, rapid-text-field, rapid-number-field{min-width: 180px}rapid-button.btn{padding: 0}rapid-button.btn-success{background-color: var(--accent-fill-active);border-color: var(--accent-fill-active)}rapid-button.btn-danger{background-color: var(--error-color);border-color: var(--error-border-color)}rapid-select::part(listbox){max-height: 15vh}`,Dee=Tee` border: unset;border: 1px solid var(--focus-stroke-outer);padding: calc(var(--design-unit) * 2.5px);border-radius: 10px;margin: calc(var(--design-unit) * 1px);`,Fee={value:Tee` ${Iee} rapid-number-field, rapid-text-field{margin-bottom: 0}rapid-number-field::part(label){display: none}p.validation-msg{color: var(--neutral-foreground-rest)}`,rule:Tee` ${Iee} div.rule-container{${Dee}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:Tee` ${Iee} rapid-select{min-width: 350px}`,field:Tee` ${Iee} rapid-select{min-width: 350px}`,group:Tee` ${Iee} div.rules-group-container{${Dee}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`};let Hee=class extends k6{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],Hee.prototype,"styles",void 0),Hee=Ou([Ce({name:"rapid-expression-builder",styles:B6.styles,template:B6.template})],Hee);let _ee=class extends J6{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],_ee.prototype,"styles",void 0),_ee=Ou([Ce({name:"rapid-rule-expression-builder",styles:B6.styles,template:B6.template})],_ee);let Pee=class extends s8{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],Pee.prototype,"styles",void 0),Pee=Ou([Ce({name:"rapid-value-expression-builder",styles:B6.styles,template:B6.template})],Pee);const Vee=Me` ${uQ} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,Bee=K` ${fQ("rapid")} `,Uee=CQ,jee=zQ;(class extends yQ{}).compose(Object.assign({baseName:"file-upload",shadowOptions:jee,styles:Vee,template:Bee},Uee));const qee=K` ${TQ("rapid")} `;(class extends IQ{}).compose({baseName:"filter-bar",template:qee,styles:(e,t)=>Me` ${AQ()} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`});const Gee=K` ${kQ("rapid")} `;(class extends NQ{}).compose({baseName:"filter",template:Gee,styles:(e,t)=>Me` ${LQ} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`});(class extends BQ{}).compose(Object.assign({baseName:"flipper",template:(e,t)=>PQ(0,t),styles:(e,t)=>Me` ${VQ()} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:UQ},jQ));const Wee=Me` ${qQ} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,Yee=K` ${GQ("rapid")} `,Kee=ZQ,Zee=KQ;(class extends YQ{}).compose(Object.assign({baseName:"flyout",shadowOptions:Zee,styles:Wee,template:Yee},Kee));const Qee={nextFlipper:K`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:K`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`};(class extends nX{}).compose(Object.assign({baseName:"horizontal-scroll",template:(e,t)=>sX(e,t),styles:(e,t)=>Me` ${aX()}`,shadowOptions:rX},Qee));const Xee=K` ${hX("rapid")} `;const Jee=pX,ete=fX;(class extends gX{}).compose(Object.assign({baseName:"icon",template:Xee,styles:(e,t)=>Me` ${dX()}`,shadowOptions:ete},Jee));(class extends MX{}).compose(Object.assign({baseName:"option",template:(e,t)=>LX(0,t),styles:(e,t)=>Me` ${xX()} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:wX},SX));(class extends yX{}).compose(Object.assign({baseName:"listbox",template:(e,t)=>vX(),styles:(e,t)=>Me` ${bX(e)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:zX},CX));const tte=IX;(class extends RX{}).compose(Object.assign({baseName:"menu-item",template:(e,t)=>OX(e,t),styles:(e,t)=>Me` ${TX()} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${dd}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${dd}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${dd} color: ${kd} */`,shadowOptions:tte},DX));(class extends $X{}).compose(Object.assign({baseName:"menu",template:(e,t)=>kX(),styles:(e,t)=>Me` ${EX()} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${dd}, transparent 15%);padding: 0}`,shadowOptions:NX},AX));const ite=Me` ${Eee}`,cte=PX,ote=HX,ste=_X;(class extends VX{}).compose(Object.assign({baseName:"modal",shadowOptions:ste,styles:ite,template:ote},cte));const ate=Me` ${Vx} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,nte=K` ${qx("rapid")} `;const rte=Yx,lte=Wx;(class extends Kx{}).compose(Object.assign({baseName:"multiselect",template:nte,styles:ate,shadowOptions:lte},rte));(class extends n8{}).compose({baseName:"notification-listener",template:a8,shadowOptions:{mode:"open",delegatesFocus:!0}});const dte=aJ,hte=BX,ute=sJ;(class extends oJ{}).compose(Object.assign({baseName:"number-field",template:hte,styles:(e,t)=>Me` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${lQ}`,shadowOptions:ute},dte));(class extends lJ{}).compose({baseName:"optgroup",template:(e,t)=>rJ(),styles:(e,t)=>Me` ${nJ()}`});(class extends bJ{}).compose(Object.assign({baseName:"system-health-overlay",template:yJ,styles:zJ,shadowOptions:CJ},LJ));(class extends j1{}).compose(Object.assign({baseName:"progress-ring",template:(e,t)=>B1(0,t),styles:(e,t)=>Me` ${U1()}`,shadowOptions:q1},G1));(class extends uJ{}).compose(Object.assign({baseName:"progress",template:(e,t)=>dJ(0,t),styles:(e,t)=>Me` ${hJ()}`,shadowOptions:fJ},pJ));(class extends e2{}).compose(Object.assign({baseName:"radio-group",template:(e,t)=>X1(),styles:(e,t)=>Me` ${J1()}`,shadowOptions:t2},i2));(class extends K1{}).compose(Object.assign({baseName:"radio",template:(e,t)=>W1(0,t),styles:(e,t)=>Me` ${Y1()} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:Z1},Q1));let fte=class extends(zy.from(ze)){connectedCallback(){super.connectedCallback(),p.queueUpdate(()=>Ru(this,void 0,void 0,function*(){this.$router.config=this.config}))}};fte=Ou([Ce({name:"rapid-router"})],fte);const pte=Me` ${k2} :host{font-family: var(--body-font)}`,mte=K` ${W2("rapid")} `;(class extends K2{}).compose(Object.assign({baseName:"scheduler-cron-builder",template:mte,styles:pte,shadowOptions:Z2},Q2));const gte=Me` ${X2} :host{font-family: var(--body-font)}`,vte=K` ${J2("rapid")} `;(class extends t3{}).compose(Object.assign({baseName:"scheduler-timezone",template:vte,styles:gte,shadowOptions:i3},c3));const bte=Me` ${c2} :host{font-family: var(--body-font)}`,yte=K` ${o2("rapid")} `;(class extends a2{}).compose(Object.assign({baseName:"scheduler",template:yte,styles:bte,shadowOptions:n2},r2));(class extends f3{}).compose(Object.assign({baseName:"search-bar-combobox",template:(e,t)=>h3(0,t),styles:(e,t)=>Me` ${d3(e)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:p3},m3));const zte=Me` ${o3}`,Cte=K` ${s3("rapid")} `;(class extends n3{}).compose(Object.assign({baseName:"search-bar",template:Cte,styles:zte,shadowOptions:r3},l3));(class extends x3{}).compose(Object.assign({baseName:"section-navigator",template:v3,styles:(e,t)=>g3,shadowOptions:M3},w3));(class extends E3{}).compose(Object.assign({baseName:"segmented-control",template:(e,t)=>S3(),styles:(e,t)=>Me` ${k3()} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{}));(class extends K1{}).compose(Object.assign({baseName:"segmented-item",template:(e,t)=>$3(),styles:(e,t)=>Me` ${N3()} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{}));(class extends T3{}).compose(Object.assign({baseName:"select",template:(e,t)=>A3(0,t),styles:(e,t)=>Me` ${O3(e)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:R3},I3));(class extends H3{}).compose(Object.assign({baseName:"skeleton",template:(e,t)=>D3(),styles:(e,t)=>Me` ${F3()} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:_3},P3));(class extends Y3{}).compose(Object.assign({baseName:"slider-label",template:(e,t)=>G3(),styles:(e,t)=>Me` ${W3()} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:K3},Z3));(class extends U3{}).compose(Object.assign({baseName:"slider",template:(e,t)=>V3(0,t),styles:(e,t)=>Me` ${B3()} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Al}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Al}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Al}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:j3},q3));const Lte=Me` ${e4} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,xte=K` ${t4("rapid")} `,Mte=c4;(class extends o4{}).compose({baseName:"snackbar",shadowOptions:Mte,styles:Lte,template:xte});(class extends n4{}).compose({baseName:"stacking-icons",template:a4,styles:(e,t)=>Me` ${s4()}`});(class extends d4{}).compose({baseName:"status-pill",template:l4,styles:r4});(class extends b4{}).compose(Object.assign({baseName:"stepper-tab-panel",template:(e,t)=>v4(),shadowOptions:y4},z4));const wte=K` ${h4("rapid")} `;(class extends p4{}).compose(Object.assign({baseName:"stepper-tab",template:wte,styles:(e,t)=>Me` ${f4()} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,shadowOptions:m4},g4));const Ste=Me` ${w8} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,kte=K` ${x8("rapid")} `;(class extends S8{}).compose(Object.assign({baseName:"stepper",template:kte,styles:Ste,shadowOptions:k8},E8));const Ete={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};(class extends x4{}).compose(Object.assign({baseName:"switch",template:(e,t)=>C4(0,t),styles:(e,t)=>Me` ${L4()} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:M4},Ete));(class extends T4{}).compose(Object.assign({baseName:"tab-panel",template:(e,t)=>A4(),styles:(e,t)=>Me` ${O4()} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:R4},I4));(class extends E4{}).compose(Object.assign({baseName:"tab",template:(e,t)=>S4(),styles:(e,t)=>Me` ${k4()} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}`,shadowOptions:$4},N4));(class extends H4{}).compose(Object.assign({baseName:"tabs",template:(e,t)=>D4(0,t),styles:(e,t)=>Me` ${F4()} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:_4},P4));(class extends U4{}).compose(Object.assign({baseName:"text-area",template:(e,t)=>V4(),styles:(e,t)=>Me` ${B4()} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:j4},q4));(class extends Y4{}).compose(Object.assign({baseName:"text-field",template:(e,t)=>G4(0,t),styles:(e,t)=>Me` ${W4()} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:K4},Z4));const $te=Me` ${Q4} .toast{background-color: ${Cl};border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,Nte=t0,Ate=e0;(class extends i0{}).compose(Object.assign({baseName:"toast",shadowOptions:Ate,styles:$te,template:J4},Nte));(class extends s0{}).compose(Object.assign({baseName:"toolbar",template:(e,t)=>c0(0,t),styles:(e,t)=>Me` ${o0()} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:a0},n0));(class extends d0{}).compose(Object.assign({baseName:"tooltip",template:(e,t)=>r0(e),styles:(e,t)=>Me` ${l0(e)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:h0},u0));const Ote={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>\n </svg>'};(class extends m0{}).compose(Object.assign({baseName:"tree-item",template:(e,t)=>f0(0,t),styles:(e,t)=>Me` ${p0(e)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:g0},Ote));(class extends z0{}).compose(Object.assign({baseName:"tree-view",template:(e,t)=>b0(),styles:(e,t)=>Me` ${y0()}`,shadowOptions:C0},L0));const Tte=K` ${M0("rapid")} `;function Rte(...e){return t=>{for(const i of e)"function"==typeof i?i(t):null!=i&&(i.current=t)}}(class extends E0{}).compose(Object.assign({baseName:"url-input",template:Tte,styles:(e,t)=>Me` ${x0()} a{color: var(--accent-fill-rest);opacity: 65%}a:hover{opacity: 100%}.url-input-link{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px)}`,shadowOptions:S0},k0));const Ite=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-accordion-item",{...o,ref:t},c)}),Dte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-accordion",{...o,ref:t},c)}),Fte=i.default.forwardRef(function(e,t){const{onCriteriaChanged:c,onValidationErrors:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("criteria-changed",t);const i=e=>l.current?.(e);return e.addEventListener("validation-errors",i),()=>{e.removeEventListener("criteria-changed",t),e.removeEventListener("validation-errors",i)}},[]),i.default.createElement("rapid-ai-criteria-search",{...a,ref:Rte(n,t)},s)}),Hte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-actions-menu",{...o,ref:t},c)}),_te=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-ai-indicator",{...o,ref:t},c)}),Pte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-anchor",{...o,ref:t},c)}),Vte=i.default.forwardRef(function(e,t){const{onLoaded:c,onPositionchange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("loaded",t);const i=e=>l.current?.(e);return e.addEventListener("positionchange",i),()=>{e.removeEventListener("loaded",t),e.removeEventListener("positionchange",i)}},[]),i.default.createElement("rapid-anchored-region",{...a,ref:Rte(n,t)},s)}),Bte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-avatar",{...o,ref:t},c)}),Ute=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-badge",{...o,ref:t},c)}),jte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-banner",{...o,ref:t},c)}),qte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-breadcrumb",{...o,ref:t},c)}),Gte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-breadcrumb-item",{...o,ref:t},c)}),Wte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-button",{...o,ref:t},c)}),Yte=i.default.forwardRef(function(e,t){const{onDateselected:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("dateselected",t),()=>{e.removeEventListener("dateselected",t)}},[]),i.default.createElement("rapid-calendar",{...s,ref:Rte(a,t)},o)}),Kte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-card",{...o,ref:t},c)}),Zte=i.default.forwardRef(function(e,t){const{onSelectionChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("selectionChange",t),()=>{e.removeEventListener("selectionChange",t)}},[]),i.default.createElement("rapid-categorized-multiselect",{...s,ref:Rte(a,t)},o)}),Qte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-checkbox",{...o,ref:t},c)}),Xte=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-combobox",{...s,ref:Rte(a,t)},o)}),Jte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-connection-indicator",{...o,ref:t},c)}),eie=i.default.forwardRef(function(e,t){const{onValueChanged:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("value-changed",t),()=>{e.removeEventListener("value-changed",t)}},[]),i.default.createElement("rapid-date-picker",{...s,ref:Rte(a,t)},o)}),tie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-design-system-provider",{...o,ref:t},c)}),iie=i.default.forwardRef(function(e,t){const{onClose:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("close",t),()=>{e.removeEventListener("close",t)}},[]),i.default.createElement("rapid-dialog",{...s,ref:Rte(a,t)},o)}),cie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-disclosure",{...o,ref:t},c)}),oie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-divider",{...o,ref:t},c)}),sie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-dropdown-menu",{...o,ref:t},c)}),aie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-environment-indicator",{...o,ref:t},c)}),nie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(Hee)??"rapid-expression-builder",{...d,ref:Rte(h,t)},l)}),rie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(_ee)??"rapid-rule-expression-builder",{...d,ref:Rte(h,t)},l)}),lie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(Pee)??"rapid-value-expression-builder",{...d,ref:Rte(h,t)},l)}),die=i.default.forwardRef(function(e,t){const{onFileSelected:c,onSuccess:o,onErrorOut:s,onClear:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("file-selected",t);const i=e=>h.current?.(e);e.addEventListener("success",i);const c=e=>u.current?.(e);e.addEventListener("errorOut",c);const o=e=>f.current?.(e);return e.addEventListener("clear",o),()=>{e.removeEventListener("file-selected",t),e.removeEventListener("success",i),e.removeEventListener("errorOut",c),e.removeEventListener("clear",o)}},[]),i.default.createElement("rapid-file-upload",{...r,ref:Rte(l,t)},n)}),hie=i.default.forwardRef(function(e,t){const{onFilterChanged:c,onFilterCleared:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("filter-changed",t);const i=e=>l.current?.(e);return e.addEventListener("filter-cleared",i),()=>{e.removeEventListener("filter-changed",t),e.removeEventListener("filter-cleared",i)}},[]),i.default.createElement("rapid-filter",{...a,ref:Rte(n,t)},s)}),uie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-filter-bar",{...o,ref:t},c)}),fie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-flipper",{...o,ref:t},c)}),pie=i.default.forwardRef(function(e,t){const{onClosed:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("closed",t),()=>{e.removeEventListener("closed",t)}},[]),i.default.createElement("rapid-flyout",{...s,ref:Rte(a,t)},o)}),mie=i.default.forwardRef(function(e,t){const{onScrollstart:c,onScrollend:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("scrollstart",t);const i=e=>l.current?.(e);return e.addEventListener("scrollend",i),()=>{e.removeEventListener("scrollstart",t),e.removeEventListener("scrollend",i)}},[]),i.default.createElement("rapid-horizontal-scroll",{...a,ref:Rte(n,t)},s)}),gie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-icon",{...o,ref:t},c)}),vie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-listbox",{...o,ref:t},c)}),bie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-option",{...o,ref:t},c)}),yie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-menu",{...o,ref:t},c)}),zie=i.default.forwardRef(function(e,t){const{onOnMenuClick:c,onExpandedChange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("onMenuClick",t);const i=e=>l.current?.(e);return e.addEventListener("expanded-change",i),()=>{e.removeEventListener("onMenuClick",t),e.removeEventListener("expanded-change",i)}},[]),i.default.createElement("rapid-menu-item",{...a,ref:Rte(n,t)},s)}),Cie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-modal",{...o,ref:t},c)}),Lie=i.default.forwardRef(function(e,t){const{onSelectionChange:c,onClear:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("selectionChange",t);const i=e=>l.current?.(e);return e.addEventListener("clear",i),()=>{e.removeEventListener("selectionChange",t),e.removeEventListener("clear",i)}},[]),i.default.createElement("rapid-multiselect",{...a,ref:Rte(n,t)},s)}),xie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-notification-listener",{...o,ref:t},c)}),Mie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-number-field",{...o,ref:t},c)}),wie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-optgroup",{...o,ref:t},c)}),Sie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-progress",{...o,ref:t},c)}),kie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-progress-ring",{...o,ref:t},c)}),Eie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-radio",{...o,ref:t},c)}),$ie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-radio-group",{...o,ref:t},c)}),Nie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement(customElements.getName(fte)??"rapid-router",{...o,ref:t},c)}),Aie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler",{...o,ref:t},c)}),Oie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler-cron-builder",{...o,ref:t},c)}),Tie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler-timezone",{...o,ref:t},c)}),Rie=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-search-bar-combobox",{...s,ref:Rte(a,t)},o)}),Iie=i.default.forwardRef(function(e,t){const{onSelectionChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("selectionChange",t),()=>{e.removeEventListener("selectionChange",t)}},[]),i.default.createElement("rapid-search-bar",{...s,ref:Rte(a,t)},o)}),Die=i.default.forwardRef(function(e,t){const{onSectionNavigatorSetState:c,onSectionNavigatorSetStates:o,onSectionNavigatorClearState:s,onSectionNavigatorClearAllStates:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("section-navigator-set-state",t);const i=e=>h.current?.(e);e.addEventListener("section-navigator-set-states",i);const c=e=>u.current?.(e);e.addEventListener("section-navigator-clear-state",c);const o=e=>f.current?.(e);return e.addEventListener("section-navigator-clear-all-states",o),()=>{e.removeEventListener("section-navigator-set-state",t),e.removeEventListener("section-navigator-set-states",i),e.removeEventListener("section-navigator-clear-state",c),e.removeEventListener("section-navigator-clear-all-states",o)}},[]),i.default.createElement("rapid-section-navigator",{...r,ref:Rte(l,t)},n)}),Fie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-segmented-control",{...o,ref:t},c)}),Hie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-segmented-item",{...o,ref:t},c)}),_ie=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-select",{...s,ref:Rte(a,t)},o)}),Pie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-skeleton",{...o,ref:t},c)}),Vie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-slider",{...o,ref:t},c)}),Bie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-slider-label",{...o,ref:t},c)}),Uie=i.default.forwardRef(function(e,t){const{onAutoDismiss:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("autoDismiss",t),()=>{e.removeEventListener("autoDismiss",t)}},[]),i.default.createElement("rapid-snackbar",{...s,ref:Rte(a,t)},o)}),jie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-stacking-icons",{...o,ref:t},c)}),qie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-status-pill",{...o,ref:t},c)}),Gie=i.default.forwardRef(function(e,t){const{onStepClick:c,onValidationFailure:o,onNextStep:s,onValidationSuccess:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("step-click",t);const i=e=>h.current?.(e);e.addEventListener("validation-failure",i);const c=e=>u.current?.(e);e.addEventListener("next-step",c);const o=e=>f.current?.(e);return e.addEventListener("validation-success",o),()=>{e.removeEventListener("step-click",t),e.removeEventListener("validation-failure",i),e.removeEventListener("next-step",c),e.removeEventListener("validation-success",o)}},[]),i.default.createElement("rapid-stepper",{...r,ref:Rte(l,t)},n)}),Wie=i.default.forwardRef(function(e,t){const{onTabClicked:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("tab-clicked",t),()=>{e.removeEventListener("tab-clicked",t)}},[]),i.default.createElement("rapid-stepper-tab",{...s,ref:Rte(a,t)},o)}),Yie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-stepper-tab-panel",{...o,ref:t},c)}),Kie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-switch",{...o,ref:t},c)}),Zie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tab",{...o,ref:t},c)}),Qie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tab-panel",{...o,ref:t},c)}),Xie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tabs",{...o,ref:t},c)}),Jie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-text-area",{...o,ref:t},c)}),ece=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-text-field",{...o,ref:t},c)}),tce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-toast",{...o,ref:t},c)}),ice=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-toolbar",{...o,ref:t},c)}),cce=i.default.forwardRef(function(e,t){const{onDismiss:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("dismiss",t),()=>{e.removeEventListener("dismiss",t)}},[]),i.default.createElement("rapid-tooltip",{...s,ref:Rte(a,t)},o)}),oce=i.default.forwardRef(function(e,t){const{onExpandedChange:c,onSelectedChange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("expanded-change",t);const i=e=>l.current?.(e);return e.addEventListener("selected-change",i),()=>{e.removeEventListener("expanded-change",t),e.removeEventListener("selected-change",i)}},[]),i.default.createElement("rapid-tree-item",{...a,ref:Rte(n,t)},s)}),sce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tree-view",{...o,ref:t},c)}),ace=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-url-input",{...o,ref:t},c)}),nce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-system-health-overlay",{...o,ref:t},c)});var rce=Object.freeze({__proto__:null,AccordionItem:Ite,Accordion:Dte,AiCriteriaSearch:Fte,ActionsMenu:Hte,AiIndicator:_te,Anchor:Pte,AnchoredRegion:Vte,Avatar:Bte,Badge:Ute,Banner:jte,Breadcrumb:qte,BreadcrumbItem:Gte,Button:Wte,Calendar:Yte,Card:Kte,CategorizedMultiselect:Zte,Checkbox:Qte,Combobox:Xte,ConnectionIndicator:Jte,DatePicker:eie,DesignSystemProvider:tie,Dialog:iie,Disclosure:cie,Divider:oie,DropdownMenu:sie,EnvironmentIndicator:aie,RapidExpressionBuilder:nie,RapidRuleExpressionBuilder:rie,RapidValueExpressionBuilder:lie,FileUpload:die,Filter:hie,FilterBar:uie,Flipper:fie,Flyout:pie,HorizontalScroll:mie,Icon:gie,Listbox:vie,ListboxOption:bie,Menu:yie,MenuItem:zie,Modal:Cie,Multiselect:Lie,NotificationListener:xie,NumberField:Mie,Optgroup:wie,Progress:Sie,ProgressRing:kie,Radio:Eie,RadioGroup:$ie,RapidRouter:Nie,Scheduler:Aie,SchedulerCronBuilder:Oie,SchedulerTimezone:Tie,SearchBarCombobox:Rie,SearchBar:Iie,SectionNavigator:Die,SegmentedControl:Fie,SegmentedItem:Hie,Select:_ie,Skeleton:Pie,Slider:Vie,SliderLabel:Bie,Snackbar:Uie,StackingIcons:jie,StatusPill:qie,Stepper:Gie,StepperTab:Wie,StepperTabPanel:Yie,Switch:Kie,Tab:Zie,TabPanel:Qie,Tabs:Xie,TextArea:Jie,TextField:ece,Toast:tce,Toolbar:ice,Tooltip:cce,TreeItem:oce,TreeView:sce,UrlInput:ace,SystemHealthOverlay:nce});if("undefined"!=typeof window){const e=window;e.rapid||(e.rapid={}),e.rapid.react=rce}}(React);
|
|
108
|
+
Submit </${e}-button>`)} ${Ve(e=>!e.isLastStep,K`<${e}-button @click=${e=>e.nextStep()}data-test-id="next-button">Next</${e}-button>`)}</slot></div>`)}</${e}-card>`)} `,M8=K` ${e=>x8(kC(e))} `,w8=Me` :host{display: flex;height: 100%;width: 100%}:host([orientation='horizontal']){flex-direction: column}.stepper-tab{display: flex;flex-direction: column;width: 100%;height: 100%;max-width: 280px;border-radius: 0}.action-buttons-container{width: 100%;display: flex;justify-content: flex-end}.stepper-panel-container{height: 100%;overflow: hidden;padding: 15px}.stepper-tab-menu{display: flex;flex-direction: column;width: 100%;margin-bottom: 30px}.stepper-tab-menu-hidden{display: none}.stepper-tab-progress{display: flex;flex-direction: column;align-items: center;justify-content: start;flex: 1}.stepper-tab-progress .progress-ring{--design-unit: 10;margin: 0}.stepper-tab-panel{display: flex;flex-direction: column;justify-content: space-between;width: 100%;min-width: 370px;border-radius: 0}label{padding: 0 10px;color: rgb(135 155 166);display: block;cursor: pointer;text-align: center;font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-style: normal;margin: calc(var(--design-unit) * 2px) 0}:host([orientation='horizontal']) .stepper-tab-menu{height: 100%;width: 100%;display: flex;flex-direction: row;margin-bottom: 0;align-items: center;justify-content: center;gap: calc(var(--design-unit) * 4px);padding: 0 calc(var(--design-unit) * 4px)}:host([orientation='horizontal']) .stepper-tab-hidden{display: none}:host([orientation='horizontal']) .stepper-tab{max-width: 100%;max-height: 70px;height: 70px}`;class S8 extends Wt{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=pa,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,c=t+1===this.tabIds.length,o=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(c)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=o)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],c=this.tabpanelIds[t];e.setAttribute("id",c),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return xC.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(xC.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(!this.slotsInitialized)return void(this.pendingNextStep=!0);if(this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${Si()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${Si()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}Ou([de({attribute:"hide-submit-button",mode:"boolean"})],S8.prototype,"hideSubmitButton",void 0),Ou([de({attribute:"hide-step-number",mode:"boolean"})],S8.prototype,"hideStepNumber",void 0),Ou([de({attribute:"allow-backward-jumps",mode:"boolean"})],S8.prototype,"allowBackwardJumps",void 0),Ou([de({attribute:"allow-forward-jumps",mode:"boolean"})],S8.prototype,"allowForwardJumps",void 0),Ou([de({attribute:"hide-all-buttons",mode:"boolean"})],S8.prototype,"hideAllButtons",void 0),Ou([de({attribute:"hide-tabs",mode:"boolean"})],S8.prototype,"hideTabs",void 0),Ou([de({attribute:"indicator-only",mode:"boolean"})],S8.prototype,"indicatorOnly",void 0),Ou([de],S8.prototype,"orientation",void 0),Ou([de],S8.prototype,"activeid",void 0),Ou([b],S8.prototype,"tabs",void 0),Ou([b],S8.prototype,"tabpanels",void 0),Ou([b],S8.prototype,"validation",void 0),Ou([b],S8.prototype,"progressValue",void 0),Ou([b],S8.prototype,"activeTabIndex",void 0),Ou([y],S8.prototype,"disabledPreviousStep",null),Ou([y],S8.prototype,"isLastStep",null),Ou([y],S8.prototype,"islastStepValid",null);const k8=void 0,E8={};S8.compose(Object.assign({baseName:"stepper",template:M8,styles:w8,shadowOptions:k8},E8));(class extends Mu{}).compose(Object.assign({baseName:"accordion-item",template:(e,t)=>Lu(0,t),styles:(e,t)=>Me` ${xu()} :host{--icon-container-calculator: calc( (6 + (var(--design-unit) * 6)) * 1px );/* height of section - (padding top +padding-bottom) */ --icon-margin-calculation: calc((6 + (var(--design-unit) * 2 * var(--density))) * 1px)}.region{padding: 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px);color: var(--accent-foreground-rest)}:host([expanded]) .region{color: var(--accent-foreground-rest)}slot[name='expanded-icon']{display: none;stroke: none}slot[name='collapsed-icon'] path.plus-sign, slot[name='expanded-icon'] path.minus-sign{stroke: white}slot[name='expanded-icon'], slot[name='collapsed-icon']{background: var(--neutral-fill-rest);fill: none;stroke: none;height: calc(((var(--design-unit) * 4)) * 1px);width: calc(((var(--design-unit) * 4)) * 1px)}svg:not(:root){height: calc(((var(--design-unit) * 4)) * 1px);width: calc(((var(--design-unit) * 4)) * 1px)}.icon{height: var( --icon-container-calculator );/* UX 30px* for now it's 30 on default design unit - 4/ */ width: var(--icon-container-calculator);/* UX 30px */ margin: var(--icon-margin-calculation) var(--icon-margin-calculation) var(--icon-margin-calculation) 0}.button{padding: 0 calc((8 + (var(--design-unit) * 2 * var(--density))) * 1px) 0 calc((16 + (var(--design-unit) * 2 * var(--density))) * 1px)}.heading{grid-template-columns: auto 1fr auto;align-items: center}`,shadowOptions:wu},Su));(class extends yu{}).compose(Object.assign({baseName:"accordion",template:(e,t)=>en(),styles:(e,t)=>Me` ${bu()} :host{border-top: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest)}.heading{height: calc(var(--base-height-multiplier) * 4px)}`,shadowOptions:zu},Cu));(class extends UC{}).compose({baseName:"actions-menu",styles:(e,t)=>Me` :host{--actions-opener-height-multiplier: 0.6px;--menu-item-height-multiplier: 0.5px}${ku()} rapid-menu-item{display: flex;user-select: none}rapid-menu-item::part(content){margin-inline: calc(var(--design-unit) * 3px)}rapid-menu-item[disabled]{pointer-events: none}.actions-vertical .actions-menu{padding: 0}.actions-vertical .menu-item{margin: 0;padding: calc(var(--design-unit) * 4px);border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}.actions-vertical .menu-item:last-child{border-bottom: none}.actions-vertical .menu-item:focus{border: calc(var(--stroke-width) * 1px) solid var(--accent-foreground-focus)}`,template:BC});const $8=Me` ${ZC}`;(class extends DL{}).compose(Object.assign({baseName:"ai-criteria-search",template:(e,t)=>QC,styles:$8,shadowOptions:FL},HL));function N8(e,t){return new Za("appearance",e,t)}(class extends VL{}).compose({baseName:"ai-indicator",template:PL,styles:(e,t)=>Me` ${_L()} :host{--green: var(--success-color);--trafic-light-green: var(--success-color);--red: var(--error-color);--trafic-light-red: var(--error-color);--amber: var(--warning-color);--trafic-light-amber: var(--warning-color)}`});const A8=Me` :host([appearance='primary']){background: var(--accent-fill-rest);color: var(--foreground-on-accent-rest)}:host([appearance='primary']:hover){background: var(--accent-fill-hover);color: var(--foreground-on-accent-hover)}:host([appearance='primary']:active){background: var(--accent-fill-active);color: var(--foreground-on-accent-active)}:host([appearance='primary'][disabled]), :host([appearance='primary'][disabled]):hover, :host([appearance='primary'][disabled]):active{opacity: 50%}`,O8=Me` :host([appearance='secondary']){background: var(--secondary-fill-rest);color: contrast-color(var(--secondary-fill-rest))}:host([appearance='secondary']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary'][disabled]), :host([appearance='secondary'][disabled]):hover, :host([appearance='secondary'][disabled]):active{opacity: 50%}`,T8=Me` :host([appearance='neutral']){background: var(--neutral-button-fill, var(--neutral-fill-rest));border: var(--neutral-button-border, 0);color: var(--neutral-button-foreground, var(--neutral-foreground-rest))}:host([appearance='neutral']:hover){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-hover)), transparent 20% )}:host([appearance='neutral']:active){background: color-mix( in srgb, var(--neutral-button-fill, var(--neutral-fill-active)), transparent 30% )}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{opacity: 50%;background: var(--neutral-button-fill, var(--neutral-fill-rest));color: var(--neutral-button-foreground, var(--neutral-foreground-rest));border: var(--neutral-button-border, 0)}`,R8=Me` :host([appearance='danger']){background: var(--error-fill-rest);color: contrast-color(var(--error-fill-rest));border: 0}:host([appearance='danger']:hover){background: var(--error-fill-hover);color: contrast-color(var(--error-fill-hover))}:host([appearance='danger']:active){background: var(--error-fill-active);color: contrast-color(var(--error-fill-active))}:host([appearance='danger'][disabled]), :host([appearance='danger'][disabled]):hover, :host([appearance='danger'][disabled]):active{opacity: 50%}`,I8=Me` :host([appearance='success']){background: var(--success-fill-rest);color: contrast-color(var(--success-fill-rest));border: 0}:host([appearance='success']:hover){background: var(--success-fill-hover);color: contrast-color(var(--success-fill-hover))}:host([appearance='success']:active){background: var(--success-fill-active);color: contrast-color(var(--success-fill-active))}:host([appearance='success'][disabled]), :host([appearance='success'][disabled]):hover, :host([appearance='success'][disabled]):active{opacity: 50%}`,D8=Me` :host([appearance='warning']){background: var(--warning-fill-rest);color: contrast-color(var(--warning-fill-rest));border: 0}:host([appearance='warning']:hover){background: var(--warning-fill-hover);color: contrast-color(var(--warning-fill-hover))}:host([appearance='warning']:active){background: var(--warning-fill-active);color: contrast-color(var(--warning-fill-active))}:host([appearance='warning'][disabled]), :host([appearance='warning'][disabled]):hover, :host([appearance='warning'][disabled]):active{opacity: 50%}`,F8=Me` :host([appearance='tertiary']){background: var(--tertiary-fill-rest);color: contrast-color(var(--tertiary-fill-rest));border: 0}:host([appearance='tertiary']:hover){background: var(--tertiary-fill-hover);color: contrast-color(var(--tertiary-fill-hover))}:host([appearance='tertiary']:active){background: var(--tertiary-fill-active);color: contrast-color(var(--tertiary-fill-active))}:host([appearance='tertiary'][disabled]), :host([appearance='tertiary'][disabled]):hover, :host([appearance='tertiary'][disabled]):active{opacity: 50%}`,H8=Me` :host([appearance='primary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest)}:host([appearance='primary-outline']:hover){background: var(--accent-fill-hover);color: contrast-color(var(--accent-fill-hover))}:host([appearance='primary-outline']:active){background: var(--accent-fill-active);color: contrast-color(var(--accent-fill-active))}:host([appearance='primary-outline'][disabled]), :host([appearance='primary-outline'][disabled]):hover, :host([appearance='primary-outline'][disabled]):active{opacity: 50%}`,_8=Me` :host([appearance='secondary-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--secondary-fill-rest)}:host([appearance='secondary-outline']:hover){background: var(--secondary-fill-hover);color: contrast-color(var(--secondary-fill-hover))}:host([appearance='secondary-outline']:active){background: var(--secondary-fill-active);color: contrast-color(var(--secondary-fill-active))}:host([appearance='secondary-outline'][disabled]), :host([appearance='secondary-outline'][disabled]):hover, :host([appearance='secondary-outline'][disabled]):active{opacity: 50%}`,P8=Me` :host([appearance='neutral-outline']){background: none;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host([appearance='neutral-outline']:hover){background: var(--neutral-fill-hover);color: contrast-color(var(--neutral-fill-hover))}:host([appearance='neutral-outline']:active){background: var(--neutral-fill-active);color: contrast-color(var(--neutral-fill-active))}:host([appearance='neutral-outline'][disabled]), :host([appearance='neutral-outline'][disabled]):hover, :host([appearance='neutral-outline'][disabled]):active{opacity: 50%}`,V8=Me` :host([appearance='link']){background: none;border: none;color: var(--accent-foreground-rest)}:host([appearance='link']) .control{padding: 0}:host([appearance='link']:hover){color: var(--accent-foreground-hover)}:host([appearance='link'][disabled]), :host([appearance='link'][disabled]):hover, :host([appearance='link'][disabled]):active{opacity: 50%}`,B8=(e,t)=>Me` ${Lx()} ${Me` :host{font-weight: 500;color: var(--neutral-foreground-rest);box-sizing: border-box;font-size: var(--type-ramp-base-font-size);height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px)}.control{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px)}.start{margin-inline-end: calc(var(--design-unit) * 2px)}.end{margin-inline-start: calc(var(--design-unit) * 2px)}.control:has(.start){padding-left: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}.control:has(.end){padding-right: calc((12 + var(--design-unit) * 2 * var(--density)) * 1px)}:host([appearance='neutral']){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral']:hover){background: var(--neutral-fill-rest)}:host([appearance='neutral']:active){background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%));border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest)}:host([appearance='neutral'][disabled]), :host([appearance='neutral'][disabled]):hover, :host([appearance='neutral'][disabled]):active{background: color-mix(in srgb, var(--neutral-fill-rest), transparent 70%);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);opacity: 100%}:host([appearance='accent']){color: contrast-color(var(--accent-fill-rest))}`} `.withBehaviors(N8("primary",A8),N8("secondary",O8),N8("tertiary",F8),N8("neutral",T8),N8("danger",R8),N8("success",I8),N8("warning",D8),N8("primary-outline",H8),N8("secondary-outline",_8),N8("neutral-outline",P8),N8("link",V8));(class extends jL{}).compose(Object.assign({baseName:"anchor",template:(e,t)=>BL(0,t),styles:(e,t)=>Me` ${UL()} ${B8()} `.withBehaviors(...B8().behaviors),shadowOptions:qL},GL));(class extends KL{}).compose(Object.assign({baseName:"anchored-region",template:(e,t)=>WL(),styles:(e,t)=>Me` ${YL()}`,shadowOptions:ZL},QL));(class extends tx{}).compose(Object.assign({baseName:"avatar",template:(e,t)=>XL(0,t),styles:(e,t)=>Me` ${ex(e)}`,shadowOptions:ix},cx));(class extends ax{}).compose(Object.assign({baseName:"badge",template:(e,t)=>ox(),styles:(e,t)=>Me` ${sx()} :host{--badge-fill-primary: var(--accent-fill-rest);--badge-fill-neutral: var(--neutral-fill-rest);--badge-fill-success: var(--success-color);--badge-fill-danger: var(--error-color);--badge-fill-warning: var(--warning-color);--badge-fill-buy: var(--buy-color);--badge-fill-sell: var(--sell-color);--badge-color-text: var(--neutral-foreground-rest);font-size: var(--type-ramp-minus-2-font-size)}:host .control{padding: calc(${fr} * 1px) calc(${fr} * 2px);border: none}`,shadowOptions:nx},rx));const U8=Me` ${lx} :host{--banner-height: calc( ((var(--design-unit) + 2) * var(--base-height-multiplier)) + (var(--design-unit) * var(--design-unit)) * 1px )}.banner{background-color: var(--neutral-layer-1);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}.content{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}`,j8=hx;(class extends ux{}).compose({baseName:"banner",shadowOptions:j8,styles:U8,template:dx});(class extends bx{}).compose(Object.assign({baseName:"breadcrumb-item",template:(e,t)=>gx(0,t),styles:(e,t)=>Me` ${vx()} .listitem{color: var(--accent-foreground-rest)}.control{color: var(--neutral-foreground-rest)}.control:hover{color: var(--neutral-foreground-rest)}.separator{color: var(--neutral-stroke-rest);margin: 0 12px}.control:hover .content::before{background: var(--neutral-foreground-rest)}.control .start{width: calc(var(--base-height-multiplier) * 3px);height: calc(var(--base-height-multiplier) * 3px);display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);margin: 0 -4px 0 0}.control:hover .start{background: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}`,shadowOptions:yx},zx));(class extends mx{}).compose(Object.assign({baseName:"breadcrumb",template:(e,t)=>fx(),styles:(e,t)=>Me` ${px()}`,shadowOptions:void 0},{}));(class extends xx{}).compose(Object.assign({baseName:"button",template:(e,t)=>Cx(0,t),styles:B8,shadowOptions:Mx},wx));(class extends Ex{}).compose(Object.assign({baseName:"calendar",template:(e,t)=>kx(e,t),styles:()=>Me` ${Sx()}`,shadowOptions:$x},Nx));(class extends Tx{}).compose(Object.assign({baseName:"card",template:(e,t)=>Ax(),styles:(e,t)=>Me` ${Ox()} :host{background: var(--neutral-layer-card-container);color: ${kd};border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));box-shadow: var(--card-box-shadow, none);border: var( --card-border, 1px solid var(--neutral-stroke-rest) );/** uses a token instead of #2E3339 value available in ux docs */ /* box-shadow and border-radius are being calculated at host level by using design-tokens */}::slotted(rapid-card){background: var(--neutral-layer-3)}`,shadowOptions:Rx},Ix));const q8=Me` ${Zx} .label{color: var(--neutral-foreground-hint)}.options{background: var(--neutral-layer-4)}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}`,G8=K` ${Qx("rapid")} `;const W8=eM,Y8=Jx;(class extends tM{}).compose(Object.assign({baseName:"categorized-multiselect",template:G8,styles:q8,shadowOptions:Y8},W8));(class extends oM{}).compose(Object.assign({baseName:"checkbox",template:(e,t)=>iM(0,t),styles:(e,t)=>Me` ${cM()} :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{fill: var(--neutral-foreground-rest)}.checked-indicator{fill: contrast-color(var(--accent-fill-rest));box-shadow: 2px 1000px 1px rgb(0 0 0 / 20%) inset;border-radius: calc(var(--control-corner-radius) * 1px)}.label{padding-inline-start: calc(var(--design-unit) * 2px)}`,shadowOptions:sM},aM));(class extends hM{}).compose(Object.assign({baseName:"combobox",template:(e,t)=>rM(0,t),styles:(e,t)=>Me` ${nM(e)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-width: 0}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.combo-box-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s}.selected-value{height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .combo-box-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:uM},fM));(class extends gM{}).compose({baseName:"connection-indicator",template:mM,styles:(e,t)=>Me` ${pM()} :host{--light-size: calc(var(--design-unit) * 3px);--red: var(--error-color);--trafic-light-red: color-mix(in srgb, var(--red), transparent 0%);--trafic-light-red-glow: color-mix(in srgb, var(--red), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--red), transparent 80%) 0 0 8px 8px;--green: var(--success-color);--trafic-light-green: color-mix(in srgb, var(--green), transparent 0%);--trafic-light-green-glow: color-mix(in srgb, var(--green), transparent 60%) 0 0 4px 4px, color-mix(in srgb, var(--green), transparent 80%) 0 0 8px 8px}.light{margin: calc(var(--design-unit) * 4px)}.label{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);color: var(--neutral-stroke-rest)}`});const K8=K` ${yM("rapid")} `;var Z8;(class extends ZM{}).compose(Object.assign({baseName:"date-picker",template:K8,styles:()=>Me` ${vM} :host{--primary-gradient-angle: -113.5deg;display: inline-block}.calendar-dropdown{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.input-icon-container{display: flex;justify-content: center;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px)}.input-icon-container:hover{background-color: var(--neutral-fill-rest)}.date-toggle::part(end){margin-inline-end: calc(var(--design-unit) * 1px)}.date-toggle{margin-bottom: 0}.month-day{width: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px);height: calc(((var(--base-height-multiplier) * (var(--design-unit) - 1)) + 2) * 1px)}.week-days span{font-size: var(--type-ramp-minus-2-font-size)}`,shadowOptions:void 0},{})),function(e){e.primary="#11C9FC",e.neutral="#7C909B",e.error="#F9644D",e.success="#7ACC79",e.warning="#FFB660",e.tertiary="#7B2FBE",e.info="#11C9FC",e.buy="#7ACC79",e.sell="#F14376",e.chartPink="#fb8176",e.longGreen="#7acc79",e.shortPink="#f14376",e.warningYellow="#fcb35f",e.green="#44c14c",e.lightGreen="#69cd70",e.red="#ef4d28",e.lightRed="#ee6588",e.dodgerBlue="#33a9ff",e.lightDodgerBlue="#5cbaff",e.violet="#9b1e74",e.lightViolet="#b528af",e.white="#f9f9f9",e.silver="#c1c1c1",e.salomie="#ffdf94",e.lightSalomie="#ccb276",e.melon="#ffbbb2",e.lightMelon="#cc968e",e.portage="#8a99f5",e.lightPortage="#adb8f8",e.ice="#97f4eb",e.lightIce="#6befe2"}(Z8||(Z8={}));const{create:Q8}=yo,X8=_n(Z8.error),J8=Un.create(X8.r,X8.g,X8.b),e5=Q8("error-color").withDefault(J8),t5=_n(Z8.success),i5=Un.create(t5.r,t5.g,t5.b),c5=Q8("success-color").withDefault(i5),o5=_n(Z8.warning),s5=Un.create(o5.r,o5.g,o5.b),a5=Q8("warning-color").withDefault(s5),n5=_n(Z8.buy),r5=Un.create(n5.r,n5.g,n5.b),l5=Q8("buy-color").withDefault(r5),d5=_n(Z8.sell),h5=Un.create(d5.r,d5.g,d5.b),u5=Q8("sell-color").withDefault(h5),f5=_n(Z8.info),p5=Un.create(f5.r,f5.g,f5.b),m5=Q8("info-color").withDefault(p5),g5=_n(Z8.error),v5=Un.create(g5.r,g5.g,g5.b),b5=Q8("serious-notify-color").withDefault(v5),{create:y5}=yo,z5=e=>yo.create({name:e,cssCustomPropertyName:null}),C5=Un.create(1,1,1),L5=Un.create(0,0,0);function x5(e,t){const i=e,c=z5(`${i}-palette`).withDefault(e=>Kn.from(t.getValueFor(e))),o=z5(`${i}-fill-rest-delta`).withDefault(0),s=z5(`${i}-fill-hover-delta`).withDefault(4),a=z5(`${i}-fill-active-delta`).withDefault(-5),n=z5(`${i}-fill-focus-delta`).withDefault(0),r=z5(`${i}-foreground-rest-delta`).withDefault(0),l=z5(`${i}-foreground-hover-delta`).withDefault(6),d=z5(`${i}-foreground-active-delta`).withDefault(-4),h=z5(`${i}-foreground-focus-delta`).withDefault(0),u=z5(`${i}-fill-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,c,o,s,a,n,r){const l=e.source,d=t.closestIndexOf(i)>=Math.max(a,n,r)?-1:1,h=e.closestIndexOf(l),u=h+-1*d*c,f=u+d*o,p=u+d*s;return{rest:e.get(u),hover:e.get(h),active:e.get(f),focus:e.get(p)}}(c.getValueFor(e),fl.getValueFor(e),null!=t?t:El.getValueFor(e),s.getValueFor(e),a.getValueFor(e),n.getValueFor(e),jr.getValueFor(e),qr.getValueFor(e),Gr.getValueFor(e))}),f=y5(`${i}-fill-rest`).withDefault(e=>u.getValueFor(e).evaluate(e).rest),p=y5(`${i}-fill-hover`).withDefault(e=>u.getValueFor(e).evaluate(e).hover),m=y5(`${i}-fill-active`).withDefault(e=>u.getValueFor(e).evaluate(e).active),g=y5(`${i}-fill-focus`).withDefault(e=>u.getValueFor(e).evaluate(e).focus),v=e=>(t,i)=>function(e,t){return e.contrast(C5)>=t?C5:L5}(null!=i?i:f.getValueFor(t),e),b=z5(`foreground-on-${i}-recipe`).withDefault({evaluate:(e,t)=>v(4.5)(e,t)}),y=y5(`foreground-on-${i}-rest`).withDefault(e=>b.getValueFor(e).evaluate(e,f.getValueFor(e))),z=y5(`foreground-on-${i}-hover`).withDefault(e=>b.getValueFor(e).evaluate(e,p.getValueFor(e))),C=y5(`foreground-on-${i}-active`).withDefault(e=>b.getValueFor(e).evaluate(e,m.getValueFor(e))),L=y5(`foreground-on-${i}-focus`).withDefault(e=>b.getValueFor(e).evaluate(e,g.getValueFor(e))),x=z5(`foreground-on-${i}-large-recipe`).withDefault({evaluate:(e,t)=>v(7)(e,t)}),M=y5(`foreground-on-${i}-rest-large`).withDefault(e=>x.getValueFor(e).evaluate(e,f.getValueFor(e))),w=y5(`foreground-on-${i}-hover-large`).withDefault(e=>x.getValueFor(e).evaluate(e,p.getValueFor(e))),S=y5(`foreground-on-${i}-active-large`).withDefault(e=>x.getValueFor(e).evaluate(e,m.getValueFor(e))),k=y5(`foreground-on-${i}-focus-large`).withDefault(e=>x.getValueFor(e).evaluate(e,g.getValueFor(e))),E=z5(`${i}-foreground-recipe`).withDefault({evaluate:(e,t)=>function(e,t,i,c,o,s,a){const n=e.source,r=e.closestIndexOf(n),l=Wn(t)?-1:1,d=r+(1===l?Math.min(c,o):Math.max(l*c,l*o)),h=e.colorContrast(t,i,d,l),u=e.closestIndexOf(h),f=u+l*Math.abs(c-o),p=1===l?c<o:l*c>l*o,m=p?u:f,g=p?f:u;return{rest:e.get(m),hover:e.get(g),active:e.get(m+l*s),focus:e.get(m+l*a)}}(c.getValueFor(e),null!=t?t:El.getValueFor(e),4.5,r.getValueFor(e),l.getValueFor(e),d.getValueFor(e),h.getValueFor(e))}),$=y5(`${i}-foreground-rest`).withDefault(e=>E.getValueFor(e).evaluate(e).rest),N=y5(`${i}-foreground-hover`).withDefault(e=>E.getValueFor(e).evaluate(e).hover),A=y5(`${i}-foreground-active`).withDefault(e=>E.getValueFor(e).evaluate(e).active),O=y5(`${i}-foreground-focus`).withDefault(e=>E.getValueFor(e).evaluate(e).focus);return{palette:c,fillRestDelta:o,fillHoverDelta:s,fillActiveDelta:a,fillFocusDelta:n,foregroundRestDelta:r,foregroundHoverDelta:l,foregroundActiveDelta:d,foregroundFocusDelta:h,fillRecipe:u,fillRest:f,fillHover:p,fillActive:m,fillFocus:g,foregroundOnRecipe:b,foregroundOnRest:y,foregroundOnHover:z,foregroundOnActive:C,foregroundOnFocus:L,foregroundOnLargeRecipe:x,foregroundOnRestLarge:M,foregroundOnHoverLarge:w,foregroundOnActiveLarge:S,foregroundOnFocusLarge:k,foregroundRecipe:E,foregroundRest:$,foregroundHover:N,foregroundActive:A,foregroundFocus:O}}const M5=_n(Z8.green),w5=Un.create(M5.r,M5.g,M5.b),S5=yo.create("secondary-color").withDefault(w5),{palette:k5,fillRestDelta:E5,fillHoverDelta:$5,fillActiveDelta:N5,fillFocusDelta:A5,foregroundRestDelta:O5,foregroundHoverDelta:T5,foregroundActiveDelta:R5,foregroundFocusDelta:I5,fillRecipe:D5,fillRest:F5,fillHover:H5,fillActive:_5,fillFocus:P5,foregroundOnRecipe:V5,foregroundOnRest:B5,foregroundOnHover:U5,foregroundOnActive:j5,foregroundOnFocus:q5,foregroundOnLargeRecipe:G5,foregroundOnRestLarge:W5,foregroundOnHoverLarge:Y5,foregroundOnActiveLarge:K5,foregroundOnFocusLarge:Z5,foregroundRecipe:Q5,foregroundRest:X5,foregroundHover:J5,foregroundActive:e7,foregroundFocus:t7}=x5("secondary",S5),i7=_n(Z8.tertiary),c7=Un.create(i7.r,i7.g,i7.b),o7=yo.create("tertiary-color").withDefault(c7),{palette:s7,fillRestDelta:a7,fillHoverDelta:n7,fillActiveDelta:r7,fillFocusDelta:l7,foregroundRestDelta:d7,foregroundHoverDelta:h7,foregroundActiveDelta:u7,foregroundFocusDelta:f7,fillRecipe:p7,fillRest:m7,fillHover:g7,fillActive:v7,fillFocus:b7,foregroundOnRecipe:y7,foregroundOnRest:z7,foregroundOnHover:C7,foregroundOnActive:L7,foregroundOnFocus:x7,foregroundOnLargeRecipe:M7,foregroundOnRestLarge:w7,foregroundOnHoverLarge:S7,foregroundOnActiveLarge:k7,foregroundOnFocusLarge:E7,foregroundRecipe:$7,foregroundRest:N7,foregroundHover:A7,foregroundActive:O7,foregroundFocus:T7}=x5("tertiary",o7),{palette:R7,fillRestDelta:I7,fillHoverDelta:D7,fillActiveDelta:F7,fillFocusDelta:H7,foregroundRestDelta:_7,foregroundHoverDelta:P7,foregroundActiveDelta:V7,foregroundFocusDelta:B7,fillRecipe:U7,fillRest:j7,fillHover:q7,fillActive:G7,fillFocus:W7,foregroundOnRecipe:Y7,foregroundOnRest:K7,foregroundOnHover:Z7,foregroundOnActive:Q7,foregroundOnFocus:X7,foregroundOnLargeRecipe:J7,foregroundOnRestLarge:e9,foregroundOnHoverLarge:t9,foregroundOnActiveLarge:i9,foregroundOnFocusLarge:c9,foregroundRecipe:o9,foregroundRest:s9,foregroundHover:a9,foregroundActive:n9,foregroundFocus:r9}=x5("error",e5),{palette:l9,fillRestDelta:d9,fillHoverDelta:h9,fillActiveDelta:u9,fillFocusDelta:f9,foregroundRestDelta:p9,foregroundHoverDelta:m9,foregroundActiveDelta:g9,foregroundFocusDelta:v9,fillRecipe:b9,fillRest:y9,fillHover:z9,fillActive:C9,fillFocus:L9,foregroundOnRecipe:x9,foregroundOnRest:M9,foregroundOnHover:w9,foregroundOnActive:S9,foregroundOnFocus:k9,foregroundOnLargeRecipe:E9,foregroundOnRestLarge:$9,foregroundOnHoverLarge:N9,foregroundOnActiveLarge:A9,foregroundOnFocusLarge:O9,foregroundRecipe:T9,foregroundRest:R9,foregroundHover:I9,foregroundActive:D9,foregroundFocus:F9}=x5("success",c5),{palette:H9,fillRestDelta:_9,fillHoverDelta:P9,fillActiveDelta:V9,fillFocusDelta:B9,foregroundRestDelta:U9,foregroundHoverDelta:j9,foregroundActiveDelta:q9,foregroundFocusDelta:G9,fillRecipe:W9,fillRest:Y9,fillHover:K9,fillActive:Z9,fillFocus:Q9,foregroundOnRecipe:X9,foregroundOnRest:J9,foregroundOnHover:eee,foregroundOnActive:tee,foregroundOnFocus:iee,foregroundOnLargeRecipe:cee,foregroundOnRestLarge:oee,foregroundOnHoverLarge:see,foregroundOnActiveLarge:aee,foregroundOnFocusLarge:nee,foregroundRecipe:ree,foregroundRest:lee,foregroundHover:dee,foregroundActive:hee,foregroundFocus:uee}=x5("warning",a5);var fee=Object.freeze({__proto__:null,accentFillActive:Tl,accentFillActiveDelta:Hr,accentFillFocus:Rl,accentFillFocusDelta:_r,accentFillHover:Ol,accentFillHoverDelta:Fr,accentFillRest:Al,accentFillRestDelta:Dr,accentForegroundActive:Zl,accentForegroundActiveDelta:Br,accentForegroundFocus:Ql,accentForegroundFocusDelta:Ur,accentForegroundHover:Kl,accentForegroundHoverDelta:Vr,accentForegroundRest:Yl,accentForegroundRestDelta:Pr,accentPalette:ml,baseHeightMultiplier:rr,baseLayerLuminance:dr,bodyFont:nr,controlCornerRadius:hr,density:ur,designUnit:fr,direction:pr,disabledOpacity:mr,fillColor:El,focusStrokeInner:xd,focusStrokeOuter:Cd,focusStrokeWidth:vr,foregroundOnAccentActive:_l,foregroundOnAccentActiveLarge:jl,foregroundOnAccentFocus:Pl,foregroundOnAccentFocusLarge:ql,foregroundOnAccentHover:Hl,foregroundOnAccentHoverLarge:Ul,foregroundOnAccentRest:Fl,foregroundOnAccentRestLarge:Bl,neutralFillActive:td,neutralFillActiveDelta:Gr,neutralFillFocus:id,neutralFillFocusDelta:Wr,neutralFillHover:ed,neutralFillHoverDelta:qr,neutralFillInputActive:ad,neutralFillInputActiveDelta:Zr,neutralFillInputFocus:nd,neutralFillInputFocusDelta:Qr,neutralFillInputHover:sd,neutralFillInputHoverDelta:Kr,neutralFillInputRest:od,neutralFillInputRestDelta:Yr,neutralFillLayerRest:yd,neutralFillLayerRestDelta:al,neutralFillRest:Jl,neutralFillRestDelta:jr,neutralFillStealthActive:hd,neutralFillStealthActiveDelta:el,neutralFillStealthFocus:ud,neutralFillStealthFocusDelta:tl,neutralFillStealthHover:dd,neutralFillStealthHoverDelta:Jr,neutralFillStealthRest:ld,neutralFillStealthRestDelta:Xr,neutralFillStrongActive:gd,neutralFillStrongActiveDelta:ol,neutralFillStrongFocus:vd,neutralFillStrongFocusDelta:sl,neutralFillStrongHover:md,neutralFillStrongHoverDelta:cl,neutralFillStrongRest:pd,neutralFillStrongRestDelta:il,neutralForegroundHint:wd,neutralForegroundRest:kd,neutralLayer1:Cl,neutralLayer2:xl,neutralLayer3:wl,neutralLayer4:kl,neutralLayerCardContainer:vl,neutralLayerFloating:yl,neutralPalette:fl,neutralStrokeActive:Ad,neutralStrokeActiveDelta:ll,neutralStrokeDividerRest:Rd,neutralStrokeDividerRestDelta:hl,neutralStrokeFocus:Od,neutralStrokeFocusDelta:dl,neutralStrokeHover:Nd,neutralStrokeHoverDelta:rl,neutralStrokeRest:$d,neutralStrokeRestDelta:nl,strokeWidth:gr,typeRampBaseFontSize:br,typeRampBaseLineHeight:yr,typeRampMinus1FontSize:zr,typeRampMinus1LineHeight:Cr,typeRampMinus2FontSize:Lr,typeRampMinus2LineHeight:xr,typeRampPlus1FontSize:Mr,typeRampPlus1LineHeight:wr,typeRampPlus2FontSize:Sr,typeRampPlus2LineHeight:kr,typeRampPlus3FontSize:Er,typeRampPlus3LineHeight:$r,typeRampPlus4FontSize:Nr,typeRampPlus4LineHeight:Ar,typeRampPlus5FontSize:Or,typeRampPlus5LineHeight:Tr,typeRampPlus6FontSize:Rr,typeRampPlus6LineHeight:Ir,defaultErrorColor:J8,errorColor:e5,defaultSuccessColor:i5,successColor:c5,defaultWarningColor:s5,warningColor:a5,defaultBuyColor:r5,buyColor:l5,defaultSellColor:h5,sellColor:u5,defaultInfoColor:p5,infoColor:m5,defaultSeriousNotifyColor:v5,seriousNotifyColor:b5,defaultSecondaryColor:w5,secondaryColor:S5,secondaryPalette:k5,secondaryFillRestDelta:E5,secondaryFillHoverDelta:$5,secondaryFillActiveDelta:N5,secondaryFillFocusDelta:A5,secondaryForegroundRestDelta:O5,secondaryForegroundHoverDelta:T5,secondaryForegroundActiveDelta:R5,secondaryForegroundFocusDelta:I5,secondaryFillRecipe:D5,secondaryFillRest:F5,secondaryFillHover:H5,secondaryFillActive:_5,secondaryFillFocus:P5,foregroundOnSecondaryRecipe:V5,foregroundOnSecondaryRest:B5,foregroundOnSecondaryHover:U5,foregroundOnSecondaryActive:j5,foregroundOnSecondaryFocus:q5,foregroundOnSecondaryLargeRecipe:G5,foregroundOnSecondaryRestLarge:W5,foregroundOnSecondaryHoverLarge:Y5,foregroundOnSecondaryActiveLarge:K5,foregroundOnSecondaryFocusLarge:Z5,secondaryForegroundRecipe:Q5,secondaryForegroundRest:X5,secondaryForegroundHover:J5,secondaryForegroundActive:e7,secondaryForegroundFocus:t7,defaultTertiaryColor:c7,tertiaryColor:o7,tertiaryPalette:s7,tertiaryFillRestDelta:a7,tertiaryFillHoverDelta:n7,tertiaryFillActiveDelta:r7,tertiaryFillFocusDelta:l7,tertiaryForegroundRestDelta:d7,tertiaryForegroundHoverDelta:h7,tertiaryForegroundActiveDelta:u7,tertiaryForegroundFocusDelta:f7,tertiaryFillRecipe:p7,tertiaryFillRest:m7,tertiaryFillHover:g7,tertiaryFillActive:v7,tertiaryFillFocus:b7,foregroundOnTertiaryRecipe:y7,foregroundOnTertiaryRest:z7,foregroundOnTertiaryHover:C7,foregroundOnTertiaryActive:L7,foregroundOnTertiaryFocus:x7,foregroundOnTertiaryLargeRecipe:M7,foregroundOnTertiaryRestLarge:w7,foregroundOnTertiaryHoverLarge:S7,foregroundOnTertiaryActiveLarge:k7,foregroundOnTertiaryFocusLarge:E7,tertiaryForegroundRecipe:$7,tertiaryForegroundRest:N7,tertiaryForegroundHover:A7,tertiaryForegroundActive:O7,tertiaryForegroundFocus:T7,errorPalette:R7,errorFillRestDelta:I7,errorFillHoverDelta:D7,errorFillActiveDelta:F7,errorFillFocusDelta:H7,errorForegroundRestDelta:_7,errorForegroundHoverDelta:P7,errorForegroundActiveDelta:V7,errorForegroundFocusDelta:B7,errorFillRecipe:U7,errorFillRest:j7,errorFillHover:q7,errorFillActive:G7,errorFillFocus:W7,foregroundOnErrorRecipe:Y7,foregroundOnErrorRest:K7,foregroundOnErrorHover:Z7,foregroundOnErrorActive:Q7,foregroundOnErrorFocus:X7,foregroundOnErrorLargeRecipe:J7,foregroundOnErrorRestLarge:e9,foregroundOnErrorHoverLarge:t9,foregroundOnErrorActiveLarge:i9,foregroundOnErrorFocusLarge:c9,errorForegroundRecipe:o9,errorForegroundRest:s9,errorForegroundHover:a9,errorForegroundActive:n9,errorForegroundFocus:r9,successPalette:l9,successFillRestDelta:d9,successFillHoverDelta:h9,successFillActiveDelta:u9,successFillFocusDelta:f9,successForegroundRestDelta:p9,successForegroundHoverDelta:m9,successForegroundActiveDelta:g9,successForegroundFocusDelta:v9,successFillRecipe:b9,successFillRest:y9,successFillHover:z9,successFillActive:C9,successFillFocus:L9,foregroundOnSuccessRecipe:x9,foregroundOnSuccessRest:M9,foregroundOnSuccessHover:w9,foregroundOnSuccessActive:S9,foregroundOnSuccessFocus:k9,foregroundOnSuccessLargeRecipe:E9,foregroundOnSuccessRestLarge:$9,foregroundOnSuccessHoverLarge:N9,foregroundOnSuccessActiveLarge:A9,foregroundOnSuccessFocusLarge:O9,successForegroundRecipe:T9,successForegroundRest:R9,successForegroundHover:I9,successForegroundActive:D9,successForegroundFocus:F9,warningPalette:H9,warningFillRestDelta:_9,warningFillHoverDelta:P9,warningFillActiveDelta:V9,warningFillFocusDelta:B9,warningForegroundRestDelta:U9,warningForegroundHoverDelta:j9,warningForegroundActiveDelta:q9,warningForegroundFocusDelta:G9,warningFillRecipe:W9,warningFillRest:Y9,warningFillHover:K9,warningFillActive:Z9,warningFillFocus:Q9,foregroundOnWarningRecipe:X9,foregroundOnWarningRest:J9,foregroundOnWarningHover:eee,foregroundOnWarningActive:tee,foregroundOnWarningFocus:iee,foregroundOnWarningLargeRecipe:cee,foregroundOnWarningRestLarge:oee,foregroundOnWarningHoverLarge:see,foregroundOnWarningActiveLarge:aee,foregroundOnWarningFocusLarge:nee,warningForegroundRecipe:ree,warningForegroundRest:lee,warningForegroundHover:dee,warningForegroundActive:hee,warningForegroundFocus:uee});const pee=tw(Z8.primary),mee=tw(Z8.neutral),gee=tw(Z8.green),vee=tw(Z8.tertiary),bee=tw(Z8.error),yee=tw(Z8.success),zee=tw(Z8.warning),Cee=cr,Lee=Li.ltr,xee='"Segoe UI", Arial, Helvetica, sans-serif',Mee="14px",wee="20px",See={design_tokens:{color:{accent:{$value:pee.source.toColorString(),$type:"color"},neutral:{$value:mee.source.toColorString(),$type:"color"},secondary:{$value:gee.source.toColorString(),$type:"color"},tertiary:{$value:vee.source.toColorString(),$type:"color"},error:{$value:bee.source.toColorString(),$type:"color"},success:{$value:yee.source.toColorString(),$type:"color"},warning:{$value:zee.source.toColorString(),$type:"color"}},fontFamily:{bodyFont:{$value:xee,$type:"fontFamily"}},typography:{baseFontSize:{$value:Mee,$type:"dimension"},baseLineHeight:{$value:wee,$type:"dimension"}},mode:{luminance:{$value:Cee,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};var kee=Object.freeze({__proto__:null,accentPaletteValue:pee,neutralPaletteValue:mee,secondaryPaletteValue:gee,tertiaryPaletteValue:vee,errorPaletteValue:bee,successPaletteValue:yee,warningPaletteValue:zee,baseLayerLuminanceValue:Cee,accentFillRestDeltaValue:0,accentFillHoverDeltaValue:4,accentFillActiveDeltaValue:-5,accentFillFocusDeltaValue:0,accentForegroundRestDeltaValue:0,accentForegroundHoverDeltaValue:6,accentForegroundActiveDeltaValue:-4,accentForegroundFocusDeltaValue:0,neutralFillRestDeltaValue:7,neutralFillHoverDeltaValue:10,neutralFillActiveDeltaValue:5,neutralFillFocusDeltaValue:0,neutralFillInputRestDeltaValue:0,neutralFillInputHoverDeltaValue:5,neutralFillInputActiveDeltaValue:0,neutralFillInputFocusDeltaValue:10,neutralFillStealthRestDeltaValue:0,neutralFillStealthHoverDeltaValue:5,neutralFillStealthActiveDeltaValue:3,neutralFillStealthFocusDeltaValue:0,neutralFillStrongRestDeltaValue:0,neutralFillStrongHoverDeltaValue:8,neutralFillStrongActiveDeltaValue:-5,neutralFillStrongFocusDeltaValue:0,neutralFillLayerRestDeltaValue:3,neutralStrokeRestDeltaValue:25,neutralStrokeHoverDeltaValue:40,neutralStrokeActiveDeltaValue:16,neutralStrokeFocusDeltaValue:25,neutralStrokeDividerRestDeltaValue:8,designTokens:See,prefix:"rapid",directionValue:Lee,disabledOpacityValue:.3,strokeWidthValue:1,focusStrokeWidthValue:2,baseHeightMultiplierValue:10,controlCornerRadiusValue:4,densityValue:0,designUnitValue:4,bodyFontValue:xee,typeRampBaseFontSizeValue:Mee,typeRampBaseLineHeightValue:wee,typeRampMinus1FontSizeValue:"13px",typeRampMinus1LineHeightValue:"19px",typeRampMinus2FontSizeValue:"12px",typeRampMinus2LineHeightValue:"18px",typeRampPlus1FontSizeValue:"15px",typeRampPlus1LineHeightValue:"21px",typeRampPlus2FontSizeValue:"16px",typeRampPlus2LineHeightValue:"22px",typeRampPlus3FontSizeValue:"17px",typeRampPlus3LineHeightValue:"23px",typeRampPlus4FontSizeValue:"18px",typeRampPlus4LineHeightValue:"24px",typeRampPlus5FontSizeValue:"19px",typeRampPlus5LineHeightValue:"25px",typeRampPlus6FontSizeValue:"20px",typeRampPlus6LineHeightValue:"26px"});(class extends Ch{constructor(){super(),XM(fee,kee,this)}}).compose({baseName:"design-system-provider",template:K`<slot></slot>`});const Eee=Me` ${QK} :host{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}dialog{position: var(--dialog-position, fixed);top: 0;bottom: 0;border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest));text-align: left;line-height: normal;box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);background-color: var(--dialog-background, var(--neutral-layer-1))}.top{display: flex;align-items: center;justify-content: space-between;color: var(--neutral-foreground-rest);margin-bottom: calc(var(--design-unit) * 2px);font-weight: 500}.bottom{display: flex;flex-wrap: wrap;justify-content: flex-end;color: var(--neutral-foreground-rest);gap: calc(var(--design-unit) * 2px)}:host slot:first-of-type{color: ${kd}}::slotted(rapid-button){margin-top: calc(var(--design-unit) * 4px - 1px)}slot[name='top']::slotted(*){margin: 0;font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-hint);font-weight: 700}.content-wrapper{min-width: var(--dialog-min-width);min-height: var(--dialog-min-height);height: fit-content;width: fit-content;max-width: var(--dialog-max-width);max-height: var(--dialog-max-height);display: flex;flex-direction: column;justify-content: space-between;align-items: stretch}.close-icon:hover svg{background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%)}.close-icon svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%)}.close-icon:hover svg g path{fill: var(--neutral-foreground-rest)}.close-icon:active svg{background-color: var(--neutral-layer-4)}.close-icon:active svg g path{fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%)}.header-controls{rapid-button{--base-height-multiplier: 8}rapid-button::part(control){padding: 0 calc((8 + var(--design-unit) * 1 * var(--density)) * 1px)}}`,$ee=bZ,Nee=JK,Aee=vZ;(class extends zZ{}).compose(Object.assign({baseName:"dialog",shadowOptions:Aee,styles:Eee,template:Nee},$ee));(class extends xZ{}).compose(Object.assign({baseName:"disclosure",template:(e,t)=>CZ(),styles:(e,t)=>Me` ${LZ()} :host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}:host([appearance='accent']) .invoker{padding: calc((10 + (var(--design-unit) * 2 * var(--density))) * 1px)}#disclosure-content{padding: 0 calc(var(--design-unit) * 4px) calc(var(--design-unit) * 4px);text-align: center}`,shadowOptions:vZ},MZ));(class extends kZ{}).compose(Object.assign({baseName:"divider",template:(e,t)=>wZ(),styles:(e,t)=>Me` ${SZ()}`,shadowOptions:EZ},$Z));(class extends TZ{}).compose({baseName:"dropdown-menu",styles:(e,t)=>Me` ${NZ("rapid")} .actions-menu{border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);gap: 0;margin: calc(var(--design-unit) * 1px) 0}rapid-menu{margin: 0 0 calc(var(--design-unit) * 1px) calc(var(--design-unit) * -2px);border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}`,template:OZ});const Oee=Me` ${RZ}`;function Tee(e,...t){let i="";return e.forEach((e,c)=>{i+=e,c<t.length&&(i+=t[c])}),i}(class extends UZ{}).compose({baseName:"environment-indicator",styles:Oee,template:IZ});const Ree={number:"rapid-number-field",text:"rapid-text-field",date:"rapid-text-field",datetimeLocal:"rapid-text-field",checkbox:"rapid-checkbox",button:"rapid-button",select:"rapid-select",option:"rapid-option",optgroup:"rapid-optgroup",radio:{input:"rapid-radio",group:"rapid-radio-group"}},Iee=Tee` rapid-select, rapid-text-field, rapid-number-field{min-width: 180px}rapid-button.btn{padding: 0}rapid-button.btn-success{background-color: var(--accent-fill-active);border-color: var(--accent-fill-active)}rapid-button.btn-danger{background-color: var(--error-color);border-color: var(--error-border-color)}rapid-select::part(listbox){max-height: 15vh}`,Dee=Tee` border: unset;border: 1px solid var(--focus-stroke-outer);padding: calc(var(--design-unit) * 2.5px);border-radius: 10px;margin: calc(var(--design-unit) * 1px);`,Fee={value:Tee` ${Iee} rapid-number-field, rapid-text-field{margin-bottom: 0}rapid-number-field::part(label){display: none}p.validation-msg{color: var(--neutral-foreground-rest)}`,rule:Tee` ${Iee} div.rule-container{${Dee}}div.rule-container.error{border-color: var(--error-border-color)}`,operator:Tee` ${Iee} rapid-select{min-width: 350px}`,field:Tee` ${Iee} rapid-select{min-width: 350px}`,group:Tee` ${Iee} div.rules-group-container{${Dee}}p.group-combinator-link{padding-left: calc(var(--design-unit) * 2.5px);color: var(--neutral-foreground-rest)}`};let Hee=class extends k6{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],Hee.prototype,"styles",void 0),Hee=Ou([Ce({name:"rapid-expression-builder",styles:B6.styles,template:B6.template})],Hee);let _ee=class extends J6{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],_ee.prototype,"styles",void 0),_ee=Ou([Ce({name:"rapid-rule-expression-builder",styles:B6.styles,template:B6.template})],_ee);let Pee=class extends s8{constructor(){super(...arguments),this.styles={customElements:Ree,customStyles:Fee}}};Ou([b],Pee.prototype,"styles",void 0),Pee=Ou([Ce({name:"rapid-value-expression-builder",styles:B6.styles,template:B6.template})],Pee);const Vee=Me` ${uQ} ::-webkit-scrollbar{width: calc(var(--design-unit) * 3px)}::-webkit-scrollbar-track{background: rgb(31 33 38)}::-webkit-scrollbar-thumb{width: 8px;border-radius: 10px;box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);background-color: var(--neutral-fill-rest);border: calc(var(--stroke-width) * 3px) solid var(--neutral-layer-4)}:host::part(select-file-button), :host::part(upload-file-button){margin: 0 0 calc(var(--design-unit) * 2px) calc(var(--design-unit) * 2px)}`,Bee=K` ${fQ("rapid")} `,Uee=CQ,jee=zQ;(class extends yQ{}).compose(Object.assign({baseName:"file-upload",shadowOptions:jee,styles:Vee,template:Bee},Uee));const qee=K` ${TQ("rapid")} `;(class extends IQ{}).compose({baseName:"filter-bar",template:qee,styles:(e,t)=>Me` ${AQ()} .toggle, .toggle-collapsed{background: var(--neutral-layer-4);color: var(--neutral-foreground-hint)}.toggle{border-top: calc(var(--stroke-width) * 2px) solid}.toggle:hover, .toggle-collapsed:hover{color: var(--accent-foreground-rest)}.filter-bar{background: var(--neutral-layer-3)}`});const Gee=K` ${kQ("rapid")} `;(class extends NQ{}).compose({baseName:"filter",template:Gee,styles:(e,t)=>Me` ${LQ} .filter-wrapper{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.close-icon{border: calc(var(--stroke-width) * 1px) solid transparent}.close-icon:hover{border-color: var(--error-color);background: color-mix(in srgb, var(--error-color), transparent 75%)}.close-icon:hover svg path{fill: var(--error-color)}rapid-select{margin-bottom: calc(var(--design-unit) * 2px)}.flex-row rapid-text-field, .flex-row rapid-select{flex: 1}`});(class extends BQ{}).compose(Object.assign({baseName:"flipper",template:(e,t)=>PQ(0,t),styles:(e,t)=>Me` ${VQ()} :host{color: var(--neutral-foreground-rest)}:host(:hover){color: var(--neutral-foreground-rest)}:host::before{background: color-mix(in srgb, var(--accent-fill-rest), transparent 50%);border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);color: var(--neutral-foreground-rest)}:host(:hover)::before{background: var(--accent-fill-rest);color: var(--neutral-foreground-rest)}`,shadowOptions:UQ},jQ));const Wee=Me` ${qQ} div.flyout{background-color: var(--neutral-layer-1);border-color: var(--neutral-stroke-rest);color: var(--neutral-foreground-rest);padding: calc(var(--design-unit) * 4px)}div.background{padding: calc(var(--design-unit) * 4px) 0}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height)}:host([position='left']) div.flyout{border-right-style: solid;border-right-width: calc(var(--stroke-width) * 1px)}:host([position='right']) div.flyout{border-left-style: solid;border-left-width: calc(var(--stroke-width) * 1px)}div.exit{cursor: pointer;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);display: flex;justify-content: center;align-items: center}div.content, div.footer{padding: 0 0 calc(var(--design-unit) * 2px)}div.exit:hover{background-color: var(--neutral-fill-hover);border-radius: calc(var(--stroke-width) * 3px)}`,Yee=K` ${GQ("rapid")} `,Kee=ZQ,Zee=KQ;(class extends YQ{}).compose(Object.assign({baseName:"flyout",shadowOptions:Zee,styles:Wee,template:Yee},Kee));const Qee={nextFlipper:K`<rapid-flipper @click="${e=>e.scrollToNext()}" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`,previousFlipper:K`<rapid-flipper @click="${e=>e.scrollToPrevious()}" direction="previous" aria-hidden="${e=>e.flippersHiddenFromAT}"></rapid-flipper>`};(class extends nX{}).compose(Object.assign({baseName:"horizontal-scroll",template:(e,t)=>sX(e,t),styles:(e,t)=>Me` ${aX()}`,shadowOptions:rX},Qee));const Xee=K` ${hX("rapid")} `;const Jee=pX,ete=fX;(class extends gX{}).compose(Object.assign({baseName:"icon",template:Xee,styles:(e,t)=>Me` ${dX()}`,shadowOptions:ete},Jee));(class extends MX{}).compose(Object.assign({baseName:"option",template:(e,t)=>LX(0,t),styles:(e,t)=>Me` ${xX()} :host{border-radius: 0;padding: 0 calc(var(--design-unit) * 4px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host(.selected), :host(:not([disabled])[aria-selected='true']:active), :host(:not([disabled])[aria-selected='true']:hover){background: var(--neutral-layer-2);color: var(--accent-fill-rest);font-weight: 500}`,shadowOptions:wX},SX));(class extends yX{}).compose(Object.assign({baseName:"listbox",template:(e,t)=>vX(),styles:(e,t)=>Me` ${bX(e)} :host{padding: 0;max-width: 300px;/** if removed max-width will be fit-content */}::slotted(*:last-child){border-bottom: none}`,shadowOptions:zX},CX));const tte=IX;(class extends RX{}).compose(Object.assign({baseName:"menu-item",template:(e,t)=>OX(e,t),styles:(e,t)=>Me` ${TX()} :host{margin: 0;--control-corner-radius: 0;background: var(--neutral-fill-stealth-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:hover){background: color-mix(in srgb, ${dd}, transparent 15%);border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${dd}, transparent 15%)}:host(:focus){background: var(--neutral-fill-stealth-hover)}:host(.indent-0){border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-stealth-hover)}/* UX team wants border: solid 1px #2E3339;background: #2E3339 */ /* tokens being used by fast background: ${dd} color: ${kd} */`,shadowOptions:tte},DX));(class extends $X{}).compose(Object.assign({baseName:"menu",template:(e,t)=>kX(),styles:(e,t)=>Me` ${EX()} :host{border: calc(var(--focus-stroke-width) * 1px) solid color-mix(in srgb, ${dd}, transparent 15%);padding: 0}`,shadowOptions:NX},AX));const ite=Me` ${Eee}`,cte=PX,ote=HX,ste=_X;(class extends VX{}).compose(Object.assign({baseName:"modal",shadowOptions:ste,styles:ite,template:ote},cte));const ate=Me` ${Vx} .root{min-width: 0}.control{height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px );min-height: 0;outline: none;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height);font-family: var(--body-font);box-sizing: border-box}:host(:focus-within:not([disabled])) .control{outline: none;border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}.control:hover:not(:focus):not([disabled]){outline: none;border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}#display-field{min-height: unset;padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px);font-family: var(--body-font), sans-serif;font-size: var(--type-ramp-base-font-size);background-color: transparent}#display-field:focus{outline: none;background: unset}#display-field:hover:not(:focus):not([disabled]){outline: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);left: calc( 100% - ((var(--base-height-multiplier) * (var(--design-unit) - 1)) + (var(--design-unit) - 2)) * 1px );background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}#arrow-icon{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);fill: var(--neutral-foreground-rest)}.label{color: var(--neutral-foreground-hint)}.options{border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);overflow-x: hidden}rapid-checkbox{border-bottom: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);padding: calc((var(--design-unit) + 1) * 1px) 0 calc((var(--design-unit) + 1) * 1px) calc((var(--design-unit) + 1) * 1px);margin: 0}rapid-checkbox:hover:not([disabled]){background: var(--neutral-layer-4)}rapid-checkbox::part(label){overflow-x: hidden;text-overflow: ellipsis;white-space: nowrap}rapid-checkbox[disabled]{cursor: not-allowed}`,nte=K` ${qx("rapid")} `;const rte=Yx,lte=Wx;(class extends Kx{}).compose(Object.assign({baseName:"multiselect",template:nte,styles:ate,shadowOptions:lte},rte));(class extends n8{}).compose({baseName:"notification-listener",template:a8,shadowOptions:{mode:"open",delegatesFocus:!0}});const dte=aJ,hte=BX,ute=sJ;(class extends oJ{}).compose(Object.assign({baseName:"number-field",template:hte,styles:(e,t)=>Me` :host{flex: 1 1 auto;box-sizing: border-box}:host([disabled]){opacity: var(--disabled-opacity);cursor: not-allowed}:host .control{height: 100%;width: 100%;border: none;background-color: transparent;padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-rest);font-size: var(--type-ramp-base-font-size);font-family: var(--body-font)}:host .root{display: flex;box-sizing: border-box;position: relative;align-items: center;border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:focus-within:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{display: block;color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0;font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);line-height: var(--type-ramp-base-line-height)}.label-hidden{margin: 0}.controls{position: absolute;right: 3px;width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center;flex-direction: column;cursor: pointer}.step-down, .step-up{width: 1em;height: 1em;margin: -2px}.step-up-glyph, .step-down-glyph{fill: var(--neutral-foreground-hint)}.control:focus-visible{outline: none}:host .control-field .control{width: 100%}${lQ}`,shadowOptions:ute},dte));(class extends lJ{}).compose({baseName:"optgroup",template:(e,t)=>rJ(),styles:(e,t)=>Me` ${nJ()}`});(class extends bJ{}).compose(Object.assign({baseName:"system-health-overlay",template:yJ,styles:zJ,shadowOptions:CJ},LJ));(class extends j1{}).compose(Object.assign({baseName:"progress-ring",template:(e,t)=>B1(0,t),styles:(e,t)=>Me` ${U1()}`,shadowOptions:q1},G1));(class extends uJ{}).compose(Object.assign({baseName:"progress",template:(e,t)=>dJ(0,t),styles:(e,t)=>Me` ${hJ()}`,shadowOptions:fJ},pJ));(class extends e2{}).compose(Object.assign({baseName:"radio-group",template:(e,t)=>X1(),styles:(e,t)=>Me` ${J1()}`,shadowOptions:t2},i2));(class extends K1{}).compose(Object.assign({baseName:"radio",template:(e,t)=>W1(0,t),styles:(e,t)=>Me` ${Y1()} :host{margin: 0}:host .control{background: transparent}:host([aria-checked='true']) .control{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}:host .label{padding-inline-start: calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:hover{background: transparent}:host([aria-checked='true']:not([disabled])) .control:hover{background: transparent;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-hover)}.checked-indicator, :host([aria-checked='true']:not([disabled])) .control:hover .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:Z1},Q1));let fte=class extends(zy.from(ze)){connectedCallback(){super.connectedCallback(),p.queueUpdate(()=>Ru(this,void 0,void 0,function*(){this.$router.config=this.config}))}};fte=Ou([Ce({name:"rapid-router"})],fte);const pte=Me` ${k2} :host{font-family: var(--body-font)}`,mte=K` ${W2("rapid")} `;(class extends K2{}).compose(Object.assign({baseName:"scheduler-cron-builder",template:mte,styles:pte,shadowOptions:Z2},Q2));const gte=Me` ${X2} :host{font-family: var(--body-font)}`,vte=K` ${J2("rapid")} `;(class extends t3{}).compose(Object.assign({baseName:"scheduler-timezone",template:vte,styles:gte,shadowOptions:i3},c3));const bte=Me` ${c2} :host{font-family: var(--body-font)}`,yte=K` ${o2("rapid")} `;(class extends a2{}).compose(Object.assign({baseName:"scheduler",template:yte,styles:bte,shadowOptions:n2},r2));(class extends f3{}).compose(Object.assign({baseName:"search-bar-combobox",template:(e,t)=>h3(0,t),styles:(e,t)=>Me` ${d3(e)} :host{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--neutral-stroke-rest));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not([open])){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}:host .listbox ::slotted(*:last-child){border-bottom: none}`,shadowOptions:p3},m3));const zte=Me` ${o3}`,Cte=K` ${s3("rapid")} `;(class extends n3{}).compose(Object.assign({baseName:"search-bar",template:Cte,styles:zte,shadowOptions:r3},l3));(class extends x3{}).compose(Object.assign({baseName:"section-navigator",template:v3,styles:(e,t)=>g3,shadowOptions:M3},w3));(class extends E3{}).compose(Object.assign({baseName:"segmented-control",template:(e,t)=>S3(),styles:(e,t)=>Me` ${k3()} :host{font-family: var(--body-font);margin: 0}:host ::slotted(*){transition: color 0.4s ease 0s}:host ::slotted(label){color: var(--neutral-foreground-rest)}:host ::slotted(rapid-segmented-item:first-of-type){border-radius: calc(var(--control-corner-radius) * 1px) 0 0 calc(var(--control-corner-radius) * 1px);border-right-width: 0}:host ::slotted(rapid-segmented-item:last-of-type){border-radius: 0 calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px) 0;border-left-width: 0}:host ::slotted(rapid-segmented-item:only-of-type){border-radius: calc(var(--control-corner-radius) * 1px);border-left-width: 1px;border-right-width: 1px}:host ::slotted(*[aria-checked='true']){background: var(--neutral-fill-rest);box-shadow: none;color: var(--neutral-foreground-rest)}:host([appearance='primary']) ::slotted(*[aria-checked='true']){background: var(--accent-fill-rest);border-color: transparent;box-shadow: none;color: var(--foreground-on-accent-rest)}`,shadowOptions:void 0},{}));(class extends K1{}).compose(Object.assign({baseName:"segmented-item",template:(e,t)=>$3(),styles:(e,t)=>Me` ${N3()} :host{color: var(--neutral-fill-strong-rest);font-size: var(--type-ramp-minus-2-font-size);font-weight: 500;border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);box-sizing: border-box;height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit) - 4) * 1px);padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin: 0}:host([aria-checked='true']){color: color-mix(in srgb, white, transparent 10%)}`,shadowOptions:void 0},{}));(class extends T3{}).compose(Object.assign({baseName:"select",template:(e,t)=>A3(0,t),styles:(e,t)=>Me` ${O3(e)} :host{border-radius: calc(var(--control-corner-radius) * 1px);border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:focus-within:not([disabled])){border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus)}:host(:hover:not([disabled]):not(.open)){border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host([open][position='below']) .listbox{padding: 0;margin-top: calc(${fr} * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);border-radius: calc(var(--control-corner-radius) * 1px)}.control{padding: 0 calc((var(--design-unit) - 2) * 1px) 0 calc(var(--design-unit) * 2px)}:host(:not([disabled])) .control:active{background: none}.indicator{width: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);height: calc((var(--base-height-multiplier) * (var(--design-unit) - 1)) * 1px);background-color: var(--dropdown-indicator-background, var(--neutral-fill-rest));border-radius: calc(var(--control-corner-radius) * 1px);display: flex;justify-content: center;align-items: center}.select-indicator{width: calc(var(--design-unit) * 3.5px);height: calc(var(--design-unit) * 3.5px);transition: all 0.35s;min-width: unset;min-height: unset}.selected-value{display: flex;align-items: center;height: calc(100% - (var(--design-unit) * 1px));padding: 0;margin: 0}:host(:focus-within:not([disabled])) .indicator{background-color: transparent}:host([open]) .select-indicator{transition: all 0.35s;transform: rotate(180deg)}::slotted([role='option']){margin: 0}`,shadowOptions:R3},I3));(class extends H3{}).compose(Object.assign({baseName:"skeleton",template:(e,t)=>D3(),styles:(e,t)=>Me` ${F3()} :host{--skeleton-fill: var( --neutral-fill-stealth-rest );/** value in ux doc rgba(242 242 242 / 0.1) */}`,shadowOptions:_3},P3));(class extends Y3{}).compose(Object.assign({baseName:"slider-label",template:(e,t)=>G3(),styles:(e,t)=>Me` ${W3()} .label{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);border-radius: calc(var(--control-corner-radius) * 1px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-4);background-color: var(--neutral-fill-strong-hover);color: var(--neutral-layer-4);text-align: center;font-size: var(--type-ramp-minus-1-font-size, 12px)}`,shadowOptions:K3},Z3));(class extends U3{}).compose(Object.assign({baseName:"slider",template:(e,t)=>V3(0,t),styles:(e,t)=>Me` ${B3()} .thumb-cursor{background: var(--accent-fill-rest);border-radius: calc(var(--control-corner-radius) * 2px)}.thumb-cursor:hover, .thumb-cursor:focus, .thumb-cursor:active{background: var(--accent-fill-rest);border-radius: transparent}:host(:focus-visible) .thumb-cursor{box-shadow: 0 0 0 0}.thumb-cursor:hover::after, .thumb-cursor:focus::after, .thumb-cursor:active::after{content: '';height: calc(var(--thumb-size) * 2px);width: calc(var(--thumb-size) * 2px);border-radius: calc(var(--control-corner-radius) * 4px);position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: -1}.thumb-cursor:hover::after{background-color: color-mix(in srgb, ${Al}, transparent 90%)}.thumb-cursor:focus::after{background-color: color-mix(in srgb, ${Al}, transparent 80%)}.thumb-cursor:active::after{background-color: color-mix(in srgb, ${Al}, transparent 70%)}.track{background-color: var(--neutral-fill-rest)}:host([orientation='horizontal']) .track .track-progress{background-color: var(--neutral-stroke-rest);height: calc((var(--track-width) + 2) * 1px) !important}:host([orientation='vertical']) .track .track-progress{background-color: var(--neutral-stroke-rest);width: calc((var(--track-width) + 2) * 1px) !important}`,shadowOptions:j3},q3));const Lte=Me` ${e4} .snackbar{border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);background-color: var(--neutral-layer-1);padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 4px)}:host([type='error']) .snackbar::after{background-color: var(--error-color)}.content{font-family: var(--body-font);font-size: var(--type-ramp-minus-2-font-size);color: var(--neutral-foreground-rest)}.action{gap: calc(var(--design-unit) * 2px)}`,xte=K` ${t4("rapid")} `,Mte=c4;(class extends o4{}).compose({baseName:"snackbar",shadowOptions:Mte,styles:Lte,template:xte});(class extends n4{}).compose({baseName:"stacking-icons",template:a4,styles:(e,t)=>Me` ${s4()}`});(class extends d4{}).compose({baseName:"status-pill",template:l4,styles:r4});(class extends b4{}).compose(Object.assign({baseName:"stepper-tab-panel",template:(e,t)=>v4(),shadowOptions:y4},z4));const wte=K` ${h4("rapid")} `;(class extends p4{}).compose(Object.assign({baseName:"stepper-tab",template:wte,styles:(e,t)=>Me` ${f4()} rapid-tree-item{--design-unit: 2.5;--neutral-fill-stealth-rest: var(--neutral-layer-3);--neutral-fill-stealth-hover: var(--fill-color);--neutral-fill-rest: var(--fill-color);--base-height-multiplier: 14.5;border-bottom: calc(var(--stroke-width) * 1px) solid var(--fill-color)}.completed-icon{color: var(--success-color)}.tree-item::part(positioning-region)::before{width: var(--tree-item-nested-width)}.stepper-icon{margin-right: calc(var(--design-unit) * 2px)}.error-icon{color: var(--error-color)}.step-number{font-size: var(--type-ramp-minus-1-font-size);border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest)}.step-title{font-size: var(--type-ramp-base-font-size)}.angle-icon{margin: 0 calc(var(--design-unit) * 4px)}:host([completed]) .step-number{border-color: var(--success-color);color: white;background-color: var(--success-color)}:host([completed]) .step-title{color: var(--success-color)}:host([error]) .step-number{border-color: var(--error-color);color: white;background-color: var(--error-color)}:host([error]) .step-title{color: var(--error-color)}`,shadowOptions:m4},g4));const Ste=Me` ${w8} :host{font-family: var(--body-font)}:host([orientation='horizontal']){height: 100%}.stepper-tab-panel{border: none;height: auto}:host([orientation='horizontal']) .stepper-tab-panel{height: 100%}.stepper-tab{background-color: var(--neutral-layer-3);border: none}.stepper-panel-container{padding: calc(var(--design-unit) * 4px)}.action-buttons-container{padding: calc(var(--design-unit) * 2px);width: auto;gap: calc(var(--design-unit) * 2px)}.stepper-tab-menu{margin-bottom: calc(var(--design-unit) * 4px)}.stepper-tab-progress{padding: calc(var(--design-unit) * 4px) 0}label{padding: 0 calc(var(--design-unit) * 2px);color: var(--neutral-foreground-hint)}`,kte=K` ${x8("rapid")} `;(class extends S8{}).compose(Object.assign({baseName:"stepper",template:kte,styles:Ste,shadowOptions:k8},E8));const Ete={switch:'<div class="checked-indicator" part="checked-indicator"></div>'};(class extends x4{}).compose(Object.assign({baseName:"switch",template:(e,t)=>C4(0,t),styles:(e,t)=>Me` ${L4()} :host{--primary-gradient-angle: -113.5deg}.switch{background: none;border-color: var(--neutral-stroke-rest)}.checked-indicator{background-color: var(--neutral-stroke-rest)}.switch:hover{border-color: var(--neutral-stroke-rest);background: none}:host([aria-checked='true']) .switch{background: none}:host([aria-checked='true']) .checked-indicator{background: var(--accent-fill-rest)}:host([aria-checked='true']:not([disabled])) .switch:hover, :host([aria-checked='true']:not([disabled])) .switch:active{background: none}:host([aria-checked='true']:not([disabled])) .switch:hover .checked-indicator, :host([aria-checked='true']:not([disabled])) .switch:active .checked-indicator{background: var(--accent-fill-rest)}`,shadowOptions:M4},Ete));(class extends T4{}).compose(Object.assign({baseName:"tab-panel",template:(e,t)=>A4(),styles:(e,t)=>Me` ${O4()} :host{padding: 0;background-color: var(--neutral-layer-card-container);border-radius: 0 0 var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px)) var(--card-corner-radius, calc(var(--control-corner-radius) * 1.5px));border-style: solid;border-width: var(--tabs-border-width, 1px);border-color: var(--tabs-border-color, var(--neutral-stroke-rest))}`,shadowOptions:R4},I4));(class extends E4{}).compose(Object.assign({baseName:"tab",template:(e,t)=>S4(),styles:(e,t)=>Me` ${k4()} :host{background-color: var(--neutral-layer-2);border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px);box-shadow: 0 0 15px 0 rgb(0 0 0 / 30%);margin-right: calc(var(--design-unit) * 5px);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host([aria-selected='true']), :host([aria-selected='true']:hover){background-color: var(--neutral-layer-4);font-weight: 700}`,shadowOptions:$4},N4));(class extends H4{}).compose(Object.assign({baseName:"tabs",template:(e,t)=>D4(0,t),styles:(e,t)=>Me` ${F4()} :host{background: var(--neutral-layer-3);border-radius: calc(var(--control-corner-radius) * 1px)}:host(:not([appearance='secondary'])){background: var(--rapid-layout-item-background, var(--neutral-layer-3));border-radius: var(--card-corner-radius, calc(var(--control-corner-radius) * 1px));border: var(--card-border, 0)}:host([appearance='secondary']){background: transparent}:host .tablist{padding: 0;display: grid;width: max-content;margin-top: 0}:host .tabpanel{height: 100%;min-height: 0}:host([appearance='secondary']) .tablist{margin-bottom: 0}:host .end, :host .start{padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);height: calc(100% - 1px);display: flex;align-items: center}::slotted([slot='tab']:hover){color: var(--neutral-foreground-rest);background: var(--neutral-layer-1)}::slotted([role='tab']){border-radius: calc(var(--control-corner-radius) * 1.5px) calc(var(--control-corner-radius) * 1.5px) 0 0;background: var(--tab-rest-background-color, var(--neutral-layer-4));padding: 0 calc((16 + var(--design-unit) * 2 * var(--density)) * 1px);margin-right: 2px;box-shadow: none;font-size: var(--type-ramp-minus-1-font-size);border-style: solid;border-width: var(--tab-rest-border-width, 1px);border-color: var(--tab-rest-border-color, transparent)}::slotted([role='tab'][aria-selected='true']:not([appearance='secondary'])){border-style: solid;border-width: var(--tab-active-border-width, 1px 1px 0 1px);border-color: var(--tab-active-border-color, var(--neutral-stroke-rest));background: var(--tab-active-background-color, var(--neutral-layer-card-container))}::slotted([role='tab'][aria-selected='true']){color: var(--accent-foreground-rest);background: var(--neutral-layer-card-container)}/* stylelint-disable selector-class-pattern */ .activeIndicator{display: none}:host([appearance='secondary']) .tablist .activeIndicator{display: block;height: 1px;margin-top: unset}::slotted([role='tab'][aria-selected='true'][appearance='secondary']){background: none}::slotted([role='tab'][appearance='secondary']){margin-left: 0;box-shadow: none;background: none}:host([appearance='secondary']:hover){color: var(--neutral-foreground-rest);background: none}:host([appearance='secondary']) ::slotted([role='tabpanel']){border: 0}`,shadowOptions:_4},P4));(class extends U4{}).compose(Object.assign({baseName:"text-area",template:(e,t)=>V4(),styles:(e,t)=>Me` ${B4()} :host{display: grid;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);border-radius: calc(var(--control-corner-radius) * 1px);padding: calc(var(--design-unit) * 2px)}:host(:hover:not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover)}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .control{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}`,shadowOptions:j4},q4));(class extends Y4{}).compose(Object.assign({baseName:"text-field",template:(e,t)=>G4(0,t),styles:(e,t)=>Me` ${W4()} :host{display: block;flex: 1 1 auto;box-sizing: border-box}:host .control{height: 100%;border-radius: calc(var(--control-corner-radius) * 1px);padding: 0 calc(var(--design-unit) * 2px)}:host .control-field .control{width: 100%}:host .root{border-style: solid;border-width: var(--neutral-stroke-width-rest, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-rest, var(--focus-stroke-outer));background-color: var(--neutral-fill-input-rest);height: calc( (((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px )}:host(:hover:not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-hover, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-hover, var(--neutral-foreground-rest));background: var(--neutral-fill-input-hover);box-shadow: none}:host(:is(:focus, :focus-within, :focus-visible):not([disabled])) .root{border-style: solid;border-width: var(--neutral-stroke-width-focus, 1px 1px 1px 1px);border-color: var(--neutral-stroke-fill-focus, var(--accent-fill-rest));background-color: var(--neutral-fill-input-focus);box-shadow: none}.label{color: var(--neutral-foreground-hint);font-weight: 700;margin: calc(var(--design-unit) * 2px) 0}.label-hidden{margin: 0}:host input::placeholder{color: var(--neutral-foreground-hint);opacity: 75%}`,shadowOptions:K4},Z4));const $te=Me` ${Q4} .toast{background-color: ${Cl};border-radius: calc(var(--control-corner-radius) * 2px) calc(var(--control-corner-radius) * 2px);border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest)}.top{align-items: flex-start}:host{font-size: var(--type-ramp-base-font-size);font-family: var(--body-font);line-height: var(--type-ramp-base-line-height);color: var(--neutral-foreground-rest)}.content{font-size: var(--type-ramp-minus-1-font-size)}.date{margin: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}.content-wrapper{padding: calc(var(--design-unit) * 2px)}.toast::after{background-color: var(--accent-fill-rest);border-radius: 0;height: calc(100% - calc(var(--design-unit) * 5px));margin: calc(var(--design-unit) * 0) calc(var(--design-unit) * 1px)}:host([notify='warning']) .toast::after{background-color: var(--warning-color)}:host([notify='success']) .toast::after{background-color: var(--success-color)}:host([notify='critical']) .toast::after, :host([notify='serious']) .toast::after, :host([notify='error']) .toast::after{background-color: var(--error-color)}`,Nte=t0,Ate=e0;(class extends i0{}).compose(Object.assign({baseName:"toast",shadowOptions:Ate,styles:$te,template:J4},Nte));(class extends s0{}).compose(Object.assign({baseName:"toolbar",template:(e,t)=>c0(0,t),styles:(e,t)=>Me` ${o0()} :host{align-items: center;color: var(--neutral-foreground-rest)}.positioning-region{align-items: center}`,shadowOptions:a0},n0));(class extends d0{}).compose(Object.assign({baseName:"tooltip",template:(e,t)=>r0(e),styles:(e,t)=>Me` ${l0(e)} :host{visibility: visible}.tooltip{padding: calc((var(--design-unit) - 1) * 2px) calc(var(--design-unit) * 2px);text-align: center;white-space: inherit;font-weight: 400}rapid-anchored-region.bottom .tooltip{margin-top: calc(var(--design-unit) * 1px);margin-left: calc(var(--design-unit) * 2px)}rapid-anchored-region.top.right .tooltip, rapid-anchored-region.bottom.right .tooltip{margin-left: 0}`,shadowOptions:h0},u0));const Ote={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"/>\n </svg>'};(class extends m0{}).compose(Object.assign({baseName:"tree-item",template:(e,t)=>f0(0,t),styles:(e,t)=>Me` ${p0(e)} :host{font-size: var(--type-ramp-base-font-size);color: var(--neutral-foreground-rest);background-color: transparent}:host(.nested) .expand-collapse-button{background: var(--neutral-fill-rest);border-radius: calc(var(--control-corner-radius) * 1px);width: calc(var(--design-unit) * 5px);height: calc(var(--design-unit) * 5px);margin-left: calc(var(--design-unit) * 2px)}:host([selected]) .positioning-region{background: var(--neutral-fill-stealth-active)}.positioning-region::before{width: calc(var(--design-unit) * 1px)}:host([selected])::after{background: var(--accent-fill-rest);background-origin: border-box;background-size: cover;background-repeat: no-repeat}:host([slot='item']) .content-region{margin-inline-start: calc(var(--design-unit) * 4px + var(--expand-collapse-button-size))}.expand-collapse-glyph{width: calc(var(--design-unit) * 3px);height: calc(var(--design-unit) * 3px)}`,shadowOptions:g0},Ote));(class extends z0{}).compose(Object.assign({baseName:"tree-view",template:(e,t)=>b0(),styles:(e,t)=>Me` ${y0()}`,shadowOptions:C0},L0));const Tte=K` ${M0("rapid")} `;function Rte(...e){return t=>{for(const i of e)"function"==typeof i?i(t):null!=i&&(i.current=t)}}(class extends E0{}).compose(Object.assign({baseName:"url-input",template:Tte,styles:(e,t)=>Me` ${x0()} a{color: var(--accent-fill-rest);opacity: 65%}a:hover{opacity: 100%}.url-input-link{font-family: var(--body-font);font-size: var(--type-ramp-base-font-size);top: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) / 2 * 1px)}`,shadowOptions:S0},k0));const Ite=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-accordion",{...o,ref:t},c)}),Dte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-accordion-item",{...o,ref:t},c)}),Fte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-actions-menu",{...o,ref:t},c)}),Hte=i.default.forwardRef(function(e,t){const{onCriteriaChanged:c,onValidationErrors:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("criteria-changed",t);const i=e=>l.current?.(e);return e.addEventListener("validation-errors",i),()=>{e.removeEventListener("criteria-changed",t),e.removeEventListener("validation-errors",i)}},[]),i.default.createElement("rapid-ai-criteria-search",{...a,ref:Rte(n,t)},s)}),_te=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-ai-indicator",{...o,ref:t},c)}),Pte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-anchor",{...o,ref:t},c)}),Vte=i.default.forwardRef(function(e,t){const{onLoaded:c,onPositionchange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("loaded",t);const i=e=>l.current?.(e);return e.addEventListener("positionchange",i),()=>{e.removeEventListener("loaded",t),e.removeEventListener("positionchange",i)}},[]),i.default.createElement("rapid-anchored-region",{...a,ref:Rte(n,t)},s)}),Bte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-avatar",{...o,ref:t},c)}),Ute=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-badge",{...o,ref:t},c)}),jte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-banner",{...o,ref:t},c)}),qte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-breadcrumb",{...o,ref:t},c)}),Gte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-breadcrumb-item",{...o,ref:t},c)}),Wte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-button",{...o,ref:t},c)}),Yte=i.default.forwardRef(function(e,t){const{onDateselected:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("dateselected",t),()=>{e.removeEventListener("dateselected",t)}},[]),i.default.createElement("rapid-calendar",{...s,ref:Rte(a,t)},o)}),Kte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-card",{...o,ref:t},c)}),Zte=i.default.forwardRef(function(e,t){const{onSelectionChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("selectionChange",t),()=>{e.removeEventListener("selectionChange",t)}},[]),i.default.createElement("rapid-categorized-multiselect",{...s,ref:Rte(a,t)},o)}),Qte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-checkbox",{...o,ref:t},c)}),Xte=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-combobox",{...s,ref:Rte(a,t)},o)}),Jte=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-connection-indicator",{...o,ref:t},c)}),eie=i.default.forwardRef(function(e,t){const{onValueChanged:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("value-changed",t),()=>{e.removeEventListener("value-changed",t)}},[]),i.default.createElement("rapid-date-picker",{...s,ref:Rte(a,t)},o)}),tie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-design-system-provider",{...o,ref:t},c)}),iie=i.default.forwardRef(function(e,t){const{onClose:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("close",t),()=>{e.removeEventListener("close",t)}},[]),i.default.createElement("rapid-dialog",{...s,ref:Rte(a,t)},o)}),cie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-disclosure",{...o,ref:t},c)}),oie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-divider",{...o,ref:t},c)}),sie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-dropdown-menu",{...o,ref:t},c)}),aie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-environment-indicator",{...o,ref:t},c)}),nie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(Hee)??"rapid-expression-builder",{...d,ref:Rte(h,t)},l)}),rie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(_ee)??"rapid-rule-expression-builder",{...d,ref:Rte(h,t)},l)}),lie=i.default.forwardRef(function(e,t){const{onAddGroup:c,onDelGroup:o,onAddRule:s,onDelRule:a,onUpdateGroup:n,onUpdateRule:r,children:l,...d}=e,h=i.default.useRef(null),u=i.default.useRef(c);u.current=c;const f=i.default.useRef(o);f.current=o;const p=i.default.useRef(s);p.current=s;const m=i.default.useRef(a);m.current=a;const g=i.default.useRef(n);g.current=n;const v=i.default.useRef(r);return v.current=r,i.default.useLayoutEffect(()=>{const e=h.current;if(!e)return;const t=e=>u.current?.(e);e.addEventListener("add-group",t);const i=e=>f.current?.(e);e.addEventListener("del-group",i);const c=e=>p.current?.(e);e.addEventListener("add-rule",c);const o=e=>m.current?.(e);e.addEventListener("del-rule",o);const s=e=>g.current?.(e);e.addEventListener("update-group",s);const a=e=>v.current?.(e);return e.addEventListener("update-rule",a),()=>{e.removeEventListener("add-group",t),e.removeEventListener("del-group",i),e.removeEventListener("add-rule",c),e.removeEventListener("del-rule",o),e.removeEventListener("update-group",s),e.removeEventListener("update-rule",a)}},[]),i.default.createElement(customElements.getName(Pee)??"rapid-value-expression-builder",{...d,ref:Rte(h,t)},l)}),die=i.default.forwardRef(function(e,t){const{onFileSelected:c,onSuccess:o,onErrorOut:s,onClear:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("file-selected",t);const i=e=>h.current?.(e);e.addEventListener("success",i);const c=e=>u.current?.(e);e.addEventListener("errorOut",c);const o=e=>f.current?.(e);return e.addEventListener("clear",o),()=>{e.removeEventListener("file-selected",t),e.removeEventListener("success",i),e.removeEventListener("errorOut",c),e.removeEventListener("clear",o)}},[]),i.default.createElement("rapid-file-upload",{...r,ref:Rte(l,t)},n)}),hie=i.default.forwardRef(function(e,t){const{onFilterChanged:c,onFilterCleared:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("filter-changed",t);const i=e=>l.current?.(e);return e.addEventListener("filter-cleared",i),()=>{e.removeEventListener("filter-changed",t),e.removeEventListener("filter-cleared",i)}},[]),i.default.createElement("rapid-filter",{...a,ref:Rte(n,t)},s)}),uie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-filter-bar",{...o,ref:t},c)}),fie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-flipper",{...o,ref:t},c)}),pie=i.default.forwardRef(function(e,t){const{onClosed:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("closed",t),()=>{e.removeEventListener("closed",t)}},[]),i.default.createElement("rapid-flyout",{...s,ref:Rte(a,t)},o)}),mie=i.default.forwardRef(function(e,t){const{onScrollstart:c,onScrollend:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("scrollstart",t);const i=e=>l.current?.(e);return e.addEventListener("scrollend",i),()=>{e.removeEventListener("scrollstart",t),e.removeEventListener("scrollend",i)}},[]),i.default.createElement("rapid-horizontal-scroll",{...a,ref:Rte(n,t)},s)}),gie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-icon",{...o,ref:t},c)}),vie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-listbox",{...o,ref:t},c)}),bie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-option",{...o,ref:t},c)}),yie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-menu",{...o,ref:t},c)}),zie=i.default.forwardRef(function(e,t){const{onOnMenuClick:c,onExpandedChange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("onMenuClick",t);const i=e=>l.current?.(e);return e.addEventListener("expanded-change",i),()=>{e.removeEventListener("onMenuClick",t),e.removeEventListener("expanded-change",i)}},[]),i.default.createElement("rapid-menu-item",{...a,ref:Rte(n,t)},s)}),Cie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-modal",{...o,ref:t},c)}),Lie=i.default.forwardRef(function(e,t){const{onSelectionChange:c,onClear:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("selectionChange",t);const i=e=>l.current?.(e);return e.addEventListener("clear",i),()=>{e.removeEventListener("selectionChange",t),e.removeEventListener("clear",i)}},[]),i.default.createElement("rapid-multiselect",{...a,ref:Rte(n,t)},s)}),xie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-notification-listener",{...o,ref:t},c)}),Mie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-number-field",{...o,ref:t},c)}),wie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-optgroup",{...o,ref:t},c)}),Sie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-progress",{...o,ref:t},c)}),kie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-progress-ring",{...o,ref:t},c)}),Eie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-radio",{...o,ref:t},c)}),$ie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-radio-group",{...o,ref:t},c)}),Nie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement(customElements.getName(fte)??"rapid-router",{...o,ref:t},c)}),Aie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler",{...o,ref:t},c)}),Oie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler-cron-builder",{...o,ref:t},c)}),Tie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-scheduler-timezone",{...o,ref:t},c)}),Rie=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-search-bar-combobox",{...s,ref:Rte(a,t)},o)}),Iie=i.default.forwardRef(function(e,t){const{onSelectionChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("selectionChange",t),()=>{e.removeEventListener("selectionChange",t)}},[]),i.default.createElement("rapid-search-bar",{...s,ref:Rte(a,t)},o)}),Die=i.default.forwardRef(function(e,t){const{onSectionNavigatorSetState:c,onSectionNavigatorSetStates:o,onSectionNavigatorClearState:s,onSectionNavigatorClearAllStates:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("section-navigator-set-state",t);const i=e=>h.current?.(e);e.addEventListener("section-navigator-set-states",i);const c=e=>u.current?.(e);e.addEventListener("section-navigator-clear-state",c);const o=e=>f.current?.(e);return e.addEventListener("section-navigator-clear-all-states",o),()=>{e.removeEventListener("section-navigator-set-state",t),e.removeEventListener("section-navigator-set-states",i),e.removeEventListener("section-navigator-clear-state",c),e.removeEventListener("section-navigator-clear-all-states",o)}},[]),i.default.createElement("rapid-section-navigator",{...r,ref:Rte(l,t)},n)}),Fie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-segmented-control",{...o,ref:t},c)}),Hie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-segmented-item",{...o,ref:t},c)}),_ie=i.default.forwardRef(function(e,t){const{onOpenChange:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("open-change",t),()=>{e.removeEventListener("open-change",t)}},[]),i.default.createElement("rapid-select",{...s,ref:Rte(a,t)},o)}),Pie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-skeleton",{...o,ref:t},c)}),Vie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-slider",{...o,ref:t},c)}),Bie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-slider-label",{...o,ref:t},c)}),Uie=i.default.forwardRef(function(e,t){const{onAutoDismiss:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("autoDismiss",t),()=>{e.removeEventListener("autoDismiss",t)}},[]),i.default.createElement("rapid-snackbar",{...s,ref:Rte(a,t)},o)}),jie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-stacking-icons",{...o,ref:t},c)}),qie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-status-pill",{...o,ref:t},c)}),Gie=i.default.forwardRef(function(e,t){const{onStepClick:c,onValidationFailure:o,onNextStep:s,onValidationSuccess:a,children:n,...r}=e,l=i.default.useRef(null),d=i.default.useRef(c);d.current=c;const h=i.default.useRef(o);h.current=o;const u=i.default.useRef(s);u.current=s;const f=i.default.useRef(a);return f.current=a,i.default.useLayoutEffect(()=>{const e=l.current;if(!e)return;const t=e=>d.current?.(e);e.addEventListener("step-click",t);const i=e=>h.current?.(e);e.addEventListener("validation-failure",i);const c=e=>u.current?.(e);e.addEventListener("next-step",c);const o=e=>f.current?.(e);return e.addEventListener("validation-success",o),()=>{e.removeEventListener("step-click",t),e.removeEventListener("validation-failure",i),e.removeEventListener("next-step",c),e.removeEventListener("validation-success",o)}},[]),i.default.createElement("rapid-stepper",{...r,ref:Rte(l,t)},n)}),Wie=i.default.forwardRef(function(e,t){const{onTabClicked:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("tab-clicked",t),()=>{e.removeEventListener("tab-clicked",t)}},[]),i.default.createElement("rapid-stepper-tab",{...s,ref:Rte(a,t)},o)}),Yie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-stepper-tab-panel",{...o,ref:t},c)}),Kie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-switch",{...o,ref:t},c)}),Zie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tab",{...o,ref:t},c)}),Qie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tab-panel",{...o,ref:t},c)}),Xie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tabs",{...o,ref:t},c)}),Jie=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-text-area",{...o,ref:t},c)}),ece=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-text-field",{...o,ref:t},c)}),tce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-toast",{...o,ref:t},c)}),ice=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-toolbar",{...o,ref:t},c)}),cce=i.default.forwardRef(function(e,t){const{onDismiss:c,children:o,...s}=e,a=i.default.useRef(null),n=i.default.useRef(c);return n.current=c,i.default.useLayoutEffect(()=>{const e=a.current;if(!e)return;const t=e=>n.current?.(e);return e.addEventListener("dismiss",t),()=>{e.removeEventListener("dismiss",t)}},[]),i.default.createElement("rapid-tooltip",{...s,ref:Rte(a,t)},o)}),oce=i.default.forwardRef(function(e,t){const{onExpandedChange:c,onSelectedChange:o,children:s,...a}=e,n=i.default.useRef(null),r=i.default.useRef(c);r.current=c;const l=i.default.useRef(o);return l.current=o,i.default.useLayoutEffect(()=>{const e=n.current;if(!e)return;const t=e=>r.current?.(e);e.addEventListener("expanded-change",t);const i=e=>l.current?.(e);return e.addEventListener("selected-change",i),()=>{e.removeEventListener("expanded-change",t),e.removeEventListener("selected-change",i)}},[]),i.default.createElement("rapid-tree-item",{...a,ref:Rte(n,t)},s)}),sce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-tree-view",{...o,ref:t},c)}),ace=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-url-input",{...o,ref:t},c)}),nce=i.default.forwardRef(function(e,t){const{children:c,...o}=e;return i.default.createElement("rapid-system-health-overlay",{...o,ref:t},c)});var rce=Object.freeze({__proto__:null,Accordion:Ite,AccordionItem:Dte,ActionsMenu:Fte,AiCriteriaSearch:Hte,AiIndicator:_te,Anchor:Pte,AnchoredRegion:Vte,Avatar:Bte,Badge:Ute,Banner:jte,Breadcrumb:qte,BreadcrumbItem:Gte,Button:Wte,Calendar:Yte,Card:Kte,CategorizedMultiselect:Zte,Checkbox:Qte,Combobox:Xte,ConnectionIndicator:Jte,DatePicker:eie,DesignSystemProvider:tie,Dialog:iie,Disclosure:cie,Divider:oie,DropdownMenu:sie,EnvironmentIndicator:aie,RapidExpressionBuilder:nie,RapidRuleExpressionBuilder:rie,RapidValueExpressionBuilder:lie,FileUpload:die,Filter:hie,FilterBar:uie,Flipper:fie,Flyout:pie,HorizontalScroll:mie,Icon:gie,Listbox:vie,ListboxOption:bie,Menu:yie,MenuItem:zie,Modal:Cie,Multiselect:Lie,NotificationListener:xie,NumberField:Mie,Optgroup:wie,Progress:Sie,ProgressRing:kie,Radio:Eie,RadioGroup:$ie,RapidRouter:Nie,Scheduler:Aie,SchedulerCronBuilder:Oie,SchedulerTimezone:Tie,SearchBarCombobox:Rie,SearchBar:Iie,SectionNavigator:Die,SegmentedControl:Fie,SegmentedItem:Hie,Select:_ie,Skeleton:Pie,Slider:Vie,SliderLabel:Bie,Snackbar:Uie,StackingIcons:jie,StatusPill:qie,Stepper:Gie,StepperTab:Wie,StepperTabPanel:Yie,Switch:Kie,Tab:Zie,TabPanel:Qie,Tabs:Xie,TextArea:Jie,TextField:ece,Toast:tce,Toolbar:ice,Tooltip:cce,TreeItem:oce,TreeView:sce,UrlInput:ace,SystemHealthOverlay:nce});if("undefined"!=typeof window){const e=window;e.rapid||(e.rapid={}),e.rapid.react=rce}}(React);
|