@openremote/or-attribute-input 1.31.1 → 1.32.0-snapshot.20260928140716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/umd/index.orbundle.js +1 -1
- package/package.json +13 -13
|
@@ -837,7 +837,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
|
|
|
837
837
|
:host([hidden]) {
|
|
838
838
|
display: none;
|
|
839
839
|
}
|
|
840
|
-
`,t7([eU({type:String})],t9.prototype,"value",void 0),t7([eU({type:Object})],t9.prototype,"options",void 0),t9=t7([ez("or-translate")],t9),(hV=pJ||(pJ={})).CREATE="CREATE",hV.UPDATE="UPDATE",hV.DELETE="DELETE",(hH=pQ||(pQ={})).LOW="LOW",hH.MEDIUM="MEDIUM",hH.HIGH="HIGH",(hW=p0||(p0={})).MANUAL="MANUAL",hW.CLIENT="CLIENT",hW.GLOBAL_RULESET="GLOBAL_RULESET",hW.REALM_RULESET="REALM_RULESET",hW.ASSET_RULESET="ASSET_RULESET",hW.AGENT="AGENT",(hq=p1||(p1={})).OPEN="OPEN",hq.ACKNOWLEDGED="ACKNOWLEDGED",hq.IN_PROGRESS="IN_PROGRESS",hq.RESOLVED="RESOLVED",hq.CLOSED="CLOSED",(hG=p2||(p2={})).BOTTOM_LEFT="BOTTOM_LEFT",hG.BOTTOM_RIGHT="BOTTOM_RIGHT",hG.TOP_LEFT="TOP_LEFT",hG.TOP_RIGHT="TOP_RIGHT",(hY=p3||(p3={})).CREATE="CREATE",hY.READ="READ",hY.UPDATE="UPDATE",hY.DELETE="DELETE",(hK=p5||(p5={})).NONE="NONE",hK.FORECAST="FORECAST",hK.SETPOINT="SETPOINT",(hX=p4||(p4={})).DISCONNECTED="DISCONNECTED",hX.CONNECTING="CONNECTING",hX.DISCONNECTING="DISCONNECTING",hX.CONNECTED="CONNECTED",hX.DISABLED="DISABLED",hX.WAITING="WAITING",hX.ERROR="ERROR",hX.STOPPED="STOPPED",(hZ=p6||(p6={})).REQUEST_START="REQUEST_START",hZ.REQUEST_REPEATING="REQUEST_REPEATING",hZ.REQUEST_CANCEL="REQUEST_CANCEL",hZ.READY="READY",hZ.COMPLETED="COMPLETED",hZ.RUNNING="RUNNING",hZ.CANCELLED="CANCELLED",(hJ=p8||(p8={})).TOGGLE="TOGGLE",hJ.INCREMENT="INCREMENT",hJ.DECREMENT="DECREMENT",hJ.NEGATE="NEGATE",(hQ=p7||(p7={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",hQ.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",hQ.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",hQ.INVALID_VALUE="INVALID_VALUE",hQ.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",hQ.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",hQ.CANNOT_PROCESS="CANNOT_PROCESS",hQ.QUEUE_FULL="QUEUE_FULL",hQ.UNKNOWN="UNKNOWN",hQ.ASSET_ID_MISSING="ASSET_ID_MISSING",hQ.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h0=p9||(p9={})).PUBLIC="PUBLIC",h0.SHARED="SHARED",h0.PRIVATE="PRIVATE",(h1=me||(me={})).OFF="OFF",h1.ONE_MIN="ONE_MIN",h1.FIVE_MIN="FIVE_MIN",h1.QUARTER="QUARTER",h1.ONE_HOUR="ONE_HOUR",(h2=mt||(mt={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h2.KEEP_LAYOUT="KEEP_LAYOUT",h2.REDIRECT="REDIRECT",h2.BLOCK_DEVICE="BLOCK_DEVICE",(h3=mi||(mi={})).CSV="CSV",h3.CSV_CROSSTAB="CSV_CROSSTAB",h3.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h5=mn||(mn={})).MINUTE="MINUTE",h5.HOUR="HOUR",h5.DAY="DAY",h5.WEEK="WEEK",h5.MONTH="MONTH",h5.YEAR="YEAR",(h4=mr||(mr={})).MIN="MIN",h4.AVG="AVG",h4.MAX="MAX",h4.DIFFERENCE="DIFFERENCE",h4.COUNT="COUNT",h4.SUM="SUM",h4.MODE="MODE",h4.MEDIAN="MEDIAN",(h6=mo||(mo={})).TERMINATING="TERMINATING",h6.DISABLED="DISABLED",h6.ALREADY_CONNECTED="ALREADY_CONNECTED",h6.UNRECOGNISED="UNRECOGNISED",h6.PERMANENT_ERROR="PERMANENT_ERROR",h6.SYNC_ERROR="SYNC_ERROR",(h8=ma||(ma={})).HTTPS="HTTPS",h8.HTTP="HTTP",h8.TCP="TCP",(h7=ms||(ms={})).GET="GET",h7.POST="POST",h7.PUT="PUT",h7.DELETE="DELETE",h7.OPTIONS="OPTIONS",h7.PATCH="PATCH",(h9=ml||(ml={})).KEYCLOAK="KEYCLOAK",h9.NONE="NONE",(pe=mc||(mc={})).WEBSOCKET="WEBSOCKET",pe.POLLING="POLLING",(pt=md||(md={})).INTERNAL="INTERNAL",pt.CLIENT="CLIENT",pt.GLOBAL_RULESET="GLOBAL_RULESET",pt.REALM_RULESET="REALM_RULESET",pt.ASSET_RULESET="ASSET_RULESET",(pi=mu||(mu={})).REALM="REALM",pi.USER="USER",pi.ASSET="ASSET",pi.CUSTOM="CUSTOM",(pn=mh||(mh={})).NORMAL="NORMAL",pn.HIGH="HIGH",(pr=mp||(mp={})).DEVICE="DEVICE",pr.TOPIC="TOPIC",pr.CONDITION="CONDITION",(po=mm||(mm={})).ALWAYS="ALWAYS",po.ONCE="ONCE",po.HOURLY="HOURLY",po.DAILY="DAILY",po.WEEKLY="WEEKLY",po.MONTHLY="MONTHLY",po.ANNUALLY="ANNUALLY",(pa=mf||(mf={})).TITLE="TITLE",pa.SOURCE="SOURCE",pa.STATUS="STATUS",pa.SENT_ON="SENT_ON",pa.DELIVERED_ON="DELIVERED_ON",(ps=mg||(mg={})).MESSAGE_INVALID="MESSAGE_INVALID",ps.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ps.UNAUTHORIZED="UNAUTHORIZED",ps.FORBIDDEN="FORBIDDEN",ps.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ps.CONFIG_DISABLED="CONFIG_DISABLED",ps.USER_DISABLED="USER_DISABLED",ps.SERVER_ERROR="SERVER_ERROR",ps.ASSET_ERROR="ASSET_ERROR",ps.SERVER_BUSY="SERVER_BUSY",(pl=mb||(mb={})).PRIVATE="PRIVATE",pl.PROTECTED="PROTECTED",pl.PUBLIC="PUBLIC",(pc=m_||(m_={})).EXACT="EXACT",pc.BEGIN="BEGIN",pc.END="END",pc.CONTAINS="CONTAINS",(pd=mv||(mv={})).EQUALS="EQUALS",pd.GREATER_THAN="GREATER_THAN",pd.GREATER_EQUALS="GREATER_EQUALS",pd.LESS_THAN="LESS_THAN",pd.LESS_EQUALS="LESS_EQUALS",pd.BETWEEN="BETWEEN",(pu=my||(my={})).CREATED_ON="CREATED_ON",pu.NAME="NAME",pu.ASSET_TYPE="ASSET_TYPE",pu.PARENT_ID="PARENT_ID",pu.REALM="REALM",(ph=mx||(mx={})).RESTRICTED="RESTRICTED",ph.LINKED="LINKED",ph.REALM="REALM",(pp=mw||(mw={})).AT_LEAST_ONE="AT_LEAST_ONE",pp.ALL="ALL",pp.NONE="NONE",(pm=mF||(mF={})).AND="AND",pm.OR="OR",(pf=mE||(mE={})).CREATED_ON="CREATED_ON",pf.FIRST_NAME="FIRST_NAME",pf.LAST_NAME="LAST_NAME",pf.USERNAME="USERNAME",pf.EMAIL="EMAIL",(pg=mC||(mC={})).STOPPED="STOPPED",pg.RUNNING="RUNNING",pg.ERROR="ERROR",(pb=mk||(mk={})).JAVASCRIPT="JAVASCRIPT",pb.GROOVY="GROOVY",pb.JSON="JSON",pb.FLOW="FLOW",(p_=mA||(mA={})).READY="READY",p_.DEPLOYED="DEPLOYED",p_.COMPILATION_ERROR="COMPILATION_ERROR",p_.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",p_.EXECUTION_ERROR="EXECUTION_ERROR",p_.LOOP_ERROR="LOOP_ERROR",p_.DISABLED="DISABLED",p_.PAUSED="PAUSED",p_.EXPIRED="EXPIRED",p_.REMOVED="REMOVED",p_.EMPTY="EMPTY",(pv=mT||(mT={})).SUNRISE="SUNRISE",pv.SUNSET="SUNSET",pv.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",pv.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",pv.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",pv.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",pv.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",pv.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",pv.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",pv.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",pv.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",pv.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",pv.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",pv.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",pv.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",pv.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",pv.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",pv.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",pv.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",pv.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(py=mS||(mS={})).NUMBER="NUMBER",py.NUMBER_ARRAY="NUMBER_ARRAY",py.STRING="STRING",py.BOOLEAN="BOOLEAN",py.TRIGGER="TRIGGER",py.COLOR="COLOR",py.ANY="ANY",(px=mI||(mI={})).NEW_LINE="NEW_LINE",px.SPACER="SPACER",(pw=mD||(mD={})).INPUT="INPUT",pw.PROCESSOR="PROCESSOR",pw.OUTPUT="OUTPUT",pw.THEN="THEN",(pF=mR||(mR={})).TEXT="TEXT",pF.MULTILINE="MULTILINE",pF.NUMBER="NUMBER",pF.DROPDOWN="DROPDOWN",pF.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pF.CHECKBOX="CHECKBOX",pF.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pF.COLOR="COLOR",pF.DATE="DATE",(pE=mM||(mM={})).ADD="ADD",pE.ADD_OR_REPLACE="ADD_OR_REPLACE",pE.REPLACE="REPLACE",pE.DELETE="DELETE",pE.CLEAR="CLEAR",(pC=mO||(mO={})).PER_ASSET="PER_ASSET",pC.GLOBAL="GLOBAL",(pk=mL||(mL={})).READ_ADMIN="read:admin",pk.READ_LOGS="read:logs",pk.READ_USERS="read:users",pk.READ_MAP="read:map",pk.READ_ASSETS="read:assets",pk.READ_RULES="read:rules",pk.READ_INSIGHTS="read:insights",pk.READ_ALARMS="read:alarms",pk.READ_NOTIFICATIONS="read:notifications",pk.READ_SERVICES="read:services",pk.READ_TUNNELS="read:tunnels",pk.WRITE_SERVICES="write:services",pk.WRITE_USER="write:user",pk.WRITE_ADMIN="write:admin",pk.WRITE_LOGS="write:logs",pk.WRITE_ASSETS="write:assets",pk.WRITE_ATTRIBUTES="write:attributes",pk.WRITE_RULES="write:rules",pk.WRITE_INSIGHTS="write:insights",pk.WRITE_ALARMS="write:alarms",pk.WRITE_NOTIFICATIONS="write:notifications",pk.WRITE_TUNNELS="write:tunnels",pk.READ="read",pk.WRITE="write",(pA=mP||(mP={})).REGISTER="REGISTER",pA.UPDATE="UPDATE",pA.DEREGISTER="DEREGISTER",(pT=m$||(m$={})).AVAILABLE="AVAILABLE",pT.UNAVAILABLE="UNAVAILABLE",(pS=mB||(mB={})).ASSET="ASSET",pS.AGENT="AGENT",pS.NOTIFICATION="NOTIFICATION",pS.ALARM="ALARM",pS.RULES="RULES",pS.PROTOCOL="PROTOCOL",pS.GATEWAY="GATEWAY",pS.MODEL_AND_VALUES="MODEL_AND_VALUES",pS.API="API",pS.DATA="DATA",(pI=mN||(mN={})).INFO="INFO",pI.WARN="WARN",pI.ERROR="ERROR",(pD=mz||(mz={})).NUMERIC="numeric",pD.DIGIT_2="2-digit",pD.FULL="full",pD.LONG="long",pD.MEDIUM="medium",pD.SHORT="short",pD.NARROW="narrow",(pR=mj||(mj={})).SECONDLY="SECONDLY",pR.MINUTELY="MINUTELY",pR.HOURLY="HOURLY",pR.DAILY="DAILY",pR.WEEKLY="WEEKLY",pR.MONTHLY="MONTHLY",pR.YEARLY="YEARLY",(pM=mU||(mU={})).OMIT="OMIT",pM.BACKWARD="BACKWARD",pM.FORWARD="FORWARD",(pO=mV||(mV={})).JAPANESE="JAPANESE",pO.BUDDHIST="BUDDHIST",pO.ROC="ROC",pO.ISLAMIC="ISLAMIC",pO.ISO8601="ISO8601",pO.CHINESE="CHINESE",pO.ETHIOPIC="ETHIOPIC",pO.HEBREW="HEBREW",pO.GREGORIAN="GREGORIAN",(pL=mH||(mH={})).SU="SU",pL.MO="MO",pL.TU="TU",pL.WE="WE",pL.TH="TH",pL.FR="FR",pL.SA="SA",(pP=mW||(mW={})).PEOPLECOUNTERASSET="PeopleCounterAsset",pP.MAILAGENT="MailAgent",pP.UDPAGENT="UDPAgent",pP.ROOMASSET="RoomAsset",pP.CITYASSET="CityAsset",pP.VENTILATIONASSET="VentilationAsset",pP.TRADFRILIGHTASSET="TradfriLightAsset",pP.CONSOLEASSET="ConsoleAsset",pP.PRESENCESENSORASSET="PresenceSensorAsset",pP.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",pP.LIGHTASSET="LightAsset",pP.KNXAGENT="KNXAgent",pP.THETHINGSSTACKAGENT="TheThingsStackAgent",pP.PLUGASSET="PlugAsset",pP.CHIRPSTACKAGENT="ChirpStackAgent",pP.WEATHERASSET="WeatherAsset",pP.THINGASSET="ThingAsset",pP.WEBSOCKETAGENT="WebsocketAgent",pP.TCPAGENT="TCPAgent",pP.GATEWAYASSET="GatewayAsset",pP.SERIALAGENT="SerialAgent",pP.BLUETOOTHMESHAGENT="BluetoothMeshAgent",pP.PARKINGASSET="ParkingAsset",pP.TRADFRIPLUGASSET="TradfriPlugAsset",pP.SIMULATORAGENT="SimulatorAgent",pP.SNMPAGENT="SNMPAgent",pP.GROUPASSET="GroupAsset",pP.BUILDINGASSET="BuildingAsset",pP.MODBUSSERIALAGENT="ModbusSerialAgent",pP.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",pP.MQTTAGENT="MQTTAgent",pP.VELBUSTCPAGENT="VelbusTCPAgent",pP.ARTNETLIGHTASSET="ArtnetLightAsset",pP.VELBUSSERIALAGENT="VelbusSerialAgent",pP.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",pP.MICROPHONEASSET="MicrophoneAsset",pP.MODBUSTCPAGENT="ModbusTcpAgent",pP.ZWAVEAGENT="ZWaveAgent",pP.HTTPAGENT="HTTPAgent",pP.DOORASSET="DoorAsset",pP.THERMOSTATASSET="ThermostatAsset",pP.SHIPASSET="ShipAsset",(p$=mq||(mq={})).COLOURRGB="colourRGB",p$.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",p$.PRICEHOURLY="priceHourly",p$.MQTTPORT="MQTTPort",p$.PINGDISABLED="pingDisabled",p$.FLOW="flow",p$.CHILDASSETTYPE="childAssetType",p$.LASTACCESS="lastAccess",p$.POSITION="position",p$.NETWORKKEY="networkKey",p$.UNIVERSE="universe",p$.ROUTINGMODE="routingMode",p$.MSSINUMBER="MSSINumber",p$.LASTWILLRETAIN="lastWillRetain",p$.LASTWILLTOPIC="lastWillTopic",p$.SERIALBAUDRATE="serialBaudrate",p$.SUBSCRIBEQOS="subscribeQos",p$.LEDCOUNT="lEDCount",p$.LOCKED="locked",p$.CLOUDCOVERAGE="cloudCoverage",p$.BASEURL="baseURL",p$.PROTOCOL="protocol",p$.REQUIREDVALUES="requiredValues",p$.REGION="region",p$.CONSOLEPLATFORM="consolePlatform",p$.GATEWAYSTATUS="gatewayStatus",p$.NO2LEVEL="NO2Level",p$.ATMOSPHERICPRESSURE="atmosphericPressure",p$.SERIALPORT="serialPort",p$.APPLICATIONID="applicationId",p$.TAGS="tags",p$.UNLOCK="unlock",p$.CHECKINTERVALSECONDS="checkIntervalSeconds",p$.LOCATION="location",p$.CLIENTSECRET="clientSecret",p$.WINDDIRECTION="windDirection",p$.WINDSPEED="windSpeed",p$.PARTICLESPM10="particlesPM10",p$.APPLICATIONKEY="applicationKey",p$.LENGTH="length",p$.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",p$.USERNAMEPASSWORD="usernamePassword",p$.WATERLEVEL="waterLevel",p$.CONNECTHEADERS="connectHeaders",p$.CONSOLENAME="consoleName",p$.WEBSOCKETQUERY="websocketQuery",p$.PREFERHTML="preferHTML",p$.PARITY="parity",p$.COOLING="cooling",p$.POLLINGMILLIS="pollingMillis",p$.SOILTEMPERATURE="soilTemperature",p$.SUNIRRADIANCE="sunIrradiance",p$.MESSAGEMAXLENGTH="messageMaxLength",p$.WINDGUSTSPEED="windGustSpeed",p$.LIGHTID="lightId",p$.PROXYADDRESS="proxyAddress",p$.REQUESTQUERYPARAMETERS="requestQueryParameters",p$.MQTTHOST="MQTTHost",p$.SECUREGRPC="secureGRPC",p$.MODEL="model",p$.STREET="street",p$.MANUFACTURER="manufacturer",p$.DELETEPROCESSEDMAIL="deleteProcessedMail",p$.RESUMESESSION="resumeSession",p$.ONOFF="onOff",p$.APIKEY="ApiKey",p$.CITY="city",p$.PRESENCE="presence",p$.SPACESOCCUPIED="spacesOccupied",p$.STARTTLS="startTLS",p$.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",p$.WEBSOCKETPATH="websocketPath",p$.AGENTSTATUS="agentStatus",p$.PRICEDAILY="priceDaily",p$.COUNTGROWTHMINUTE="countGrowthMinute",p$.IMONUMBER="IMONumber",p$.ATTRIBUTION="Attribution",p$.TENANTID="tenantId",p$.REQUESTHEADERS="requestHeaders",p$.HOST="host",p$.COUNTOUTMINUTE="countOutMinute",p$.MESSAGECHARSET="messageCharset",p$.CERTIFICATEALIAS="certificateAlias",p$.EMAIL="email",p$.BINDPORT="bindPort",p$.CONSOLEVERSION="consoleVersion",p$.PARTICLESPM1="particlesPM1",p$.MTU="mtu",p$.SPEED="speed",p$.MESSAGESTRIPDELIMITER="messageStripDelimiter",p$.AREA="area",p$.COUNTRY="country",p$.SHIPTYPE="shipType",p$.CONNECTSUBSCRIPTIONS="connectSubscriptions",p$.RELATIVEHUMIDITY="relativeHumidity",p$.SOURCEADDRESS="sourceAddress",p$.RAINFALL="rainfall",p$.OAUTHGRANT="oAuthGrant",p$.OZONELEVEL="ozoneLevel",p$.SEQUENCENUMBER="sequenceNumber",p$.COUNTINMINUTE="countInMinute",p$.PORT="port",p$.SUNALTITUDE="sunAltitude",p$.COUNTOUT="countOut",p$.ROOMNUMBER="roomNumber",p$.TUNNELINGSUPPORTED="tunnelingSupported",p$.ENINUMBER="ENINumber",p$.PARTICLESPM2_5="particlesPM2_5",p$.AGENTDISABLED="agentDisabled",p$.DISABLED="disabled",p$.COUNTIN="countIn",p$.MESSAGESOURCEADDRESS="messageSourceAddress",p$.PROVISIONWEATHERASSET="ProvisionWeatherAsset",p$.TIMEINJECTIONINTERVAL="timeInjectionInterval",p$.TEMPERATURESETPOINT="temperatureSetpoint",p$.CONSOLEPROVIDERS="consoleProviders",p$.COUNTTOTAL="countTotal",p$.SPACESBUFFER="spacesBuffer",p$.DEVICECONFIG="deviceConfig",p$.SPACESTOTAL="spacesTotal",p$.BINDHOST="bindHost",p$.FANSPEED="fanSpeed",p$.MESSAGECONVERTBINARY="messageConvertBinary",p$.NOTES="notes",p$.MAILFOLDERNAME="mailFolderName",p$.MESSAGEDELIMITERS="messageDelimiters",p$.TEMPERATURE="temperature",p$.SUNZENITH="sunZenith",p$.SNMPVERSIONVALUE="SNMPVersionValue",p$.BRIGHTNESS="brightness",p$.POSTALCODE="postalCode",p$.SPACESOPEN="spacesOpen",p$.HUMIDITY="humidity",p$.SOUNDLEVEL="soundLevel",p$.SECUREMODE="secureMode",p$.DIRECTION="direction",p$.STOPBITS="stopbits",p$.UVINDEX="uVIndex",p$.CONNECTURL="connectURL",p$.CLIENTID="clientId",p$.NATMODE="NATMode",p$.UPDATEONWRITE="updateOnWrite",p$.LASTWILLPAYLOAD="lastWillPayload",p$.GROUPID="groupId",p$.FOLLOWREDIRECTS="followRedirects",p$.SUNAZIMUTH="sunAzimuth",p$.MESSAGECONVERTHEX="messageConvertHex",p$.WEBSOCKETMODE="websocketMode",p$.COLOURTEMPERATURE="colourTemperature",p$.PUBLISHQOS="publishQos",p$.DATABITS="dataBits",(pB=mG||(mG={})).FORMAT="format",pB.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",pB.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",pB.SECRET="secret",pB.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",pB.ATTRIBUTELINKS="attributeLinks",pB.RULERESETIMMEDIATE="ruleResetImmediate",pB.RULESTATE="ruleState",pB.AGENTLINKCONFIG="agentLinkConfig",pB.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",pB.FORECAST="forecast",pB.STOREDATAPOINTS="storeDataPoints",pB.LABEL="label",pB.CONSTRAINTS="constraints",pB.UNITS="units",pB.USERCONNECTED="userConnected",pB.SHOWONDASHBOARD="showOnDashboard",pB.READONLY="readOnly",pB.MULTILINE="multiline",pB.ACCESSPUBLICWRITE="accessPublicWrite",pB.MOMENTARY="momentary",pB.AGENTLINK="agentLink",pB.ACCESSRESTRICTEDREAD="accessRestrictedRead",pB.ACCESSPUBLICREAD="accessPublicRead",(pN=mY||(mY={})).ASSETQUERY="assetQuery",pN.WSURL="WS_URL",pN.COLOURRGB="colourRGB",pN.VALUEFORMAT="valueFormat",pN.TEXT="text",pN.BYTE="byte",pN.USERNAMEANDPASSWORD="usernameAndPassword",pN.HTTPURL="HTTP_URL",pN.ATTRIBUTELINK="attributeLink",pN.ASSETID="assetID",pN.NUMBERMAP="numberMap",pN.HTTPMETHOD="HTTPMethod",pN.ATTRIBUTESTATE="attributeState",pN.POSITIVENUMBER="positiveNumber",pN.POSITIVEINTEGER="positiveInteger",pN.EXECUTIONSTATUS="executionStatus",pN.BIGINTEGER="bigInteger",pN.VALUEDESCRIPTOR="valueDescriptor",pN.PERIODDURATIONISO8601="periodDurationISO8601",pN.LONG="long",pN.DATEANDTIME="dateAndTime",pN.BOOLEANMAP="booleanMap",pN.MQTTQOS="MQTTQos",pN.NEGATIVEINTEGER="negativeInteger",pN.TCPIPPORTNUMBER="TCP_IPPortNumber",pN.GEOJSONPOINT="GEO_JSONPoint",pN.SNMPVERSION="SNMPVersion",pN.ASSETTYPE="assetType",pN.JSONOBJECT="JSONObject",pN.INTEGERMAP="integerMap",pN.BIGNUMBER="bigNumber",pN.IPADDRESS="IPAddress",pN.EMAIL="email",pN.TIMESTAMP="timestamp",pN.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",pN.ATTRIBUTEREFERENCE="attributeReference",pN.UUID="UUID",pN.INTEGER="integer",pN.OAUTHGRANT="oAuthGrant",pN.NUMBER="number",pN.DEVICECONFIGMAP="DeviceConfigMap",pN.TEXTMAP="textMap",pN.WEBSOCKETSUBSCRIPTION="websocketSubscription",pN.BOOLEAN="boolean",pN.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",pN.FORECASTCONFIGURATION="forecastConfiguration",pN.TIMEDURATIONISO8601="timeDurationISO8601",pN.TIMESTAMPISO8601="timestampISO8601",pN.CONSOLEPROVIDERS="consoleProviders",pN.MULTIVALUEDTEXTMAP="multivaluedTextMap",pN.NEGATIVENUMBER="negativeNumber",pN.PARITYBIT="Paritybit",pN.JSON="JSON",pN.CRONEXPRESSION="CRONExpression",pN.INTEGERBYTE="integerByte",pN.AGENTLINK="agentLink",pN.DIRECTION="direction",pN.HOSTORIPADDRESS="hostOrIPAddress",pN.STOPBITS="Stopbits",pN.CALENDAREVENT="calendarEvent",pN.CONNECTIONSTATUS="connectionStatus",pN.VALUECONSTRAINT="valueConstraint",(pz=mK||(mK={})).MONTH="month",pz.MILE_SCANDINAVIAN="mile_scandinavian",pz.VAR="var",pz.OUNCE="ounce",pz.HECTARE="hectare",pz.YARD="yard",pz.YEAR="year",pz.GIGA="giga",pz.JOULE="joule",pz.VOLT="volt",pz.HERTZ="hertz",pz.MILE="mile",pz.DEGREE="degree",pz.KILO="kilo",pz.BTU="btu",pz.TERA="tera",pz.FOOT="foot",pz.MEGA="mega",pz.KELVIN="kelvin",pz.CARBON="carbon",pz.DECIBEL_ATTENUATED="decibel_attenuated",pz.INCH="inch",pz.SQUARED="squared",pz.PERCENTAGE="percentage",pz.IN_HG="inch_mercury",pz.CENTI="centi",pz.GRAM="gram",pz.CUBED="cubed",pz.DAY="day",pz.RADIAN="radian",pz.OHM="ohm",pz.MINUTE="minute",pz.PART_PER_MILLION="ppm",pz.AMP="amp",pz.MASS_POUND="pound",pz.KNOT="knot",pz.METRE="metre",pz.LITRE="litre",pz.FLUID_OUNCE="fluid_ounce",pz.HOUR="hour",pz.ACRE="acre",pz.CELSIUS="celsius",pz.RPM="rpm",pz.PASCAL="pascal",pz.DECIBEL="decibel",pz.LUMEN="lumen",pz.WEEK="week",pz.FAHRENHEIT="fahrenheit",pz.WATT="watt",pz.GALLON="gallon",pz.LUX="lux",pz.MILLI="milli",pz.BAR="bar",pz.HECTO="hecto",pz.PEAK="peak",pz.SECOND="second",pz.MICRO="micro",pz.PER="per",pz.STONE="stone",mX||(mX={});class ie{static getAssetDescriptors(){return ie._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(i=>i.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let i=this._assetTypeInfos.find(i=>i.assetDescriptor.name===t);return i?i.assetDescriptor:void 0}static getAttributeDescriptor(t,i){if(!t)return;let n=this.getAssetTypeInfo(i||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(i=>i.name===t)}static getValueDescriptor(t){let i;if(!t)return;if(t.endsWith("[]"))for(i=0;t.endsWith("[]");)t=t.substring(0,t.length-2),i++;let n=this._valueDescriptors.find(i=>i.name===t);return n&&i&&(n=Object.assign(Object.assign({},n),{arrayDimensions:i})),n}static resolveValueDescriptor(t,i){let n;return i&&("string"==typeof i&&(n=ie.getValueDescriptor(i)),n=i.jsonType?i:ie.getValueDescriptor(i.type)),!n&&t&&(n=ie.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let i=1,n=t.find(t=>null!=t);for(;Array.isArray(n);)n=n.find(t=>null!=t),i++;let r=this.resolveValueTypeFromValue(n);if(!r)return;for(;i>0;)r+="[]",i--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,i,n){let r,o;if(i&&"string"!=typeof i)r=i;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof i&&(r=this.getAttributeDescriptor(i,o)),!r&&n&&(r={type:n.type,name:n.name,meta:n.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(i=>i.name===t)}static getAssetDescriptorColour(t,i){let n=this.getAssetDescriptor(t);return n&&n.colour?n.colour:i}static getAssetDescriptorIcon(t,i){let n=this.getAssetDescriptor(t);return n&&n.icon?n.icon:i}}ie._assetTypeInfos=[],ie._metaItemDescriptors=[],ie._valueDescriptors=[],n(4532);var it=n(4867),ii=n.n(it);n(3472);class ir{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,i)=>{this._resolve=t,this._reject=i}),Object.freeze(this)}}function io(t,i,n=!0){if(null==t||null==i)return t===i;if(t.constructor!==i.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===i;if(t===i||t.valueOf()===i.valueOf())return!0;if(Array.isArray(t)&&t.length!==i.length||t instanceof Date||!(t instanceof Object)||!(i instanceof Object))return!1;if(n){if(Array.isArray(t))return t.every((t,n)=>io(t,i[n]));let n=Object.keys(t);return Object.keys(i).every(t=>-1!==n.indexOf(t))&&n.every(n=>io(t[n],i[n]))}return!1}function ia(t){if(null==t)return"";let i=!1;return t.split(/([A-Z]|\d)/).map((t,n,r)=>{if(!t)return t;if(!i)return i=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let i=!r[n-1]||"_"===r[n-1],o=n+1<r.length&&r[n+1]&&"_"!==r[n+1],a=n+3>r.length||!r[n+1]&&!r[n+3];(!i||o)&&(t=" "+t),!o&&(i||a)||(t=t.toLowerCase())}return t}).join("").trim()}function is(t,i,n){let r="string"==typeof t?t:t.name;return i&&i.meta&&i.meta.hasOwnProperty(r)?i.meta[r]:n&&n.meta?n.meta[r]:void 0}function il(t){return("string"==typeof t&&(t=ie.getAssetDescriptor(t)),t)?t8.t("label.asset."+t.name,{defaultValue:ia(t.name)}):""}function ic(t,i){let n="string"==typeof t?ie.getMetaItemDescriptor(t):t;return n?{name:n.name,type:n.type,value:i}:{name:typeof t,type:ie.resolveValueTypeFromValue(i),value:i}}function id(t,i,n,r,o,a){let s=ig("label",t,i,n,o),l="";if(s||(s=is("label",t,i&&i.meta?i:void 0)),r&&(l=ip(im("units",t,i,n,o))),!s){let n=t?t.name:i?"string"==typeof i?i:i.name:void 0;s=a||(n?ia(n):void 0)}return s?s+(l?" ("+l+")":""):l}function iu(t,i,n,r,o,a){let s=ih(t?t.value:void 0,()=>im("format",t,i,n,o),void 0,a),l=im("units",t,i,n,!0);return r&&l&&l.length&&(s=ip(im("units",t,i,n,o),s)),s}function ih(t,i,n,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=i&&i();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(n||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=ii()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let i,n=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),i=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-i.getTime())/864e5+1)/7));o="2-digit"===r.week?String(n).padStart(2,"0"):Number(n).toString(10)}else o=new Intl.DateTimeFormat(n||t8.language,r).format(t)}else o=Object(t).toString()}return o}function ip(t,i){if(!t)return"";i||(i="");let n=t.map((t,n)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==n||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!i)return r[0].value;i=r[0].value+i}}).join("");return i.length>0?i+" "+n:n}function im(t,i,n,r,o){let a,s=[],l=ig(t,i&&"string"==typeof i?i:i?i.name:n?"string"==typeof n?n:n.name:void 0,n,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(i&&i.meta&&(a=is(t,i,n)))if("format"!==t)return a;else s.push(a);if(n&&"string"!=typeof n&&n.hasOwnProperty(t)){if(a=n[t],"format"!==t)return a;s.push(a)}if(n&&n.type){if(a=ie.getValueDescriptor(n.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function ig(t,i,n,r,o,a){let s;if(i?s="string"==typeof i?i:i.name:n&&(s="string"==typeof n?n:n.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),n&&"string"!=typeof n&&(l.push(c+n.type+"."+s),l.push(c+n.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function ib(t,i){let n=i.ref.name;if(t.attributes)if(i.deleted)delete t.attributes[n];else{let r=t.attributes[n];r&&(r.value=i.value,r.timestamp=i.timestamp)}return Object.assign({},t)}class i_{constructor(t){t&&Object.assign(this,t)}matches(t){var i,n,r,o,a,s,l;if((null==(i=this.ids)?void 0:i.length)&&(!t.id||!this.ids.includes(t.id))||(null==(n=this.types)?void 0:n.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(i=>!i.id||t.parentId===i.id))return!1;if(null==(a=this.paths)?void 0:a.length){let i=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var n;return(null!=(n=t.path)?n:[]).every((t,n)=>i[n]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(i=>i_._evalValuePredicate(t.name,i)))&&(!this.attributes||i_._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!i_._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?i_._collectNames(this.attributes):[]}static _evalValuePredicate(t,i){var n;switch(i.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==i.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==i.caseSensitive?i.value:null==(n=i.value)?void 0:n.toLowerCase();switch(i.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return i.negate?!r:r}case"boolean":return t===i.value;case"number":{let n;if("number"!=typeof t)return!1;switch(i.operator){case"GREATER_THAN":n=t>i.value;break;case"GREATER_EQUALS":n=t>=i.value;break;case"LESS_THAN":n=t<i.value;break;case"LESS_EQUALS":n=t<=i.value;break;case"BETWEEN":n=t>=i.value&&t<=i.rangeValue;break;default:n=t===i.value}return i.negate?!n:n}}return!1}static _evalPredicate(t,i){var n,r;let o=null==(n=i.name)?void 0:n.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!i.negated;let s=!i.value||i_._evalValuePredicate(a.value,i.value);return i.negated?!s:s}static _evalGroup(t,i){var n,r,o;let a=null!=(n=i.operator)?n:"AND",s=[...(null!=(r=i.items)?r:[]).map(i=>i_._evalPredicate(t,i)),...(null!=(o=i.groups)?o:[]).map(i=>i_._evalGroup(t,i))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var i,n;return[...(null!=(i=t.items)?i:[]).map(t=>{var i;return null==(i=t.name)?void 0:i.value}).filter(t=>!!t),...(null!=(n=t.groups)?n:[]).flatMap(t=>i_._collectNames(t))]}}i_._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var iv=function(t,i,n,r){return new(n||(n=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};let iy=n(4461);class ix{constructor(t,i,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=i,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let u=ix._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let i=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=i}let m=o0.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return iv(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let i=this._pendingProviderEnables[t];yield this.enableProvider(i)}})}enableProvider(t,i){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let n={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:i},r=yield this.sendProviderMessage(n,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,i})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,i){return iv(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!i)return void this._doSendProviderMessage(t);let n=t.provider+t.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new ir,o=()=>{delete this._pendingProviderPromises[n],r.reject("No response from provider")};return this._pendingProviderPromises[n]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,i)=>{this._registrationTimer=window.setTimeout(()=>iv(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),i(t)}}))})}_sendRegistration(t){return iv(this,void 0,void 0,function*(){this._normaliseRegistration();let i=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(t&&i&&ix._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let i=t&&t.response?t.response.status:void 0;return 403===i||409===i}storeData(t,i){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:i},!1)}retrieveData(t){return iv(this,void 0,void 0,function*(){let i=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([i,new Promise((t,i)=>setTimeout(i,2e3))]);if(t&&t.value){let i=t.value;return"null"===i?void 0:i}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,i){this._providerMessageListeners[t.provider+t.action]=i}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,i){let n={type:t,data:i};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(i):window.localStorage.setItem(i,JSON.stringify(t.value))}break;case"RETRIEVE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(i);if(null!==n)try{n=JSON.parse(n)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:i,value:n}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let i=JSON.parse(t),n=i.provider,r=i.action,o=this._pendingProviderPromises[n+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+r],o[0].resolve(i));let a=this._providerMessageListeners[n+r];a&&a(i)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:iy.name,version:iy.version,platform:iy.os.toString(),apps:[],model:((iy.manufacturer?iy.manufacturer+" ":"")+(iy.product?iy.product:"")).trim()}}_initialiseProvider(t){return iv(this,void 0,void 0,function*(){let i;console.debug("Console: initialising provider '"+t+"'");try{i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=i.version,this._registration.providers[t].requiresPermission=i.requiresPermission,this._registration.providers[t].hasPermission=i.hasPermission,this._registration.providers[t].success=i.success,this._registration.providers[t].enabled=i.enabled,this._registration.providers[t].disabled=i.disabled,this._registration.providers[t].data=i.data}catch(t){console.error(t),i={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(i.success||(console.debug("Provider initialisation failed: '"+t+"'"),i.disabled=!0,this._registration.providers[t].disabled=!0),i.disabled||i.enabled){let i=this._pendingProviderEnables.indexOf(t);i>=0&&this._pendingProviderEnables.splice(i,1)}})}}function iw(t,i){return function(){return t.apply(i,arguments)}}let{toString:iF}=Object.prototype,{getPrototypeOf:iE}=Object,{iterator:iC,toStringTag:ik}=Symbol,iA=(({hasOwnProperty:t})=>(i,n)=>t.call(i,n))(Object.prototype),iT=(t,i)=>{let n=t,r=[];for(;null!=n&&n!==Object.prototype&&-1===r.indexOf(n);){if(r.push(n),iA(n,i))return!0;n=iE(n)}return!1},iS=(u=Object.create(null),t=>{let i=iF.call(t);return u[i]||(u[i]=i.slice(8,-1).toLowerCase())}),iI=t=>(t=t.toLowerCase(),i=>iS(i)===t),iD=t=>i=>typeof i===t,{isArray:iR}=Array,iM=iD("undefined");function iO(t){return null!==t&&!iM(t)&&null!==t.constructor&&!iM(t.constructor)&&i$(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let iL=iI("ArrayBuffer"),iP=iD("string"),i$=iD("function"),iB=iD("number"),iN=t=>null!==t&&"object"==typeof t,iz=t=>{if(!iN(t))return!1;let i=iE(t);return(null===i||i===Object.prototype||null===iE(i))&&!iT(t,ik)&&!iT(t,iC)},ij=iI("Date"),iU=iI("File"),iV=iI("Blob"),iH=iI("FileList"),iW="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},iq=void 0!==iW.FormData?iW.FormData:void 0,iG=iI("URLSearchParams"),[iY,iK,iX,iZ]=["ReadableStream","Request","Response","Headers"].map(iI);function iJ(t,i,{allOwnKeys:n=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),iR(t))for(r=0,o=t.length;r<o;r++)i.call(null,t[r],r,t);else{let o;if(iO(t))return;let a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],i.call(null,t[o],o,t)}}function iQ(t,i){let n;if(iO(t))return null;i=i.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(i===(n=r[o]).toLowerCase())return n;return null}let i0="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,i1=t=>!iM(t)&&t!==i0,i2=(h="u">typeof Uint8Array&&iE(Uint8Array),t=>h&&t instanceof h),i3=iI("HTMLFormElement"),{propertyIsEnumerable:i5}=Object.prototype,i4=iI("RegExp"),i6=(t,i)=>{let n=Object.getOwnPropertyDescriptors(t),r={};iJ(n,(n,o)=>{let a;!1!==(a=i(n,o,t))&&(r[o]=a||n)}),Object.defineProperties(t,r)},i8=iI("AsyncFunction"),i7=(hN="function"==typeof setImmediate,hz=i$(i0.postMessage),hN?setImmediate:hz?(hj=`axios@${Math.random()}`,hU=[],i0.addEventListener("message",({source:t,data:i})=>{t===i0&&i===hj&&hU.length&&hU.shift()()},!1),t=>{hU.push(t),i0.postMessage(hj,"*")}):t=>setTimeout(t)),i9="u">typeof queueMicrotask?queueMicrotask.bind(i0):"u">typeof process&&process.nextTick||i7,ne=t=>null!=t&&i$(t[iC]),nt={isArray:iR,isArrayBuffer:iL,isBuffer:iO,isFormData:t=>{if(!t)return!1;if(iq&&t instanceof iq)return!0;let i=iE(t);if(!i||i===Object.prototype||!i$(t.append))return!1;let n=iS(t);return"formdata"===n||"object"===n&&i$(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&iL(t.buffer)},isString:iP,isNumber:iB,isBoolean:t=>!0===t||!1===t,isObject:iN,isPlainObject:iz,isEmptyObject:t=>{if(!iN(t)||iO(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:iY,isRequest:iK,isResponse:iX,isHeaders:iZ,isUndefined:iM,isDate:ij,isFile:iU,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:iV,isRegExp:i4,isFunction:i$,isStream:t=>iN(t)&&i$(t.pipe),isURLSearchParams:iG,isTypedArray:i2,isFileList:iH,forEach:iJ,merge:function t(...i){let{caseless:n,skipUndefined:r}=i1(this)&&this||{},o={},a=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&"string"==typeof a&&iQ(o,a)||a,l=iA(o,s)?o[s]:void 0;iz(l)&&iz(i)?o[s]=t(l,i):iz(i)?o[s]=t({},i):iR(i)?o[s]=i.slice():r&&iM(i)||(o[s]=i)};for(let t=0,n=i.length;t<n;t++){let n=i[t];if(!n||iO(n)||(iJ(n,a),"object"!=typeof n||iR(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let t=0;t<r.length;t++){let i=r[t];i5.call(n,i)&&a(n[i],i)}}return o},extend:(t,i,n,{allOwnKeys:r}={})=>(iJ(i,(i,r)=>{n&&i$(i)?Object.defineProperty(t,r,{__proto__:null,value:iw(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,i,n,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:i.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,i,n,r)=>{let o,a,s,l={};if(i=i||{},null==t)return i;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,i))&&!l[s]&&(i[s]=t[s],l[s]=!0);t=!1!==n&&iE(t)}while(t&&(!n||n(t,i))&&t!==Object.prototype);return i},kindOf:iS,kindOfTest:iI,endsWith:(t,i,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=i.length;let r=t.indexOf(i,n);return -1!==r&&r===n},toArray:t=>{if(!t)return null;if(iR(t))return t;let i=t.length;if(!iB(i))return null;let n=Array(i);for(;i-- >0;)n[i]=t[i];return n},forEachEntry:(t,i)=>{let n,r=(t&&t[iC]).call(t);for(;(n=r.next())&&!n.done;){let r=n.value;i.call(t,r[0],r[1])}},matchAll:(t,i)=>{let n,r=[];for(;null!==(n=t.exec(i));)r.push(n);return r},isHTMLForm:i3,hasOwnProperty:iA,hasOwnProp:iA,hasOwnInPrototypeChain:iT,getSafeProp:(t,i)=>null!=t&&iT(t,i)?t[i]:void 0,reduceDescriptors:i6,freezeMethods:t=>{i6(t,(i,n)=>{if(i$(t)&&["arguments","caller","callee"].includes(n))return!1;if(i$(t[n])){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(t,i)=>{let n={};return(iR(t)?t:String(t).split(i)).forEach(t=>{n[t]=!0}),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,i)=>null!=t&&Number.isFinite(t*=1)?t:i,findKey:iQ,global:i0,isContextDefined:i1,isSpecCompliantForm:function(t){return!!(t&&i$(t.append)&&"FormData"===t[ik]&&t[iC])},toJSONObject:t=>{let i=new WeakSet,n=t=>{if(iN(t)){if(i.has(t))return;if(iO(t))return t;if(!("toJSON"in t)){i.add(t);let r=iR(t)?[]:{};return iJ(t,(t,i)=>{let o=n(t);iM(o)||(r[i]=o)}),i.delete(t),r}}return t};return n(t)},isAsyncFn:i8,isThenable:t=>t&&(iN(t)||i$(t))&&i$(t.then)&&i$(t.catch),setImmediate:i7,asap:i9,isIterable:ne,isSafeIterable:t=>null!=t&&iT(t,iC)&&ne(t)},ni=nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nn=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nr=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function no(t,i){return nt.isArray(t)?t.map(t=>no(t,i)):function(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}(String(t).replace(i,""))}function na(t){let i=Object.create(null);return nt.forEach(t.toJSON(),(t,n)=>{i[n]=no(t,nr)}),i}let ns=Symbol("internals");function nl(t){return t&&String(t).trim().toLowerCase()}function nc(t){return!1===t||null==t?t:nt.isArray(t)?t.map(nc):no(String(t),nn)}function nd(t,i,n,r,o){if(nt.isFunction(r))return r.call(this,i,n);if(o&&(i=n),nt.isString(i)){if(nt.isString(r))return -1!==i.indexOf(r);if(nt.isRegExp(r))return r.test(i)}}class nu{constructor(t){t&&this.set(t)}set(t,i,n){let r=this;function o(t,i,n){let o=nl(i);if(!o)return;let a=nt.findKey(r,o);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||i]=nc(t))}let a=(t,i)=>nt.forEach(t,(t,n)=>o(t,n,i));if(nt.isPlainObject(t)||t instanceof this.constructor)a(t,i);else{let r;if(nt.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let n,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||l[n]&&ni[n]||("set-cookie"===n?l[n]?l[n].push(r):l[n]=[r]:l[n]=l[n]?l[n]+", "+r:r)}),l),i)}else if(nt.isObject(t)&&nt.isSafeIterable(t)){let n=Object.create(null),r,o;for(let i of t){if(!nt.isArray(i))throw TypeError("Object iterator must return a key-value pair");o=i[0],nt.hasOwnProp(n,o)?(r=n[o],n[o]=nt.isArray(r)?[...r,i[1]]:[r,i[1]]):n[o]=i[1]}a(n,i)}else null!=t&&o(i,t,n)}return this}get(t,i){if(t=nl(t)){let n=nt.findKey(this,t);if(n){let t=this[n];if(!i)return t;if(!0===i){let i,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;i=r.exec(t);)n[i[1]]=i[2];return n}if(nt.isFunction(i))return i.call(this,t,n);if(nt.isRegExp(i))return i.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=nl(t)){let n=nt.findKey(this,t);return!!(n&&void 0!==this[n]&&(!i||nd(this,this[n],n,i)))}return!1}delete(t,i){let n=this,r=!1;function o(t){if(t=nl(t)){let o=nt.findKey(n,t);o&&(!i||nd(n,n[o],o,i))&&(delete n[o],r=!0)}}return nt.isArray(t)?t.forEach(o):o(t),r}clear(t){let i=Object.keys(this),n=i.length,r=!1;for(;n--;){let o=i[n];(!t||nd(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let i=this,n={};return nt.forEach(this,(r,o)=>{let a=nt.findKey(n,o);if(a){i[a]=nc(r),delete i[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n):String(o).trim();s!==o&&delete i[o],i[s]=nc(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let i=Object.create(null);return nt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(i[r]=t&&nt.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){let n=new this(t);return i.forEach(t=>n.set(t)),n}static accessor(t){let i=(this[ns]=this[ns]={accessors:{}}).accessors,n=this.prototype;function r(t){let r=nl(t);if(!i[r]){let o;o=nt.toCamelCase(" "+t),["get","set","has"].forEach(i=>{Object.defineProperty(n,i+o,{__proto__:null,value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})}),i[r]=!0}}return nt.isArray(t)?t.forEach(r):r(t),this}}nu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nt.reduceDescriptors(nu.prototype,({value:t},i)=>{let n=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(t){this[n]=t}}}),nt.freezeMethods(nu);class nh extends Error{static from(t,i,n,r,o,a){let s=new nh(t.message,i||t.code,n,r,o);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,i,n,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,i,n,r=this.config,o=r&&nt.hasOwnProp(r,"redact")?r.redact:void 0,a=nt.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),i=[],(n=r=>{let o;if(null===r||"object"!=typeof r||nt.isBuffer(r))return r;if(-1===i.indexOf(r)){if(r instanceof nu&&(r=r.toJSON()),i.push(r),nt.isArray(r))o=[],r.forEach((t,i)=>{let r=n(t);nt.isUndefined(r)||(o[i]=r)});else{if(!nt.isPlainObject(r)&&function(t){if(nt.hasOwnProp(t,"toJSON"))return!0;let i=Object.getPrototypeOf(t);for(;i&&i!==Object.prototype;){if(nt.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}(r))return i.pop(),r;for(let[i,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(i.toLowerCase())?"[REDACTED ****]":n(a);nt.isUndefined(r)||(o[i]=r)}}return i.pop(),o}})(r)):nt.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}}nh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",nh.ERR_BAD_OPTION="ERR_BAD_OPTION",nh.ECONNABORTED="ECONNABORTED",nh.ETIMEDOUT="ETIMEDOUT",nh.ECONNREFUSED="ECONNREFUSED",nh.ERR_NETWORK="ERR_NETWORK",nh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",nh.ERR_DEPRECATED="ERR_DEPRECATED",nh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",nh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",nh.ERR_CANCELED="ERR_CANCELED",nh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",nh.ERR_INVALID_URL="ERR_INVALID_URL",nh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let np=nh;function nm(t){return nt.isPlainObject(t)||nt.isArray(t)}function nf(t){return nt.endsWith(t,"[]")?t.slice(0,-2):t}function ng(t,i,n){return t?t.concat(i).map(function(t,i){return t=nf(t),!n&&i?"["+t+"]":t}).join(n?".":""):i}let nb=nt.toFlatObject(nt,{},null,function(t){return/^is[A-Z]/.test(t)}),n_=function(t,i,n){if(!nt.isObject(t))throw TypeError("target must be an object");i=i||new FormData;let r=(n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,i){return!nt.isUndefined(i[t])})).metaTokens,o=n.visitor||m,a=n.dots,s=n.indexes,l=n.Blob||"u">typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,d=l&&nt.isSpecCompliantForm(i),u=[];if(!nt.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(nt.isDate(t))return t.toISOString();if(nt.isBoolean(t))return t.toString();if(!d&&nt.isBlob(t))throw new np("Blob is not supported. Use a Buffer instead.");if(nt.isArrayBuffer(t)||nt.isTypedArray(t)){if(d&&"function"==typeof l)return new l([t]);if("u">typeof Buffer)return Buffer.from(t);throw new np("Blob is not supported. Use a Buffer instead.",np.ERR_NOT_SUPPORT)}return t}function p(t){if(t>c)throw new np("Object is too deeply nested ("+t+" levels). Max depth: "+c,np.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(t,n,o){let l=t;if(nt.isReactNative(i)&&nt.isReactNativeBlob(t))return i.append(ng(o,n,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(nt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=function(t){if(1/0===c)return JSON.stringify(t);let i=[];return JSON.stringify(t,function(t,n){if(!nt.isObject(n))return n;for(;i.length&&i[i.length-1]!==this;)i.pop();return i.push(n),p(1+i.length-1),n})}(t);else{var d;if(nt.isArray(t)&&(d=t,nt.isArray(d)&&!d.some(nm))||(nt.isFileList(t)||nt.endsWith(n,"[]"))&&(l=nt.toArray(t)))return n=nf(n),l.forEach(function(t,r){nt.isUndefined(t)||null===t||i.append(!0===s?ng([n],r,a):null===s?n:n+"[]",h(t))}),!1}return!!nm(t)||(i.append(ng(o,n,a),h(t)),!1)}let f=Object.assign(nb,{defaultVisitor:m,convertValue:h,isVisitable:nm});if(!nt.isObject(t))throw TypeError("data must be an object");return!function t(n,r,a=0){if(!nt.isUndefined(n)){if(p(a),-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),nt.forEach(n,function(n,s){!0===(!(nt.isUndefined(n)||null===n)&&o.call(i,n,nt.isString(s)?s.trim():s,r,f))&&t(n,r?r.concat(s):[s],a+1)}),u.pop()}}(t),i};function nv(t){let i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return i[t]})}function ny(t,i){this._pairs=[],t&&n_(t,this,i)}let nx=ny.prototype;function nw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nF(t,i,n){let r;if(!i)return t;t=t||"";let o=nt.isFunction(n)?{serialize:n}:n,a=nt.getSafeProp(o,"encode")||nw,s=nt.getSafeProp(o,"serialize");if(r=s?s(i,o):nt.isURLSearchParams(i)?i.toString():new ny(i,o).toString(a)){let i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}nx.append=function(t,i){this._pairs.push([t,i])},nx.toString=function(t){let i=t?i=>t.call(this,i,nv):nv;return this._pairs.map(function(t){return i(t[0])+"="+i(t[1])},"").join("&")};let nE=class{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nt.forEach(this.handlers,function(i){null!==i&&t(i)})}},nC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},nk="u">typeof URLSearchParams?URLSearchParams:ny,nA="u">typeof FormData?FormData:null,nT="u">typeof Blob?Blob:null,nS="u">typeof window&&"u">typeof document,nI="object"==typeof navigator&&navigator||void 0,nD=nS&&(!nI||0>["ReactNative","NativeScript","NS"].indexOf(nI.product)),nR="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nM=nS&&window.location.href||"http://localhost",nO={...C,isBrowser:!0,classes:{URLSearchParams:nk,FormData:nA,Blob:nT},protocols:["http","https","file","blob","url","data"]};function nL(t){if(t>100)throw new np("FormData field is too deeply nested ("+t+" levels). Max depth: 100",np.ERR_FORM_DATA_DEPTH_EXCEEDED)}let nP=function(t){if(nt.isFormData(t)&&nt.isFunction(t.entries)){let i={};return nt.forEachEntry(t,(t,n)=>{!function t(i,n,r,o){nL(o);let a=i[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=i.length;return(a=!a&&nt.isArray(r)?r.length:a,l)?nt.hasOwnProp(r,a)?r[a]=nt.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n:(nt.hasOwnProp(r,a)&&nt.isObject(r[a])||(r[a]=[]),t(i,n,r[a],o)&&nt.isArray(r[a])&&(r[a]=function(t){let i,n,r={},o=Object.keys(t),a=o.length;for(i=0;i<a;i++)r[n=o[i]]=t[n];return r}(r[a]))),!s}(function(t){let i,n=[],r=/\w+|\[(\w*)]/g;for(;null!==(i=r.exec(t));)nL(n.length),n.push("[]"===i[0]?"":i[1]||i[0]);return n}(t),n,i,0)}),i}return null},n$=(t,i)=>null!=t&&nt.hasOwnProp(t,i)?t[i]:void 0,nB={transitional:nC,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){let n,r=i.getContentType()||"",o=r.indexOf("application/json")>-1,a=nt.isObject(t);if(a&&nt.isHTMLForm(t)&&(t=new FormData(t)),nt.isFormData(t))return o?JSON.stringify(nP(t)):t;if(nt.isArrayBuffer(t)||nt.isBuffer(t)||nt.isStream(t)||nt.isFile(t)||nt.isBlob(t)||nt.isReadableStream(t))return t;if(nt.isArrayBufferView(t))return t.buffer;if(nt.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let i=n$(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return n_(t,new nO.classes.URLSearchParams,{visitor:function(t,i,n,r){return nO.isNode&&nt.isBuffer(t)?(this.append(i,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...i}).toString();if((n=nt.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=n$(this,"env"),o=r&&r.FormData;return n_(n?{"files[]":t}:t,o&&new o,i)}}if(a||o){i.setContentType("application/json",!1);var s=t;if(nt.isString(s))try{return(0,JSON.parse)(s),nt.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let i=n$(this,"transitional")||nB.transitional,n=i&&i.forcedJSONParsing,r=n$(this,"responseType"),o="json"===r;if(nt.isResponse(t)||nt.isReadableStream(t))return t;if(t&&nt.isString(t)&&(n&&!r||o)){let n=i&&i.silentJSONParsing;try{return JSON.parse(t,n$(this,"parseReviver"))}catch(t){if(!n&&o){if("SyntaxError"===t.name)throw np.from(t,np.ERR_BAD_RESPONSE,this,null,n$(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nO.classes.FormData,Blob:nO.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function nN(t,i){let n=this||nB,r=i||n,o=nu.from(r.headers),a=r.data;return nt.forEach(t,function(t){a=t.call(n,a,o.normalize(),i?i.status:void 0)}),o.normalize(),a}function nz(t){return!!(t&&t.__CANCEL__)}nt.forEach(["delete","get","head","post","put","patch","query"],t=>{nB.headers[t]={}});let nj=class extends np{constructor(t,i,n){super(null==t?"canceled":t,np.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function nU(t,i,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(new np("Request failed with status code "+n.status,n.status>=400&&n.status<500?np.ERR_BAD_REQUEST:np.ERR_BAD_RESPONSE,n.config,n.request,n))}let nV=function(t,i){let n,r=Array(t=t||10),o=Array(t),a=0,s=0;return i=void 0!==i?i:1e3,function(l){let c=Date.now(),d=o[s];n||(n=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-n<i)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},nH=function(t,i){let n,r,o=0,a=1e3/i,s=(i,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),t(...i)};return[(...t)=>{let i=Date.now(),l=i-o;l>=a?s(t,i):(n=t,r||(r=setTimeout(()=>{r=null,s(n)},a-l)))},()=>n&&s(n)]},nW=(t,i,n=3)=>{let r=0,o=nV(50,250);return nH(n=>{if(!n||"number"!=typeof n.loaded)return;let a=n.loaded,s=n.lengthComputable?n.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:n,lengthComputable:null!=s,[i?"download":"upload"]:!0})},n)},nq=(t,i)=>{let n=null!=t;return[r=>i[0]({lengthComputable:n,total:t,loaded:r}),i[1]]},nG=t=>(...i)=>nt.asap(()=>t(...i)),nY=nO.hasStandardBrowserEnv?(p=new URL(nO.origin),m=nO.navigator&&/(msie|trident)/i.test(nO.navigator.userAgent),t=>(t=new URL(t,nO.origin),p.protocol===t.protocol&&p.host===t.host&&(m||p.port===t.port))):()=>!0,nK=nO.hasStandardBrowserEnv?{write(t,i,n,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(i)}`];nt.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),nt.isString(r)&&l.push(`path=${r}`),nt.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nt.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let i=document.cookie.split(";");for(let n=0;n<i.length;n++){let r=i[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},nX=/^https?:(?!\/\/)/i,nZ=/[\t\n\r]/g;function nJ(t,i){if("string"==typeof t&&nX.test((function(t){let i=0;for(;i<t.length&&32>=t.charCodeAt(i);)i++;return t.slice(i)})(t).replace(nZ,"")))throw new np('Invalid URL: missing "//" after protocol',np.ERR_INVALID_URL,i)}function nQ(t,i,n,r){nJ(i,r);let o=!("string"==typeof i&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));return t&&(o||!1===n)?(nJ(t,r),i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t):i}let n0=t=>t instanceof nu?{...t}:t;function n1(t,i){t=t||{},i=i||{};let n=Object.create(null);function r(t,i,n,r){return nt.isPlainObject(t)&&nt.isPlainObject(i)?nt.merge.call({caseless:r},t,i):nt.isPlainObject(i)?nt.merge({},i):nt.isArray(i)?i.slice():i}function o(t,i,n,o){return nt.isUndefined(i)?nt.isUndefined(t)?void 0:r(void 0,t,n,o):r(t,i,n,o)}function a(t,i){if(!nt.isUndefined(i))return r(void 0,i)}function s(t,i){return nt.isUndefined(i)?nt.isUndefined(t)?void 0:r(void 0,t):r(void 0,i)}function l(n,o,a){return nt.hasOwnProp(i,a)?r(n,o):nt.hasOwnProp(t,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(t,i,n)=>o(n0(t),n0(i),n,!0)};return nt.forEach(Object.keys({...t,...i}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=nt.hasOwnProp(c,r)?c[r]:o,s=a(nt.hasOwnProp(t,r)?t[r]:void 0,nt.hasOwnProp(i,r)?i[r]:void 0,r);nt.isUndefined(s)&&a!==l||(n[r]=s)}),nt.hasOwnProp(i,"validateStatus")&&nt.isUndefined(i.validateStatus)&&!1===function(n){let r=nt.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!nt.isUndefined(r)){if(!nt.isPlainObject(r))return;else if(nt.hasOwnProp(r,n))return r[n]}let o=nt.hasOwnProp(t,"transitional")?t.transitional:void 0;if(nt.isPlainObject(o)&&nt.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(nt.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}let n2=["content-type","content-length"],n3=function(t){let i=n1({},t),n=t=>nt.hasOwnProp(i,t)?i[t]:void 0,r=n("data"),o=n("withXSRFToken"),a=n("xsrfHeaderName"),s=n("xsrfCookieName"),l=n("headers"),c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(i.headers=l=nu.from(l),i.url=nF(nQ(d,h,u,i),n("params"),n("paramsSerializer")),c){let i=nt.getSafeProp(c,"username")||"",n=nt.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(i+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))):"")))}catch(i){throw np.from(i,np.ERR_BAD_OPTION_VALUE,t)}}if(nt.isFormData(r))if(nO.hasStandardBrowserEnv||nO.hasStandardBrowserWebWorkerEnv||nt.isReactNative(r))l.setContentType(void 0);else{var p,m;nt.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,i])=>{n2.includes(t.toLowerCase())&&p.set(t,i)}))}if(nO.hasStandardBrowserEnv&&(nt.isFunction(o)&&(o=o(i)),!0===o||null==o&&nY(i.url))){let t=a&&s&&nK.read(s);t&&l.set(a,t)}return i},n5="u">typeof XMLHttpRequest&&function(t){return new Promise(function(i,n){var r;let o,a,s,l,c,d,u=n3(t),h=u.data,p=nu.from(u.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=u;function b(){l&&l(),c&&c(),u.cancelToken&&u.cancelToken.unsubscribe(o),u.signal&&u.signal.removeEventListener("abort",o)}let _=new XMLHttpRequest;function v(){if(!_)return;let r=nu.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());nU(function(t){i(t),b()},function(t){n(t),b()},{data:m&&"text"!==m&&"json"!==m?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:t,request:_}),_=null}_.open(u.method.toUpperCase(),u.url,!0),_.timeout=u.timeout,"onloadend"in _?_.onloadend=v:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&_.responseURL.startsWith("file:"))&&setTimeout(v)},_.onabort=function(){_&&(n(new np("Request aborted",np.ECONNABORTED,t,_)),b(),_=null)},_.onerror=function(i){let r=new np(i&&i.message?i.message:"Network Error",np.ERR_NETWORK,t,_);r.event=i||null,n(r),b(),_=null},_.ontimeout=function(){let i=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||nC;u.timeoutErrorMessage&&(i=u.timeoutErrorMessage),n(new np(i,r.clarifyTimeoutError?np.ETIMEDOUT:np.ECONNABORTED,t,_)),b(),_=null},void 0===h&&p.setContentType(null),"setRequestHeader"in _&&nt.forEach(na(p),function(t,i){_.setRequestHeader(i,t)}),nt.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),m&&"json"!==m&&(_.responseType=u.responseType),g&&([s,c]=nW(g,!0),_.addEventListener("progress",s)),f&&_.upload&&([a,l]=nW(f),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=i=>{_&&(n(!i||i.type?new nj(null,t,_):i),_.abort(),b(),_=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let y=(r=u.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");if(y&&!nO.protocols.includes(y)){n(new np("Unsupported protocol "+y+":",np.ERR_BAD_REQUEST,t)),b();return}_.send(h||null)})},n4=function*(t,i){let n,r=t.byteLength;if(!i||r<i)return void(yield t);let o=0;for(;o<r;)n=o+i,yield t.slice(o,n),o=n},n6=async function*(t,i){for await(let n of n8(t))yield*n4(n,i)},n8=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let i=t.getReader();try{for(;;){let{done:t,value:n}=await i.read();if(t)break;yield n}}finally{await i.cancel()}},n7=(t,i,n,r)=>{let o,a=n6(t,i),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:i,value:r}=await a.next();if(i){l(),t.close();return}let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},n9=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,re=(t,i,n)=>i+2<n&&n9(t.charCodeAt(i+1))&&n9(t.charCodeAt(i+2)),{isFunction:rt}=nt,ri=t=>{if(!nt.isString(t))return t;try{return decodeURIComponent(t)}catch(i){return t}},rn=(t,...i)=>{try{return!!t(...i)}catch(t){return!1}},rr=t=>{let i,n=void 0!==nt.global&&null!==nt.global?nt.global:globalThis,{ReadableStream:r,TextEncoder:o}=n,{fetch:a,Request:s,Response:l}=t=nt.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),p=c&&("function"==typeof o?(i=new o,t=>i.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&rn(()=>{let t=!1,i=new s(nO.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),n=i.headers.has("Content-Type");return null!=i.body&&i.body.cancel(),t&&!n}),f=u&&h&&rn(()=>nt.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(i,n)=>{let r=i&&i[t];if(r)return r.call(i);throw new np(`Response type '${t}' is not supported`,np.ERR_NOT_SUPPORT,n)})});let b=async t=>{if(null==t)return 0;if(nt.isBlob(t))return t.size;if(nt.isSpecCompliantForm(t)){let i=new s(nO.origin,{method:"POST",body:t});return(await i.arrayBuffer()).byteLength}return nt.isArrayBufferView(t)||nt.isArrayBuffer(t)?t.byteLength:(nt.isURLSearchParams(t)&&(t+=""),nt.isString(t))?(await p(t)).byteLength:void 0},_=async(t,i)=>{let n=nt.toFiniteNumber(t.getContentLength());return null==n?b(i):n};return async t=>{let i,{url:n,method:r,data:c,signal:u,cancelToken:p,timeout:v,onDownloadProgress:y,onUploadProgress:x,responseType:w,headers:F,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:A}=n3(t),T=nt.isNumber(k)&&k>-1,S=nt.isNumber(A)&&A>-1,I=a||fetch;w=w?(w+"").toLowerCase():"text";let D=((t,i)=>{if(t=t?t.filter(Boolean):[],!i&&!t.length)return;let n=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let i=t instanceof Error?t:this.reason;n.abort(i instanceof np?i:new nj(i instanceof Error?i.message:i))}},a=i&&setTimeout(()=>{a=null,o(new np(`timeout of ${i}ms exceeded`,np.ETIMEDOUT))},i),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o,{once:!0}));let{signal:l}=n;return l.unsubscribe=()=>nt.asap(s),l})([u,p&&p.toAbortSignal()],v),R=null,M=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,L=()=>new np("Request body larger than maxBodyLength limit",np.ERR_BAD_REQUEST,t,R);try{var P;let a,u,p,v,$=(u="auth",nt.hasOwnProp(t,u)?t[u]:void 0);if($){let t=nt.getSafeProp($,"username")||"",i=nt.getSafeProp($,"password")||"";a={username:t,password:i}}if(p=(P=n).indexOf("://"),v=P,-1!==p&&(v=v.slice(p+3)),v.includes("@")||v.includes(":")){let t=new URL(n,nO.origin);if(!a&&(t.username||t.password)){let i=ri(t.username),n=ri(t.password);a={username:i,password:n}}(t.username||t.password)&&(t.username="",t.password="",n=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))))))}if(T&&"string"==typeof n&&n.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let i=t.indexOf(",");if(i<0)return 0;let n=t.slice(5,i),r=t.slice(i+1);if(/;base64/i.test(n)){let t=r.length,i=r.length;for(let n=0;n<i;n++)if(37===r.charCodeAt(n)&&n+2<i){let i=r.charCodeAt(n+1),o=r.charCodeAt(n+2);n9(i)&&n9(o)&&(t-=2,n+=2)}let n=0,o=i-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(n++,o--):a(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)?n++:a(o)&&n++);let s=3*Math.floor(t/4)-(n||0);return s>0?s:0}let o=0;for(let t=0,i=r.length;t<i;t++){let n=r.charCodeAt(t);if(37===n&&re(r,t,i))o+=1,t+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&t+1<i){let i=r.charCodeAt(t+1);i>=56320&&i<=57343?(o+=4,t++):o+=3}else o+=3}return o}(n)>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R);if(S&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(i=t,t>A))throw L()}let B=S&&(nt.isReadableStream(c)||nt.isStream(c)),N=(t,i,n)=>n7(t,65536,t=>{if(S&&t>A)throw O=L();i&&i(t)},n);if(m&&"get"!==r&&"head"!==r&&(x||B)){if(i=null==i?await _(F,c):i,0!==i||B){let t,r=new s(n,{method:"POST",body:c,duplex:"half"});if(nt.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,n]=x&&nq(i,nW(nG(x)))||[];c=N(r.body,t,n)}}}else if(B&&!d&&h&&"get"!==r&&"head"!==r)c=N(c);else if(B&&d&&!m&&"get"!==r&&"head"!==r)throw new np("Stream request bodies are not supported by the current fetch implementation",np.ERR_NOT_SUPPORT,t,R);nt.isString(E)||(E=E?"include":"omit");let z=d&&"credentials"in s.prototype;if(nt.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...C,signal:D,method:r.toUpperCase(),headers:na(F.normalize()),body:c,duplex:"half",credentials:z?E:void 0};R=d&&new s(n,j);let U=await (d?I(R,C):I(n,j)),V=nu.from(U.headers);if(T){let i=nt.toFiniteNumber(V.getContentLength());if(null!=i&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R)}let H=f&&("stream"===w||"response"===w);if(f&&U.body&&(y||T||H&&M)){let i={};["status","statusText","headers"].forEach(t=>{i[t]=U[t]});let n=nt.toFiniteNumber(V.getContentLength()),[r,o]=y&&nq(n,nW(nG(y),!0))||[];U=new l(n7(U.body,65536,i=>{if(T&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R);r&&r(i)},()=>{o&&o(),M&&M()}),i)}w=w||"text";let W=await g[nt.findKey(g,w)||"text"](U,t);if(T&&!f&&!H){let i;if(null!=W&&("number"==typeof W.byteLength?i=W.byteLength:"number"==typeof W.size?i=W.size:"string"==typeof W&&(i="function"==typeof o?new o().encode(W).byteLength:W.length)),"number"==typeof i&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R)}return!H&&M&&M(),await new Promise((i,n)=>{nU(i,n,{data:W,headers:nu.from(U.headers),status:U.status,statusText:U.statusText,config:t,request:R})})}catch(i){if(M&&M(),D&&D.aborted&&D.reason instanceof np){let n=D.reason;throw n.config=t,R&&(n.request=R),i!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw R&&!O.request&&(O.request=R),O;if(i instanceof np)throw R&&!i.request&&(i.request=R),i;if(i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message)){let n=new np("Network Error",np.ERR_NETWORK,t,R,i&&i.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:i.cause||i,writable:!0,enumerable:!1,configurable:!0}),n}throw np.from(i,i&&i.code,t,R,i&&i.response)}}},ro=new Map,ra=t=>{let i=t&&t.env||{},{fetch:n,Request:r,Response:o}=i,a=[r,o,n],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(i)),d=c;return c};ra();let rs={http:null,xhr:n5,fetch:{get:ra}};nt.forEach(rs,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:i})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:i})}});let rl=t=>`- ${t}`,rc=t=>nt.isFunction(t)||null===t||!1===t,rd=function(t,i){let n,r,{length:o}=t=nt.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=n=t[s],!rc(n)&&void 0===(r=rs[(o=String(n)).toLowerCase()]))throw new np(`Unknown adapter '${o}'`);if(r&&(nt.isFunction(r)||(r=r.get(i))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,i])=>`adapter ${t} `+(!1===i?"is not supported by the environment":"is not available in the build"));throw new np("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),np.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nj(null,t)}function rh(t){return ru(t),t.headers=nu.from(t.headers),t.data=nN.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rd(t.adapter||nB.adapter,t)(t).then(function(i){ru(t),t.response=i;try{i.data=nN.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=nu.from(i.headers),i},function(i){if(!nz(i)&&(ru(t),i&&i.response)){t.response=i.response;try{i.response.data=nN.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=nu.from(i.response.headers)}return Promise.reject(i)})}let rp={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{rp[t]=function(n){return typeof n===t||"a"+(i<1?"n ":" ")+t}});let rm={};rp.transitional=function(t,i,n){function r(t,i){return"[Axios v1.18.1] Transitional option '"+t+"'"+i+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new np(r(o," has been removed"+(i?" in "+i:"")),np.ERR_DEPRECATED);return i&&!rm[o]&&(rm[o]=!0,console.warn(r(o," has been deprecated since v"+i+" and will be removed in the near future"))),!t||t(n,o,a)}},rp.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};let rf=function(t,i,n){if("object"!=typeof t||null===t)throw new np("options must be an object",np.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(i,a)?i[a]:void 0;if(s){let i=t[a],n=void 0===i||s(i,a,t);if(!0!==n)throw new np("option "+a+" must be "+n,np.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new np("Unknown option "+a,np.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new nE,response:new nE}}async request(t,i){try{return await this._request(t,i)}catch(t){if(t instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=Error();let n=(()=>{if(!i.stack)return"";let t=i.stack.indexOf("\n");return -1===t?"":i.stack.slice(t+1)})();try{if(t.stack){if(n){let i=n.indexOf("\n"),r=-1===i?-1:n.indexOf("\n",i+1),o=-1===r?"":n.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+n)}}else t.stack=n}catch(t){}}throw t}}_request(t,i){let n,r;"string"==typeof t?(i=i||{}).url=t:i=t||{};let{transitional:o,paramsSerializer:a,headers:s}=i=n1(this.defaults,i);void 0!==o&&rf(o,{silentJSONParsing:rp.transitional(rp.boolean),forcedJSONParsing:rp.transitional(rp.boolean),clarifyTimeoutError:rp.transitional(rp.boolean),legacyInterceptorReqResOrdering:rp.transitional(rp.boolean),advertiseZstdAcceptEncoding:rp.transitional(rp.boolean),validateStatusUndefinedResolves:rp.transitional(rp.boolean)},!1),null!=a&&(nt.isFunction(a)?i.paramsSerializer={serialize:a}:rf(a,{encode:rp.function,serialize:rp.function},!0)),void 0!==i.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),rf(i,{baseUrl:rp.spelling("baseURL"),withXsrfToken:rp.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&nt.merge(s.common,s[i.method]);s&&nt.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),i.headers=nu.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(i))return;d=d&&t.synchronous;let n=i.transitional||nC;n&&n.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,n=Promise.resolve(i);h<r;)n=n.then(t[h++],t[h++]);return n}r=c.length;let p=i;for(;h<r;){let t=c[h++],i=c[h++];try{p=t(p)}catch(t){i.call(this,t);break}}try{n=rh.call(this,p)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)n=n.then(u[h++],u[h++]);return n}getUri(t){return nF(nQ((t=n1(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}nt.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(i,n){return this.request(n1(n||{},{method:t,url:i,data:n&&nt.hasOwnProp(n,"data")?n.data:void 0}))}}),nt.forEach(["post","put","patch","query"],function(t){function i(i){return function(n,r,o){return this.request(n1(o||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rg.prototype[t]=i(),"query"!==t&&(rg.prototype[t+"Form"]=i(!0))});let rb=class t{constructor(t){let i;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){i=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](t);n._listeners=null}),this.promise.then=t=>{let i,r=new Promise(t=>{n.subscribe(t),i=t}).then(t);return r.cancel=function(){n.unsubscribe(i)},r},t(function(t,r,o){n.reason||(n.reason=new nj(t,r,o),i(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let i=this._listeners.indexOf(t);-1!==i&&this._listeners.splice(i,1)}toAbortSignal(){let t=new AbortController,i=i=>{t.abort(i)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let i;return{token:new t(function(t){i=t}),cancel:i}}},r_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r_).forEach(([t,i])=>{r_[i]=t});let rv=function t(i){let n=new rg(i),r=iw(rg.prototype.request,n);return nt.extend(r,rg.prototype,n,{allOwnKeys:!0}),nt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(n1(i,n))},r}(nB);rv.Axios=rg,rv.CanceledError=nj,rv.CancelToken=rb,rv.isCancel=nz,rv.VERSION="1.18.1",rv.toFormData=n_,rv.AxiosError=np,rv.Cancel=rv.CanceledError,rv.all=function(t){return Promise.all(t)},rv.spread=function(t){return function(i){return t.apply(null,i)}},rv.isAxiosError=function(t){return nt.isObject(t)&&!0===t.isAxiosError},rv.mergeConfig=n1,rv.AxiosHeaders=nu,rv.formToJSON=t=>nP(nt.isHTMLForm(t)?new FormData(t):t),rv.getAdapter=rd,rv.HttpStatusCode=r_,rv.default=rv;class ry{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rU`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rU`info`,options:t})}}class rx{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`dashboard`,data:t,options:i})}update(t,i){return this.httpClient.request({method:"PUT",url:rU`dashboard`,data:t,options:i})}getAllRealmDashboards(t,i){return this.httpClient.request({method:"GET",url:rU`dashboard/all/${t}`,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rU`dashboard/query`,data:t,options:i})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`dashboard/${t}/${i}`,options:n})}get(t,i,n){return this.httpClient.request({method:"GET",url:rU`dashboard/${t}/${i}`,options:n})}}class rw{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`realm`,data:t,options:i})}getAll(t){return this.httpClient.request({method:"GET",url:rU`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rU`realm/accessible`,options:t})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rU`realm/${t}`,options:i})}get(t,i){return this.httpClient.request({method:"GET",url:rU`realm/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`realm/${t}`,data:i,options:n})}}class rF{constructor(t){this.httpClient=t}register(t,i){return this.httpClient.request({method:"POST",url:rU`console/register`,data:t,options:i})}}class rE{constructor(t){this.httpClient=t}getServices(t,i){return this.httpClient.request({method:"GET",url:rU`service`,queryParams:t,options:i})}registerService(t,i){return this.httpClient.request({method:"POST",url:rU`service`,data:t,options:i})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rU`service/global`,options:t})}registerGlobalService(t,i){return this.httpClient.request({method:"POST",url:rU`service/global`,data:t,options:i})}deregisterService(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`service/${t}/${i}`,options:n})}getService(t,i,n){return this.httpClient.request({method:"GET",url:rU`service/${t}/${i}`,options:n})}heartbeat(t,i,n){return this.httpClient.request({method:"PUT",url:rU`service/${t}/${i}`,options:n})}}class rC{constructor(t){this.httpClient=t}getPredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`asset/predicted/${t}/${i}`,data:n,options:r})}writePredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`asset/predicted/${t}/${i}`,data:n,options:r})}}class rk{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rU`syslog/config`,options:t})}updateConfig(t,i){return this.httpClient.request({method:"PUT",url:rU`syslog/config`,data:t,options:i})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rU`syslog/event`,options:t})}getEvents(t,i){return this.httpClient.request({method:"GET",url:rU`syslog/event`,queryParams:t,options:i})}}class rA{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rU`configuration/manager`,options:t})}update(t,i){return this.httpClient.request({method:"PUT",url:rU`configuration/manager`,data:t,options:i})}fileUpload(t,i,n){return this.httpClient.request({method:"POST",url:rU`configuration/manager/file`,queryParams:i,data:t,options:n})}getManagerConfigImage(t,i){return this.httpClient.request({method:"GET",url:rU`configuration/manager/image/${t}`,options:i})}}class rT{constructor(t){this.httpClient=t}getDatapointExport(t,i){return this.httpClient.request({method:"GET",url:rU`asset/datapoint/export`,queryParams:t,options:i})}getDatapointPeriod(t,i){return this.httpClient.request({method:"GET",url:rU`asset/datapoint/periods`,queryParams:t,options:i})}getDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`asset/datapoint/${t}/${i}`,data:n,options:r})}}class rS{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rU`agent/assetDiscovery/${t}`,queryParams:i,options:n})}doProtocolAssetImport(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`agent/assetImport/${t}`,queryParams:n,data:i,options:r})}doProtocolInstanceDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rU`agent/instanceDiscovery/${t}`,queryParams:i,options:n})}}class rI{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,i){return this.httpClient.request({method:"PUT",url:rU`user/locale`,data:t,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rU`user/query`,data:t,options:i})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rU`user/request-password-reset`,options:t})}updatePasswordCurrent(t,i){return this.httpClient.request({method:"PUT",url:rU`user/reset-password`,data:t,options:i})}updateCurrent(t,i){return this.httpClient.request({method:"PUT",url:rU`user/update`,data:t,options:i})}getCurrent(t){return this.httpClient.request({method:"GET",url:rU`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rU`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,i){return this.httpClient.request({method:"GET",url:rU`user/userRoles/${t}`,options:i})}disconnectUserSession(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`user/${t}/disconnect/${i}`,options:n})}requestPasswordReset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/request-password-reset/${i}`,options:n})}updatePassword(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/reset-password/${i}`,data:n,options:r})}resetSecret(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/reset-secret/${i}`,options:n})}updateRoles(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/roles`,data:i,options:n})}getUserRealmRoles(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/userRealmRoles/${i}`,options:n})}updateUserRealmRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/userRealmRoles/${i}`,data:n,options:r})}getUserClientRoles(t,i,n,r){return this.httpClient.request({method:"GET",url:rU`user/${t}/userRoles/${i}/${n}`,options:r})}updateUserClientRoles(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rU`user/${t}/userRoles/${i}/${n}`,data:r,options:o})}getUserSessions(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/userSessions/${i}`,options:n})}create(t,i,n){return this.httpClient.request({method:"POST",url:rU`user/${t}/users`,data:i,options:n})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/users`,data:i,options:n})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`user/${t}/users/${i}`,options:n})}getClientRoles(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/${i}/roles`,options:n})}updateClientRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/${i}/roles`,data:n,options:r})}get(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/${i}`,options:n})}}class rD{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rU`map`,options:t})}saveSettings(t,i){return this.httpClient.request({method:"PUT",url:rU`map`,data:t,options:i})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rU`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rU`map/getCustomMapInfo`,options:t})}getTile(t,i,n,r){return this.httpClient.request({method:"GET",url:rU`map/tile/${t}/${i}/${n}`,options:r})}uploadMap(t,i){return this.httpClient.request({method:"POST",url:rU`map/upload`,queryParams:t,options:i})}}class rR{constructor(t){this.httpClient=t}createProvisioningConfig(t,i){return this.httpClient.request({method:"POST",url:rU`provisioning`,data:t,options:i})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rU`provisioning`,options:t})}deleteProvisioningConfig(t,i){return this.httpClient.request({method:"DELETE",url:rU`provisioning/${t}`,options:i})}updateProvisioningConfig(t,i,n){return this.httpClient.request({method:"PUT",url:rU`provisioning/${t}`,data:i,options:n})}}class rM{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rU`flow`,options:t})}getNodeDefinition(t,i){return this.httpClient.request({method:"GET",url:rU`flow/${t}`,options:i})}getAllNodeDefinitionsByType(t,i){return this.httpClient.request({method:"GET",url:rU`flow/${t}`,options:i})}}class rO{constructor(t){this.httpClient=t}startTunnel(t,i){return this.httpClient.request({method:"POST",url:rU`gateway/tunnel`,data:t,options:i})}stopTunnel(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/tunnel`,data:t,options:i})}getAllActiveTunnelInfos(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}`,options:i})}getGatewayActiveTunnelInfos(t,i,n){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}/${i}`,options:n})}getActiveTunnelInfo(t,i,n,r,o){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}/${i}/${n}/${r}`,options:o})}}class rL{constructor(t){this.httpClient=t}createGlobalRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules`,data:t,options:i})}getGlobalRulesets(t,i){return this.httpClient.request({method:"GET",url:rU`rules`,queryParams:t,options:i})}createAssetRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules/asset`,data:t,options:i})}getAssetRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rU`rules/asset/for/${t}`,queryParams:i,options:n})}deleteAssetRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/asset/${t}`,options:i})}getAssetRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/asset/${t}`,options:i})}updateAssetRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/asset/${t}`,data:i,options:n})}getAssetGeofences(t,i){return this.httpClient.request({method:"GET",url:rU`rules/geofences/${t}`,options:i})}getAssetEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rU`rules/info/asset/${t}`,options:i})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rU`rules/info/global`,options:t})}getRealmEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rU`rules/info/realm/${t}`,options:i})}createRealmRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules/realm`,data:t,options:i})}getRealmRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rU`rules/realm/for/${t}`,queryParams:i,options:n})}deleteRealmRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/realm/${t}`,options:i})}getRealmRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/realm/${t}`,options:i})}updateRealmRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/realm/${t}`,data:i,options:n})}deleteGlobalRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/${t}`,options:i})}getGlobalRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/${t}`,options:i})}updateGlobalRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/${t}`,data:i,options:n})}}class rP{constructor(t){this.httpClient=t}getNotifications(t,i){return this.httpClient.request({method:"GET",url:rU`notification`,queryParams:t,options:i})}removeNotifications(t,i){return this.httpClient.request({method:"DELETE",url:rU`notification`,queryParams:t,options:i})}sendNotification(t,i){return this.httpClient.request({method:"POST",url:rU`notification/alert`,data:t,options:i})}getNotificationsCount(t,i){return this.httpClient.request({method:"GET",url:rU`notification/count`,queryParams:t,options:i})}removeNotification(t,i){return this.httpClient.request({method:"DELETE",url:rU`notification/${t}`,options:i})}notificationAcknowledged(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`notification/${t}/acknowledged`,queryParams:n,data:i,options:r})}notificationDelivered(t,i,n){return this.httpClient.request({method:"PUT",url:rU`notification/${t}/delivered`,queryParams:i,options:n})}}class r${constructor(t){this.httpClient=t}getAssetDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/assetDescriptors`,queryParams:t,options:i})}getAssetInfo(t,i,n){return this.httpClient.request({method:"GET",url:rU`model/assetInfo/${t}`,queryParams:i,options:n})}getAssetInfos(t,i){return this.httpClient.request({method:"GET",url:rU`model/assetInfos`,queryParams:t,options:i})}getValueDescriptorSchema(t,i){return this.httpClient.request({method:"GET",url:rU`model/getValueDescriptorSchema`,queryParams:t,options:i})}getMetaItemDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/metaItemDescriptors`,queryParams:t,options:i})}getValueDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/valueDescriptors`,queryParams:t,options:i})}}class rB{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`asset`,data:t,options:i})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rU`asset`,queryParams:t,options:i})}writeAttributeValues(t,i){return this.httpClient.request({method:"PUT",url:rU`asset/attributes`,data:t,options:i})}writeAttributeEvents(t,i){return this.httpClient.request({method:"PUT",url:rU`asset/attributes/timestamp`,data:t,options:i})}queryCount(t,i){return this.httpClient.request({method:"POST",url:rU`asset/count`,data:t,options:i})}updateNoneParent(t,i){return this.httpClient.request({method:"DELETE",url:rU`asset/parent`,queryParams:t,options:i})}getPartial(t,i){return this.httpClient.request({method:"GET",url:rU`asset/partial/${t}`,options:i})}queryAssets(t,i){return this.httpClient.request({method:"POST",url:rU`asset/query`,data:t,options:i})}queryAssetTree(t,i){return this.httpClient.request({method:"POST",url:rU`asset/tree`,data:t,options:i})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rU`asset/user/current`,options:t})}createUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rU`asset/user/link`,data:t,options:i})}getUserAssetLinks(t,i){return this.httpClient.request({method:"GET",url:rU`asset/user/link`,queryParams:t,options:i})}deleteUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rU`asset/user/link/delete`,data:t,options:i})}deleteAllUserAssetLinks(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`asset/user/link/${t}/${i}`,options:n})}deleteUserAssetLink(t,i,n,r){return this.httpClient.request({method:"DELETE",url:rU`asset/user/link/${t}/${i}/${n}`,options:r})}get(t,i){return this.httpClient.request({method:"GET",url:rU`asset/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`asset/${t}`,data:i,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/attribute/${i}`,data:n,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/attribute/${i}/${n}`,data:r,options:o})}updateParent(t,i,n){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/child`,queryParams:i,options:n})}}class rN{constructor(t){this.httpClient=t}createAlarm(t,i,n){return this.httpClient.request({method:"POST",url:rU`alarm`,queryParams:i,data:t,options:n})}getAlarms(t,i){return this.httpClient.request({method:"GET",url:rU`alarm`,queryParams:t,options:i})}removeAlarms(t,i){return this.httpClient.request({method:"DELETE",url:rU`alarm`,data:t,options:i})}setAssetLinks(t,i){return this.httpClient.request({method:"PUT",url:rU`alarm/assets`,data:t,options:i})}getAlarm(t,i){return this.httpClient.request({method:"GET",url:rU`alarm/${t}`,options:i})}removeAlarm(t,i){return this.httpClient.request({method:"DELETE",url:rU`alarm/${t}`,options:i})}updateAlarm(t,i,n){return this.httpClient.request({method:"PUT",url:rU`alarm/${t}`,data:i,options:n})}getAssetLinks(t,i,n){return this.httpClient.request({method:"GET",url:rU`alarm/${t}/assets`,queryParams:i,options:n})}}class rz{constructor(t){this.httpClient=t}deleteConnections(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/connection`,queryParams:t,options:i})}getConnections(t){return this.httpClient.request({method:"GET",url:rU`gateway/connection`,options:t})}deleteConnection(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/connection/${t}`,options:i})}getConnection(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/connection/${t}`,options:i})}setConnection(t,i,n){return this.httpClient.request({method:"PUT",url:rU`gateway/connection/${t}`,data:i,options:n})}getConnectionStatus(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/status/${t}`,options:i})}}class rj{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rU`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rU`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rU`apps/info`,options:t})}}function rU(t,...i){let n="";for(let r=0;r<i.length;r++)n+=t[r],n+=encodeURIComponent(i[r]);return n+t[t.length-1]}class rV{constructor(t,i=rv.create()){this._statusResource=new rW(t,i),this._dashboardResource=new rq(t,i),this._realmResource=new rG(t,i),this._consoleResource=new rY(t,i),this._externalServiceResource=new rK(t,i),this._assetPredictedDatapointResource=new rX(t,i),this._syslogResource=new rZ(t,i),this._configurationResource=new rJ(t,i),this._assetDatapointResource=new rQ(t,i),this._agentResource=new r0(t,i),this._userResource=new r1(t,i),this._mapResource=new r2(t,i),this._provisioningResource=new r3(t,i),this._flowResource=new r5(t,i),this._gatewayServiceResource=new r4(t,i),this._rulesResource=new r6(t,i),this._notificationResource=new r8(t,i),this._assetModelResource=new r7(t,i),this._assetResource=new r9(t,i),this._alarmResource=new oe(t,i),this._gatewayClientResource=new ot(t,i),this._appResource=new oi(t,i),this._assetResource=new r9(t,i)}get StatusResource(){return this._statusResource}get DashboardResource(){return this._dashboardResource}get RealmResource(){return this._realmResource}get ConsoleResource(){return this._consoleResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get SyslogResource(){return this._syslogResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get AgentResource(){return this._agentResource}get UserResource(){return this._userResource}get MapResource(){return this._mapResource}get ProvisioningResource(){return this._provisioningResource}get FlowResource(){return this._flowResource}get GatewayServiceResource(){return this._gatewayServiceResource}get RulesResource(){return this._rulesResource}get NotificationResource(){return this._notificationResource}get AssetModelResource(){return this._assetModelResource}get AssetResource(){return this._assetResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}}class rH{constructor(t){this.axios=t}request(t){let i={};i.method=t.method,i.url=t.url,i.params=t.queryParams,i.data=t.data,function(t,i){if(void 0!=i)for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}(i,t.options);let n=t.copyFn;return this.axios.request(i).then(t=>(n&&t.data&&(t.originalData=t.data,t.data=n(t.data)),t))}}class rW extends ry{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rq extends rx{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rG extends rw{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rY extends rF{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rK extends rE{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rX extends rC{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rZ extends rk{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rJ extends rA{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rQ extends rT{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r0 extends rS{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r1 extends rI{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r2 extends rD{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r3 extends rR{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r5 extends rM{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r4 extends rO{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r6 extends rL{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r8 extends rP{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r7 extends r${constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r9 extends rB{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class oe extends rN{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class ot extends rz{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class oi extends rj{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}var on=n(8183),or=n.n(on);rv.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=rv.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rV(t,this._axiosInstance)}};var oa=function(t,i,n,r){return new(n||(n=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};(pj=mZ||(mZ={})).DISCONNECTED="DISCONNECTED",pj.CONNECTED="CONNECTED",pj.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=mZ.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,i){if(0===t.length)return;let n=t.indexOf(i);n>=0&&t.splice(n,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===mZ.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(mZ.CONNECTING),this._connectingDeferred=new ir,this._doConnect().then(t=>{if(this._connectingDeferred){let i=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(mZ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),i.resolve(t)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==mZ.DISCONNECTED&&this._doDisconnect())}subscribe(t,i){let n={eventSubscription:t,callback:i,deferred:new ir};return null!=this._pendingSubscription||this._status!==mZ.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,i),this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===mZ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==mZ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,i,n){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let i={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(i,t=>{this._assetEventCallbackMap.forEach(i=>i(t))})}return this._assetEventCallbackMap.set(o,t=>{let i=t.asset.id;r?r.find(t=>i===t)&&n(t):t.asset.realm===o0.displayRealm&&n(t)}),this._assetEventPromise.then(()=>{try{if(r&&i){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{n({eventType:"asset",asset:t,cause:"READ"})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),i}return o})})}subscribeAttributeEvents(t,i,n){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let i={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(i,t=>{this._attributeEventCallbackMap.forEach(i=>i(t))})}let l=i=>{let a=i.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&n(i)}):o?o.find(t=>a.id===t)&&n(i):i.realm===o0.displayRealm&&n(i)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(i&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([i,n])=>{(!a||a.find(n=>n.id===t.id&&n.name===i))&&l({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:t.id,name:i}})})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),i}return s})})}_processNextSubscription(){this._status===mZ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(i=>{let n=t.deferred;t.deferred=null,n&&n.resolve(i)},i=>{let n=t.deferred;t.deferred=null,n&&n.reject(i)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(i=>i(t))},0))}_onMessageReceived(t,i){let n=this._subscriptionMap.get(t);n&&n.callback(i)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===mZ.CONNECTED&&this._onStatusChanged(mZ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(mZ.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new ir,(o0.authenticated?o0.retrieveAuthorizationHeader().then(i=>{t+="&Authorization="+i}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let i=t.data;if(i&&i.startsWith(os)){let t=JSON.parse(i.substring(os.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(t.subscriptionId)}else if(i.startsWith(ol)){let t=JSON.parse(i.substring(ol.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),n.reject("Unauthorized"))}else if(i.startsWith(oc)){let t=JSON.parse(i.substring(oc.length));t.events&&t.events.forEach(i=>{this._onMessageReceived(t.subscriptionId,i)})}else if(i.startsWith(od)){let t=JSON.parse(i.substring(od.length));if(t.messageID){let i=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),i&&i.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new ir,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let i=od+JSON.stringify(t);this._webSocket.send(i)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let i=new ir;return this._repliesDeferred.set(t.messageID,i),this._webSocket.send(od+JSON.stringify(t)),i.promise}}oh._subscriptionCounter=1;let op=["__proto__","constructor","prototype"];function om(t){return!("string"!=typeof t||0===t.length||t.length>128||op.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!om(t)||t.indexOf("/")>-1)}let og={lng:of,ns:function(t){return om(t)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function o_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let ov=/\{\{(.+?)\}\}/g;function oy(t,i){let n=!1,r=t.replace(ov,(t,r)=>{let o=r.trim();if(op.indexOf(o)>-1)return t;let a=i[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let i of l)if(!s(i))return n=!0,t;return l.join("+")});return n?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=o_()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,oE=["__proto__","constructor","prototype"],oC=(t,i)=>{if(i&&"object"==typeof i){let n="";for(let t of Object.keys(i))oE.indexOf(t)>-1||(n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(i[t]));if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t},ok=(i,n,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(i=>{r(null,{status:t.status,data:i})}).catch(r)};if(o){let t=o(i,n);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(i,n).then(a).catch(r):t(i,n).then(a).catch(r)},oA=(i,n,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==n.indexOf("file:")){var a=n,s=r,l=o;i.queryStringParams&&(a=oC(a,i.queryStringParams));let t={..."function"==typeof i.customHeaders?i.customHeaders():i.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof i.requestOptions?i.requestOptions(s):i.requestOptions,d={method:s?"POST":"GET",body:s?i.stringify(s):void 0,headers:t,...i._omitFetchOptions?{}:c},u="function"==typeof i.alternateFetch&&i.alternateFetch.length>=1?i.alternateFetch:void 0;try{ok(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),ok(a,d,l,u),i._omitFetchOptions=!0}catch(t){l(t)}}return}if(o_()||"function"==typeof ActiveXObject){var c=n,d=r,u=o;d&&"object"==typeof d&&(d=oC("",d).slice(1)),i.queryStringParams&&(c=oC(c,i.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),i.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!i.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=i.customHeaders;if(n="function"==typeof n?n():n)for(let i of Object.keys(n))oE.indexOf(i)>-1||t.setRequestHeader(i,n[i]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oT=class{constructor(t,i={},n={}){this.services=t,this.options=i,this.allOptions=n,this.type="backend",this.init(t,i,n)}init(t,i={},n={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,i,n)=>({[i]:n||""}),parseLoadPayload:(t,i)=>void 0,request:oA,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...i},this.allOptions=n,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,i,n){this._readAny(t,t,i,i,n)}read(t,i,n){this._readAny([t],t,[i],i,n)}_readAny(t,i,n,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,n)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=oy(a,{lng:t.join("+"),ns:n.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+n.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,i,r)})}loadUrl(t,i,n,r){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let i=new URL(t);if(i.username||i.password)return i.username="",i.password="",i.toString();return t}catch(i){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return i("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return i("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let n=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>n.indexOf(t)>-1))return i("failed loading "+a+": "+ob(t.message),!0)}if(t)return i(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,n,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return i(l,!1);i(null,s)})}create(t,i,n,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(i,n,r),s=0,l=[],c=[];t.forEach(n=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(n,i));let d=oy(r,{lng:n,ns:i});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(i,n)=>{s+=1,l.push(i),c.push(n),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:i,logger:n}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{i.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(i=>{this.allOptions.ns.forEach(r=>{t.read(i,r,"read",null,null,(o,a)=>{o&&n.warn(`loading namespace ${r} for language ${i} failed`,o),!o&&a&&n.log(`loaded namespace ${r} for language ${i}`,a),t.loaded(`${i}|${r}`,o,a)})})})}};oT.type="backend";class oS extends eY{constructor(t){if(super(t),this.it=ev,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ev||null==t)return this._t=void 0,this.it=t;if(t===e_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eG(oS);class oI extends oS{}oI.directiveName="unsafeSVG",oI.resultType=2;let oD=eG(oI),oR={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oM=function(t,i,n,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(i,n,s):o(i,n))||s);return a>3&&s&&Object.defineProperty(i,n,s),s};class oO extends CustomEvent{constructor(){super(oO.NAME,{bubbles:!0,composed:!0})}}oO.NAME="or-iconset-added";let oL=new class{constructor(){this._icons={}}addIconSet(t,i){this._icons[t]=i,this._defaultIconSet||(this._defaultIconSet=i),i.onAdd&&i.onAdd(),window.dispatchEvent(new oO)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let i=(t||"").split(":"),n=i.pop(),r=i.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),n&&o)?o.getIconTemplate(n):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[R`
|
|
840
|
+
`,t7([eU({type:String})],t9.prototype,"value",void 0),t7([eU({type:Object})],t9.prototype,"options",void 0),t9=t7([ez("or-translate")],t9),(hV=pJ||(pJ={})).CREATE="CREATE",hV.UPDATE="UPDATE",hV.DELETE="DELETE",(hH=pQ||(pQ={})).LOW="LOW",hH.MEDIUM="MEDIUM",hH.HIGH="HIGH",(hW=p0||(p0={})).MANUAL="MANUAL",hW.CLIENT="CLIENT",hW.GLOBAL_RULESET="GLOBAL_RULESET",hW.REALM_RULESET="REALM_RULESET",hW.ASSET_RULESET="ASSET_RULESET",hW.AGENT="AGENT",(hq=p1||(p1={})).OPEN="OPEN",hq.ACKNOWLEDGED="ACKNOWLEDGED",hq.IN_PROGRESS="IN_PROGRESS",hq.RESOLVED="RESOLVED",hq.CLOSED="CLOSED",(hG=p2||(p2={})).BOTTOM_LEFT="BOTTOM_LEFT",hG.BOTTOM_RIGHT="BOTTOM_RIGHT",hG.TOP_LEFT="TOP_LEFT",hG.TOP_RIGHT="TOP_RIGHT",(hY=p3||(p3={})).CREATE="CREATE",hY.READ="READ",hY.UPDATE="UPDATE",hY.DELETE="DELETE",(hK=p5||(p5={})).NONE="NONE",hK.FORECAST="FORECAST",hK.SETPOINT="SETPOINT",(hX=p4||(p4={})).DISCONNECTED="DISCONNECTED",hX.CONNECTING="CONNECTING",hX.DISCONNECTING="DISCONNECTING",hX.CONNECTED="CONNECTED",hX.DISABLED="DISABLED",hX.WAITING="WAITING",hX.ERROR="ERROR",hX.STOPPED="STOPPED",(hZ=p6||(p6={})).REQUEST_START="REQUEST_START",hZ.REQUEST_REPEATING="REQUEST_REPEATING",hZ.REQUEST_CANCEL="REQUEST_CANCEL",hZ.READY="READY",hZ.COMPLETED="COMPLETED",hZ.RUNNING="RUNNING",hZ.CANCELLED="CANCELLED",(hJ=p8||(p8={})).TOGGLE="TOGGLE",hJ.INCREMENT="INCREMENT",hJ.DECREMENT="DECREMENT",hJ.NEGATE="NEGATE",(hQ=p7||(p7={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",hQ.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",hQ.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",hQ.INVALID_VALUE="INVALID_VALUE",hQ.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",hQ.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",hQ.CANNOT_PROCESS="CANNOT_PROCESS",hQ.QUEUE_FULL="QUEUE_FULL",hQ.UNKNOWN="UNKNOWN",hQ.ASSET_ID_MISSING="ASSET_ID_MISSING",hQ.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(h0=p9||(p9={})).PUBLIC="PUBLIC",h0.SHARED="SHARED",h0.PRIVATE="PRIVATE",(h1=me||(me={})).OFF="OFF",h1.ONE_MIN="ONE_MIN",h1.FIVE_MIN="FIVE_MIN",h1.QUARTER="QUARTER",h1.ONE_HOUR="ONE_HOUR",(h2=mt||(mt={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",h2.KEEP_LAYOUT="KEEP_LAYOUT",h2.REDIRECT="REDIRECT",h2.BLOCK_DEVICE="BLOCK_DEVICE",(h3=mi||(mi={})).CSV="CSV",h3.CSV_CROSSTAB="CSV_CROSSTAB",h3.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(h5=mn||(mn={})).MINUTE="MINUTE",h5.HOUR="HOUR",h5.DAY="DAY",h5.WEEK="WEEK",h5.MONTH="MONTH",h5.YEAR="YEAR",(h4=mr||(mr={})).MIN="MIN",h4.AVG="AVG",h4.MAX="MAX",h4.DIFFERENCE="DIFFERENCE",h4.COUNT="COUNT",h4.SUM="SUM",h4.MODE="MODE",h4.MEDIAN="MEDIAN",(h6=mo||(mo={})).TERMINATING="TERMINATING",h6.DISABLED="DISABLED",h6.ALREADY_CONNECTED="ALREADY_CONNECTED",h6.UNRECOGNISED="UNRECOGNISED",h6.PERMANENT_ERROR="PERMANENT_ERROR",h6.SYNC_ERROR="SYNC_ERROR",(h8=ma||(ma={})).HTTPS="HTTPS",h8.HTTP="HTTP",h8.TCP="TCP",(h7=ms||(ms={})).GET="GET",h7.POST="POST",h7.PUT="PUT",h7.DELETE="DELETE",h7.OPTIONS="OPTIONS",h7.PATCH="PATCH",(h9=ml||(ml={})).KEYCLOAK="KEYCLOAK",h9.NONE="NONE",(pe=mc||(mc={})).WEBSOCKET="WEBSOCKET",pe.POLLING="POLLING",(pt=md||(md={})).INTERNAL="INTERNAL",pt.CLIENT="CLIENT",pt.GLOBAL_RULESET="GLOBAL_RULESET",pt.REALM_RULESET="REALM_RULESET",pt.ASSET_RULESET="ASSET_RULESET",(pi=mu||(mu={})).REALM="REALM",pi.USER="USER",pi.ASSET="ASSET",pi.CUSTOM="CUSTOM",(pn=mh||(mh={})).NORMAL="NORMAL",pn.HIGH="HIGH",(pr=mp||(mp={})).DEVICE="DEVICE",pr.TOPIC="TOPIC",pr.CONDITION="CONDITION",(po=mm||(mm={})).ALWAYS="ALWAYS",po.ONCE="ONCE",po.HOURLY="HOURLY",po.DAILY="DAILY",po.WEEKLY="WEEKLY",po.MONTHLY="MONTHLY",po.ANNUALLY="ANNUALLY",(pa=mf||(mf={})).TITLE="TITLE",pa.SOURCE="SOURCE",pa.STATUS="STATUS",pa.SENT_ON="SENT_ON",pa.DELIVERED_ON="DELIVERED_ON",(ps=mg||(mg={})).MESSAGE_INVALID="MESSAGE_INVALID",ps.CERTIFICATE_INVALID="CERTIFICATE_INVALID",ps.UNAUTHORIZED="UNAUTHORIZED",ps.FORBIDDEN="FORBIDDEN",ps.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",ps.CONFIG_DISABLED="CONFIG_DISABLED",ps.USER_DISABLED="USER_DISABLED",ps.SERVER_ERROR="SERVER_ERROR",ps.ASSET_ERROR="ASSET_ERROR",ps.SERVER_BUSY="SERVER_BUSY",(pl=mb||(mb={})).PRIVATE="PRIVATE",pl.PROTECTED="PROTECTED",pl.PUBLIC="PUBLIC",(pc=m_||(m_={})).EXACT="EXACT",pc.BEGIN="BEGIN",pc.END="END",pc.CONTAINS="CONTAINS",(pd=mv||(mv={})).EQUALS="EQUALS",pd.GREATER_THAN="GREATER_THAN",pd.GREATER_EQUALS="GREATER_EQUALS",pd.LESS_THAN="LESS_THAN",pd.LESS_EQUALS="LESS_EQUALS",pd.BETWEEN="BETWEEN",(pu=my||(my={})).CREATED_ON="CREATED_ON",pu.NAME="NAME",pu.ASSET_TYPE="ASSET_TYPE",pu.PARENT_ID="PARENT_ID",pu.REALM="REALM",(ph=mx||(mx={})).RESTRICTED="RESTRICTED",ph.LINKED="LINKED",ph.REALM="REALM",(pp=mw||(mw={})).AT_LEAST_ONE="AT_LEAST_ONE",pp.ALL="ALL",pp.NONE="NONE",(pm=mF||(mF={})).AND="AND",pm.OR="OR",(pf=mE||(mE={})).CREATED_ON="CREATED_ON",pf.FIRST_NAME="FIRST_NAME",pf.LAST_NAME="LAST_NAME",pf.USERNAME="USERNAME",pf.EMAIL="EMAIL",(pg=mC||(mC={})).STOPPED="STOPPED",pg.RUNNING="RUNNING",pg.ERROR="ERROR",(pb=mk||(mk={})).JAVASCRIPT="JAVASCRIPT",pb.GROOVY="GROOVY",pb.JSON="JSON",pb.FLOW="FLOW",(p_=mA||(mA={})).READY="READY",p_.DEPLOYED="DEPLOYED",p_.COMPILATION_ERROR="COMPILATION_ERROR",p_.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",p_.EXECUTION_ERROR="EXECUTION_ERROR",p_.LOOP_ERROR="LOOP_ERROR",p_.DISABLED="DISABLED",p_.PAUSED="PAUSED",p_.EXPIRED="EXPIRED",p_.REMOVED="REMOVED",p_.EMPTY="EMPTY",(pv=mT||(mT={})).SUNRISE="SUNRISE",pv.SUNSET="SUNSET",pv.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",pv.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",pv.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",pv.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",pv.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",pv.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",pv.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",pv.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",pv.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",pv.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",pv.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",pv.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",pv.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",pv.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",pv.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",pv.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",pv.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",pv.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(py=mS||(mS={})).NUMBER="NUMBER",py.NUMBER_ARRAY="NUMBER_ARRAY",py.STRING="STRING",py.BOOLEAN="BOOLEAN",py.TRIGGER="TRIGGER",py.COLOR="COLOR",py.ANY="ANY",(px=mI||(mI={})).NEW_LINE="NEW_LINE",px.SPACER="SPACER",(pw=mD||(mD={})).INPUT="INPUT",pw.PROCESSOR="PROCESSOR",pw.OUTPUT="OUTPUT",pw.THEN="THEN",(pF=mR||(mR={})).TEXT="TEXT",pF.MULTILINE="MULTILINE",pF.NUMBER="NUMBER",pF.DROPDOWN="DROPDOWN",pF.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pF.CHECKBOX="CHECKBOX",pF.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pF.COLOR="COLOR",pF.DATE="DATE",(pE=mM||(mM={})).ADD="ADD",pE.ADD_OR_REPLACE="ADD_OR_REPLACE",pE.REPLACE="REPLACE",pE.DELETE="DELETE",pE.CLEAR="CLEAR",(pC=mO||(mO={})).PER_ASSET="PER_ASSET",pC.GLOBAL="GLOBAL",(pk=mL||(mL={})).READ_ADMIN="read:admin",pk.READ_LOGS="read:logs",pk.READ_USERS="read:users",pk.READ_MAP="read:map",pk.READ_ASSETS="read:assets",pk.READ_RULES="read:rules",pk.READ_INSIGHTS="read:insights",pk.READ_ALARMS="read:alarms",pk.READ_NOTIFICATIONS="read:notifications",pk.READ_SERVICES="read:services",pk.READ_TUNNELS="read:tunnels",pk.WRITE_SERVICES="write:services",pk.WRITE_USER="write:user",pk.WRITE_ADMIN="write:admin",pk.WRITE_LOGS="write:logs",pk.WRITE_ASSETS="write:assets",pk.WRITE_ATTRIBUTES="write:attributes",pk.WRITE_RULES="write:rules",pk.WRITE_INSIGHTS="write:insights",pk.WRITE_ALARMS="write:alarms",pk.WRITE_NOTIFICATIONS="write:notifications",pk.WRITE_TUNNELS="write:tunnels",pk.READ="read",pk.WRITE="write",(pA=mP||(mP={})).REGISTER="REGISTER",pA.UPDATE="UPDATE",pA.DEREGISTER="DEREGISTER",(pT=m$||(m$={})).AVAILABLE="AVAILABLE",pT.UNAVAILABLE="UNAVAILABLE",(pS=mB||(mB={})).ASSET="ASSET",pS.AGENT="AGENT",pS.NOTIFICATION="NOTIFICATION",pS.ALARM="ALARM",pS.RULES="RULES",pS.PROTOCOL="PROTOCOL",pS.GATEWAY="GATEWAY",pS.MODEL_AND_VALUES="MODEL_AND_VALUES",pS.API="API",pS.DATA="DATA",(pI=mN||(mN={})).INFO="INFO",pI.WARN="WARN",pI.ERROR="ERROR",(pD=mz||(mz={})).NUMERIC="numeric",pD.DIGIT_2="2-digit",pD.FULL="full",pD.LONG="long",pD.MEDIUM="medium",pD.SHORT="short",pD.NARROW="narrow",(pR=mj||(mj={})).SECONDLY="SECONDLY",pR.MINUTELY="MINUTELY",pR.HOURLY="HOURLY",pR.DAILY="DAILY",pR.WEEKLY="WEEKLY",pR.MONTHLY="MONTHLY",pR.YEARLY="YEARLY",(pM=mU||(mU={})).OMIT="OMIT",pM.BACKWARD="BACKWARD",pM.FORWARD="FORWARD",(pO=mV||(mV={})).JAPANESE="JAPANESE",pO.BUDDHIST="BUDDHIST",pO.ROC="ROC",pO.ISLAMIC="ISLAMIC",pO.ISO8601="ISO8601",pO.CHINESE="CHINESE",pO.ETHIOPIC="ETHIOPIC",pO.HEBREW="HEBREW",pO.GREGORIAN="GREGORIAN",(pL=mH||(mH={})).SU="SU",pL.MO="MO",pL.TU="TU",pL.WE="WE",pL.TH="TH",pL.FR="FR",pL.SA="SA",(pP=mW||(mW={})).PEOPLECOUNTERASSET="PeopleCounterAsset",pP.MAILAGENT="MailAgent",pP.UDPAGENT="UDPAgent",pP.ROOMASSET="RoomAsset",pP.CITYASSET="CityAsset",pP.VENTILATIONASSET="VentilationAsset",pP.TRADFRILIGHTASSET="TradfriLightAsset",pP.CONSOLEASSET="ConsoleAsset",pP.PRESENCESENSORASSET="PresenceSensorAsset",pP.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",pP.LIGHTASSET="LightAsset",pP.KNXAGENT="KNXAgent",pP.THETHINGSSTACKAGENT="TheThingsStackAgent",pP.PLUGASSET="PlugAsset",pP.CHIRPSTACKAGENT="ChirpStackAgent",pP.WEATHERASSET="WeatherAsset",pP.THINGASSET="ThingAsset",pP.WEBSOCKETAGENT="WebsocketAgent",pP.TCPAGENT="TCPAgent",pP.GATEWAYASSET="GatewayAsset",pP.SERIALAGENT="SerialAgent",pP.BLUETOOTHMESHAGENT="BluetoothMeshAgent",pP.PARKINGASSET="ParkingAsset",pP.TRADFRIPLUGASSET="TradfriPlugAsset",pP.SIMULATORAGENT="SimulatorAgent",pP.SNMPAGENT="SNMPAgent",pP.GROUPASSET="GroupAsset",pP.BUILDINGASSET="BuildingAsset",pP.MODBUSSERIALAGENT="ModbusSerialAgent",pP.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",pP.MQTTAGENT="MQTTAgent",pP.VELBUSTCPAGENT="VelbusTCPAgent",pP.ARTNETLIGHTASSET="ArtnetLightAsset",pP.VELBUSSERIALAGENT="VelbusSerialAgent",pP.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",pP.MICROPHONEASSET="MicrophoneAsset",pP.MODBUSTCPAGENT="ModbusTcpAgent",pP.ZWAVEAGENT="ZWaveAgent",pP.HTTPAGENT="HTTPAgent",pP.DOORASSET="DoorAsset",pP.THERMOSTATASSET="ThermostatAsset",pP.SHIPASSET="ShipAsset",(p$=mq||(mq={})).COLOURRGB="colourRGB",p$.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",p$.PRICEHOURLY="priceHourly",p$.MQTTPORT="MQTTPort",p$.PINGDISABLED="pingDisabled",p$.FLOW="flow",p$.CHILDASSETTYPE="childAssetType",p$.LASTACCESS="lastAccess",p$.POSITION="position",p$.NETWORKKEY="networkKey",p$.UNIVERSE="universe",p$.ROUTINGMODE="routingMode",p$.MSSINUMBER="MSSINumber",p$.LASTWILLRETAIN="lastWillRetain",p$.LASTWILLTOPIC="lastWillTopic",p$.SERIALBAUDRATE="serialBaudrate",p$.SUBSCRIBEQOS="subscribeQos",p$.LEDCOUNT="lEDCount",p$.LOCKED="locked",p$.CLOUDCOVERAGE="cloudCoverage",p$.BASEURL="baseURL",p$.PROTOCOL="protocol",p$.REQUIREDVALUES="requiredValues",p$.REGION="region",p$.CONSOLEPLATFORM="consolePlatform",p$.GATEWAYSTATUS="gatewayStatus",p$.NO2LEVEL="NO2Level",p$.ATMOSPHERICPRESSURE="atmosphericPressure",p$.SERIALPORT="serialPort",p$.APPLICATIONID="applicationId",p$.TAGS="tags",p$.UNLOCK="unlock",p$.CHECKINTERVALSECONDS="checkIntervalSeconds",p$.LOCATION="location",p$.CLIENTSECRET="clientSecret",p$.WINDDIRECTION="windDirection",p$.WINDSPEED="windSpeed",p$.PARTICLESPM10="particlesPM10",p$.APPLICATIONKEY="applicationKey",p$.LENGTH="length",p$.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",p$.USERNAMEPASSWORD="usernamePassword",p$.WATERLEVEL="waterLevel",p$.CONNECTHEADERS="connectHeaders",p$.CONSOLENAME="consoleName",p$.WEBSOCKETQUERY="websocketQuery",p$.PREFERHTML="preferHTML",p$.PARITY="parity",p$.COOLING="cooling",p$.POLLINGMILLIS="pollingMillis",p$.SOILTEMPERATURE="soilTemperature",p$.SUNIRRADIANCE="sunIrradiance",p$.MESSAGEMAXLENGTH="messageMaxLength",p$.WINDGUSTSPEED="windGustSpeed",p$.LIGHTID="lightId",p$.PROXYADDRESS="proxyAddress",p$.REQUESTQUERYPARAMETERS="requestQueryParameters",p$.MQTTHOST="MQTTHost",p$.SECUREGRPC="secureGRPC",p$.MODEL="model",p$.STREET="street",p$.MANUFACTURER="manufacturer",p$.DELETEPROCESSEDMAIL="deleteProcessedMail",p$.RESUMESESSION="resumeSession",p$.ONOFF="onOff",p$.APIKEY="ApiKey",p$.CITY="city",p$.PRESENCE="presence",p$.SPACESOCCUPIED="spacesOccupied",p$.STARTTLS="startTLS",p$.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",p$.WEBSOCKETPATH="websocketPath",p$.AGENTSTATUS="agentStatus",p$.PRICEDAILY="priceDaily",p$.COUNTGROWTHMINUTE="countGrowthMinute",p$.IMONUMBER="IMONumber",p$.ATTRIBUTION="Attribution",p$.TENANTID="tenantId",p$.REQUESTHEADERS="requestHeaders",p$.HOST="host",p$.COUNTOUTMINUTE="countOutMinute",p$.MESSAGECHARSET="messageCharset",p$.CERTIFICATEALIAS="certificateAlias",p$.EMAIL="email",p$.BINDPORT="bindPort",p$.CONSOLEVERSION="consoleVersion",p$.PARTICLESPM1="particlesPM1",p$.MTU="mtu",p$.SPEED="speed",p$.MESSAGESTRIPDELIMITER="messageStripDelimiter",p$.AREA="area",p$.COUNTRY="country",p$.SHIPTYPE="shipType",p$.CONNECTSUBSCRIPTIONS="connectSubscriptions",p$.RELATIVEHUMIDITY="relativeHumidity",p$.SOURCEADDRESS="sourceAddress",p$.RAINFALL="rainfall",p$.OAUTHGRANT="oAuthGrant",p$.OZONELEVEL="ozoneLevel",p$.SEQUENCENUMBER="sequenceNumber",p$.COUNTINMINUTE="countInMinute",p$.PORT="port",p$.SUNALTITUDE="sunAltitude",p$.COUNTOUT="countOut",p$.ROOMNUMBER="roomNumber",p$.TUNNELINGSUPPORTED="tunnelingSupported",p$.ENINUMBER="ENINumber",p$.PARTICLESPM2_5="particlesPM2_5",p$.AGENTDISABLED="agentDisabled",p$.DISABLED="disabled",p$.COUNTIN="countIn",p$.MESSAGESOURCEADDRESS="messageSourceAddress",p$.PROVISIONWEATHERASSET="ProvisionWeatherAsset",p$.TIMEINJECTIONINTERVAL="timeInjectionInterval",p$.TEMPERATURESETPOINT="temperatureSetpoint",p$.CONSOLEPROVIDERS="consoleProviders",p$.COUNTTOTAL="countTotal",p$.SPACESBUFFER="spacesBuffer",p$.DEVICECONFIG="deviceConfig",p$.SPACESTOTAL="spacesTotal",p$.BINDHOST="bindHost",p$.FANSPEED="fanSpeed",p$.MESSAGECONVERTBINARY="messageConvertBinary",p$.NOTES="notes",p$.MAILFOLDERNAME="mailFolderName",p$.MESSAGEDELIMITERS="messageDelimiters",p$.TEMPERATURE="temperature",p$.SUNZENITH="sunZenith",p$.SNMPVERSIONVALUE="SNMPVersionValue",p$.BRIGHTNESS="brightness",p$.POSTALCODE="postalCode",p$.SPACESOPEN="spacesOpen",p$.HUMIDITY="humidity",p$.SOUNDLEVEL="soundLevel",p$.SECUREMODE="secureMode",p$.DIRECTION="direction",p$.STOPBITS="stopbits",p$.UVINDEX="uVIndex",p$.CONNECTURL="connectURL",p$.CLIENTID="clientId",p$.NATMODE="NATMode",p$.UPDATEONWRITE="updateOnWrite",p$.LASTWILLPAYLOAD="lastWillPayload",p$.GROUPID="groupId",p$.FOLLOWREDIRECTS="followRedirects",p$.SUNAZIMUTH="sunAzimuth",p$.MESSAGECONVERTHEX="messageConvertHex",p$.WEBSOCKETMODE="websocketMode",p$.COLOURTEMPERATURE="colourTemperature",p$.PUBLISHQOS="publishQos",p$.DATABITS="dataBits",(pB=mG||(mG={})).FORMAT="format",pB.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",pB.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",pB.SECRET="secret",pB.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",pB.ATTRIBUTELINKS="attributeLinks",pB.RULERESETIMMEDIATE="ruleResetImmediate",pB.RULESTATE="ruleState",pB.AGENTLINKCONFIG="agentLinkConfig",pB.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",pB.FORECAST="forecast",pB.STOREDATAPOINTS="storeDataPoints",pB.LABEL="label",pB.CONSTRAINTS="constraints",pB.UNITS="units",pB.USERCONNECTED="userConnected",pB.SHOWONDASHBOARD="showOnDashboard",pB.READONLY="readOnly",pB.MULTILINE="multiline",pB.ACCESSPUBLICWRITE="accessPublicWrite",pB.MOMENTARY="momentary",pB.AGENTLINK="agentLink",pB.ACCESSRESTRICTEDREAD="accessRestrictedRead",pB.ACCESSPUBLICREAD="accessPublicRead",(pN=mY||(mY={})).ASSETQUERY="assetQuery",pN.WSURL="WS_URL",pN.COLOURRGB="colourRGB",pN.VALUEFORMAT="valueFormat",pN.TEXT="text",pN.BYTE="byte",pN.USERNAMEANDPASSWORD="usernameAndPassword",pN.HTTPURL="HTTP_URL",pN.ATTRIBUTELINK="attributeLink",pN.ASSETID="assetID",pN.NUMBERMAP="numberMap",pN.HTTPMETHOD="HTTPMethod",pN.ATTRIBUTESTATE="attributeState",pN.POSITIVENUMBER="positiveNumber",pN.POSITIVEINTEGER="positiveInteger",pN.EXECUTIONSTATUS="executionStatus",pN.BIGINTEGER="bigInteger",pN.VALUEDESCRIPTOR="valueDescriptor",pN.PERIODDURATIONISO8601="periodDurationISO8601",pN.LONG="long",pN.DATEANDTIME="dateAndTime",pN.BOOLEANMAP="booleanMap",pN.MQTTQOS="MQTTQos",pN.NEGATIVEINTEGER="negativeInteger",pN.TCPIPPORTNUMBER="TCP_IPPortNumber",pN.GEOJSONPOINT="GEO_JSONPoint",pN.SNMPVERSION="SNMPVersion",pN.ASSETTYPE="assetType",pN.JSONOBJECT="JSONObject",pN.INTEGERMAP="integerMap",pN.BIGNUMBER="bigNumber",pN.IPADDRESS="IPAddress",pN.EMAIL="email",pN.TIMESTAMP="timestamp",pN.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",pN.ATTRIBUTEREFERENCE="attributeReference",pN.UUID="UUID",pN.INTEGER="integer",pN.OAUTHGRANT="oAuthGrant",pN.NUMBER="number",pN.DEVICECONFIGMAP="DeviceConfigMap",pN.TEXTMAP="textMap",pN.WEBSOCKETSUBSCRIPTION="websocketSubscription",pN.BOOLEAN="boolean",pN.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",pN.FORECASTCONFIGURATION="forecastConfiguration",pN.TIMEDURATIONISO8601="timeDurationISO8601",pN.TIMESTAMPISO8601="timestampISO8601",pN.CONSOLEPROVIDERS="consoleProviders",pN.MULTIVALUEDTEXTMAP="multivaluedTextMap",pN.NEGATIVENUMBER="negativeNumber",pN.PARITYBIT="Paritybit",pN.JSON="JSON",pN.CRONEXPRESSION="CRONExpression",pN.INTEGERBYTE="integerByte",pN.AGENTLINK="agentLink",pN.DIRECTION="direction",pN.HOSTORIPADDRESS="hostOrIPAddress",pN.STOPBITS="Stopbits",pN.CALENDAREVENT="calendarEvent",pN.CONNECTIONSTATUS="connectionStatus",pN.VALUECONSTRAINT="valueConstraint",(pz=mK||(mK={})).MONTH="month",pz.MILE_SCANDINAVIAN="mile_scandinavian",pz.VAR="var",pz.OUNCE="ounce",pz.HECTARE="hectare",pz.YARD="yard",pz.YEAR="year",pz.GIGA="giga",pz.JOULE="joule",pz.VOLT="volt",pz.HERTZ="hertz",pz.MILE="mile",pz.DEGREE="degree",pz.KILO="kilo",pz.BTU="btu",pz.TERA="tera",pz.FOOT="foot",pz.MEGA="mega",pz.KELVIN="kelvin",pz.CARBON="carbon",pz.DECIBEL_ATTENUATED="decibel_attenuated",pz.INCH="inch",pz.SQUARED="squared",pz.PERCENTAGE="percentage",pz.IN_HG="inch_mercury",pz.CENTI="centi",pz.GRAM="gram",pz.CUBED="cubed",pz.DAY="day",pz.RADIAN="radian",pz.OHM="ohm",pz.MINUTE="minute",pz.PART_PER_MILLION="ppm",pz.AMP="amp",pz.MASS_POUND="pound",pz.KNOT="knot",pz.METRE="metre",pz.LITRE="litre",pz.FLUID_OUNCE="fluid_ounce",pz.HOUR="hour",pz.ACRE="acre",pz.CELSIUS="celsius",pz.RPM="rpm",pz.PASCAL="pascal",pz.DECIBEL="decibel",pz.LUMEN="lumen",pz.WEEK="week",pz.FAHRENHEIT="fahrenheit",pz.WATT="watt",pz.GALLON="gallon",pz.LUX="lux",pz.MILLI="milli",pz.BAR="bar",pz.HECTO="hecto",pz.PEAK="peak",pz.SECOND="second",pz.MICRO="micro",pz.PER="per",pz.STONE="stone",mX||(mX={});class ie{static getAssetDescriptors(){return ie._assetTypeInfos.map(t=>t.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(t){if(t)return t.assetDescriptor?t:("string"!=typeof t&&(t=t.name),this._assetTypeInfos.find(i=>i.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let i=this._assetTypeInfos.find(i=>i.assetDescriptor.name===t);return i?i.assetDescriptor:void 0}static getAttributeDescriptor(t,i){if(!t)return;let n=this.getAssetTypeInfo(i||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(i=>i.name===t)}static getValueDescriptor(t){let i;if(!t)return;if(t.endsWith("[]"))for(i=0;t.endsWith("[]");)t=t.substring(0,t.length-2),i++;let n=this._valueDescriptors.find(i=>i.name===t);return n&&i&&(n=Object.assign(Object.assign({},n),{arrayDimensions:i})),n}static resolveValueDescriptor(t,i){let n;return i&&("string"==typeof i&&(n=ie.getValueDescriptor(i)),n=i.jsonType?i:ie.getValueDescriptor(i.type)),!n&&t&&(n=ie.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(t){if(null!=t){if("number"==typeof t)return"number";if("string"==typeof t)return"text";if("boolean"==typeof t)return"boolean";if(Array.isArray(t)){let i=1,n=t.find(t=>null!=t);for(;Array.isArray(n);)n=n.find(t=>null!=t),i++;let r=this.resolveValueTypeFromValue(n);if(!r)return;for(;i>0;)r+="[]",i--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,i,n){let r,o;if(i&&"string"!=typeof i)r=i;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof i&&(r=this.getAttributeDescriptor(i,o)),!r&&n&&(r={type:n.type,name:n.name,meta:n.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(i=>i.name===t)}static getAssetDescriptorColour(t,i){let n=this.getAssetDescriptor(t);return n&&n.colour?n.colour:i}static getAssetDescriptorIcon(t,i){let n=this.getAssetDescriptor(t);return n&&n.icon?n.icon:i}}ie._assetTypeInfos=[],ie._metaItemDescriptors=[],ie._valueDescriptors=[],n(4532);var it=n(4867),ii=n.n(it);n(3472);class ir{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,i)=>{this._resolve=t,this._reject=i}),Object.freeze(this)}}function io(t,i,n=!0){if(null==t||null==i)return t===i;if(t.constructor!==i.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===i;if(t===i||t.valueOf()===i.valueOf())return!0;if(Array.isArray(t)&&t.length!==i.length||t instanceof Date||!(t instanceof Object)||!(i instanceof Object))return!1;if(n){if(Array.isArray(t))return t.every((t,n)=>io(t,i[n]));let n=Object.keys(t);return Object.keys(i).every(t=>-1!==n.indexOf(t))&&n.every(n=>io(t[n],i[n]))}return!1}function ia(t){if(null==t)return"";let i=!1;return t.split(/([A-Z]|\d)/).map((t,n,r)=>{if(!t)return t;if(!i)return i=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let i=!r[n-1]||"_"===r[n-1],o=n+1<r.length&&r[n+1]&&"_"!==r[n+1],a=n+3>r.length||!r[n+1]&&!r[n+3];(!i||o)&&(t=" "+t),!o&&(i||a)||(t=t.toLowerCase())}return t}).join("").trim()}function is(t,i,n){let r="string"==typeof t?t:t.name;return i&&i.meta&&i.meta.hasOwnProperty(r)?i.meta[r]:n&&n.meta?n.meta[r]:void 0}function il(t){return("string"==typeof t&&(t=ie.getAssetDescriptor(t)),t)?t8.t("label.asset."+t.name,{defaultValue:ia(t.name)}):""}function ic(t,i){let n="string"==typeof t?ie.getMetaItemDescriptor(t):t;return n?{name:n.name,type:n.type,value:i}:{name:typeof t,type:ie.resolveValueTypeFromValue(i),value:i}}function id(t,i,n,r,o,a){let s=ig("label",t,i,n,o),l="";if(s||(s=is("label",t,i&&i.meta?i:void 0)),r&&(l=ip(im("units",t,i,n,o))),!s){let n=t?t.name:i?"string"==typeof i?i:i.name:void 0;s=a||(n?ia(n):void 0)}return s?s+(l?" ("+l+")":""):l}function iu(t,i,n,r,o,a){let s=ih(t?t.value:void 0,()=>im("format",t,i,n,o),void 0,a),l=im("units",t,i,n,!0);return r&&l&&l.length&&(s=ip(im("units",t,i,n,o),s)),s}function ih(t,i,n,r){let o="";if(null==t)o=r||"";else if("string"==typeof t)o=t;else if("number"==typeof t||"boolean"==typeof t||t instanceof Date){let r=i&&i();if(r&&0!==Object.keys(r).length)switch("number"==typeof t?r.asBoolean?t=!!t:r.asDate&&(t=new Date(t)):"boolean"==typeof t&&r.asNumber&&(t=+!!t),typeof t){case"number":o=new Intl.NumberFormat(n||t8.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t8.t("on"):t8.t("off")),r.asOpenClosed&&(o=t?t8.t("open"):t8.t("closed")),r.asPressedReleased&&(o=t?t8.t("pressed"):t8.t("released"));break;case"object":if(r.momentJsFormat)o=ii()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let i,n=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),i=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-i.getTime())/864e5+1)/7));o="2-digit"===r.week?String(n).padStart(2,"0"):Number(n).toString(10)}else o=new Intl.DateTimeFormat(n||t8.language,r).format(t)}else o=Object(t).toString()}return o}function ip(t,i){if(!t)return"";i||(i="");let n=t.map((t,n)=>{if(3!==t.length||t.toUpperCase()!==t)return t8.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t8.language,{currency:t,style:"currency"}).formatToParts();if(0!==n||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!i)return r[0].value;i=r[0].value+i}}).join("");return i.length>0?i+" "+n:n}function im(t,i,n,r,o){let a,s=[],l=ig(t,i&&"string"==typeof i?i:i?i.name:n?"string"==typeof n?n:n.name:void 0,n,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(i&&i.meta&&(a=is(t,i,n)))if("format"!==t)return a;else s.push(a);if(n&&"string"!=typeof n&&n.hasOwnProperty(t)){if(a=n[t],"format"!==t)return a;s.push(a)}if(n&&n.type){if(a=ie.getValueDescriptor(n.type)[t],"format"!==t)return a;s.push(a)}if("format"!==t||0===s.length)return a;let c={};return s.reverse().forEach(t=>{c=Object.assign(Object.assign({},c),t)}),c}function ig(t,i,n,r,o,a){let s;if(i?s="string"==typeof i?i:i.name:n&&(s="string"==typeof n?n:n.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),n&&"string"!=typeof n&&(l.push(c+n.type+"."+s),l.push(c+n.type)),l.push(c+s),l.length>0)return t8.t(l,{defaultValue:a||""})}function ib(t,i){let n=i.ref.name;if(t.attributes)if(i.deleted)delete t.attributes[n];else{let r=t.attributes[n];r&&(r.value=i.value,r.timestamp=i.timestamp)}return Object.assign({},t)}class i_{constructor(t){t&&Object.assign(this,t)}matches(t){var i,n,r,o,a,s,l;if((null==(i=this.ids)?void 0:i.length)&&(!t.id||!this.ids.includes(t.id))||(null==(n=this.types)?void 0:n.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(i=>!i.id||t.parentId===i.id))return!1;if(null==(a=this.paths)?void 0:a.length){let i=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var n;return(null!=(n=t.path)?n:[]).every((t,n)=>i[n]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(i=>i_._evalValuePredicate(t.name,i)))&&(!this.attributes||i_._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!i_._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?i_._collectNames(this.attributes):[]}static _evalValuePredicate(t,i){var n;switch(i.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==i.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==i.caseSensitive?i.value:null==(n=i.value)?void 0:n.toLowerCase();switch(i.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return i.negate?!r:r}case"boolean":return t===i.value;case"number":{let n;if("number"!=typeof t)return!1;switch(i.operator){case"GREATER_THAN":n=t>i.value;break;case"GREATER_EQUALS":n=t>=i.value;break;case"LESS_THAN":n=t<i.value;break;case"LESS_EQUALS":n=t<=i.value;break;case"BETWEEN":n=t>=i.value&&t<=i.rangeValue;break;default:n=t===i.value}return i.negate?!n:n}}return!1}static _evalPredicate(t,i){var n,r;let o=null==(n=i.name)?void 0:n.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!i.negated;let s=!i.value||i_._evalValuePredicate(a.value,i.value);return i.negated?!s:s}static _evalGroup(t,i){var n,r,o;let a=null!=(n=i.operator)?n:"AND",s=[...(null!=(r=i.items)?r:[]).map(i=>i_._evalPredicate(t,i)),...(null!=(o=i.groups)?o:[]).map(i=>i_._evalGroup(t,i))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var i,n;return[...(null!=(i=t.items)?i:[]).map(t=>{var i;return null==(i=t.name)?void 0:i.value}).filter(t=>!!t),...(null!=(n=t.groups)?n:[]).flatMap(t=>i_._collectNames(t))]}}i_._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var iv=function(t,i,n,r){return new(n||(n=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};let iy=n(4461);class ix{constructor(t,i,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=i,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let r=new URLSearchParams(window.location.search),o=r.get("consoleName"),a=r.get("consoleVersion"),s=r.get("consolePlatform"),l=r.get("consoleProviders"),c=r.get("consoleAutoEnable"),d=l&&l.length>0?l.split(" "):["push"];this._pendingProviderEnables=d;let u=ix._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=u.providers;for(let t of(u.providers={},d)){let i=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};u.providers[t]=i}let m=o0.getAppName();m.length>0&&0>u.apps.indexOf(m)&&u.apps.push(m),this._registration=u,o&&(u.name=o),a&&(u.version=a),s&&(u.platform=s),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let t=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return t&&("iP"===t.substring(0,2)||"Mac"===t.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return iv(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let t=this._pendingProviderEnables.length-1;t>-1;t--){let i=this._pendingProviderEnables[t];yield this.enableProvider(i)}})}enableProvider(t,i){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let n={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:i},r=yield this.sendProviderMessage(n,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return iv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: disabling provider '"+t+"'");let i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,i})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,i){return iv(this,void 0,void 0,function*(){if("storage"!==t.provider&&!this._registration.providers.hasOwnProperty(t.provider))throw console.debug("Invalid console provider '"+t.provider+"'"),Error("Invalid console provider '"+t.provider+"'");if(!i)return void this._doSendProviderMessage(t);let n=t.provider+t.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new ir,o=()=>{delete this._pendingProviderPromises[n],r.reject("No response from provider")};return this._pendingProviderPromises[n]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,i)=>{this._registrationTimer=window.setTimeout(()=>iv(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),i(t)}}))})}_sendRegistration(t){return iv(this,void 0,void 0,function*(){this._normaliseRegistration();let i=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(t&&i&&ix._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let i=t&&t.response?t.response.status:void 0;return 403===i||409===i}storeData(t,i){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:i},!1)}retrieveData(t){return iv(this,void 0,void 0,function*(){let i=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([i,new Promise((t,i)=>setTimeout(i,2e3))]);if(t&&t.value){let i=t.value;return"null"===i?void 0:i}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,i){this._providerMessageListeners[t.provider+t.action]=i}removeProviderMessageListener(t){delete this._providerMessageListeners[t.provider+t.action]}_postNativeShellMessage(t){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(t));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(t)}catch(t){console.error("Failed to send shell message towards console",t)}}_doSendGenericMessage(t,i){let n={type:t,data:i};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(t){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:t});else{if(!t.provider||!t.action)return;switch(t.provider.trim().toUpperCase()){case"PUSH":switch(t.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;case"STORAGE":switch(t.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(i):window.localStorage.setItem(i,JSON.stringify(t.value))}break;case"RETRIEVE":{let i=t.key?t.key.trim():null;if(!i||0===i.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(i);if(null!==n)try{n=JSON.parse(n)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:i,value:n}))}break;default:throw Error("Unsupported provider '"+t.provider+"' and action '"+t.action+"'")}break;default:console.error("Unsupported provider: "+t.provider)}}}_handleProviderResponse(t){if(!t)return;let i=JSON.parse(t),n=i.provider,r=i.action,o=this._pendingProviderPromises[n+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+r],o[0].resolve(i));let a=this._providerMessageListeners[n+r];a&&a(i)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:iy.name,version:iy.version,platform:iy.os.toString(),apps:[],model:((iy.manufacturer?iy.manufacturer+" ":"")+(iy.product?iy.product:"")).trim()}}_initialiseProvider(t){return iv(this,void 0,void 0,function*(){let i;console.debug("Console: initialising provider '"+t+"'");try{i=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=i.version,this._registration.providers[t].requiresPermission=i.requiresPermission,this._registration.providers[t].hasPermission=i.hasPermission,this._registration.providers[t].success=i.success,this._registration.providers[t].enabled=i.enabled,this._registration.providers[t].disabled=i.disabled,this._registration.providers[t].data=i.data}catch(t){console.error(t),i={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(i.success||(console.debug("Provider initialisation failed: '"+t+"'"),i.disabled=!0,this._registration.providers[t].disabled=!0),i.disabled||i.enabled){let i=this._pendingProviderEnables.indexOf(t);i>=0&&this._pendingProviderEnables.splice(i,1)}})}}function iw(t,i){return function(){return t.apply(i,arguments)}}let{toString:iF}=Object.prototype,{getPrototypeOf:iE}=Object,{iterator:iC,toStringTag:ik}=Symbol,iA=(({hasOwnProperty:t})=>(i,n)=>t.call(i,n))(Object.prototype),iT=(t,i)=>{let n=t,r=[];for(;null!=n&&n!==Object.prototype&&-1===r.indexOf(n);){if(r.push(n),iA(n,i))return!0;n=iE(n)}return!1},iS=(u=Object.create(null),t=>{let i=iF.call(t);return u[i]||(u[i]=i.slice(8,-1).toLowerCase())}),iI=t=>(t=t.toLowerCase(),i=>iS(i)===t),iD=t=>i=>typeof i===t,{isArray:iR}=Array,iM=iD("undefined");function iO(t){return null!==t&&!iM(t)&&null!==t.constructor&&!iM(t.constructor)&&i$(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let iL=iI("ArrayBuffer"),iP=iD("string"),i$=iD("function"),iB=iD("number"),iN=t=>null!==t&&"object"==typeof t,iz=t=>{if(!iN(t))return!1;let i=iE(t);return(null===i||i===Object.prototype||null===iE(i))&&!iT(t,ik)&&!iT(t,iC)},ij=iI("Date"),iU=iI("File"),iV=iI("Blob"),iH=iI("FileList"),iW="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},iq=void 0!==iW.FormData?iW.FormData:void 0,iG=iI("URLSearchParams"),[iY,iK,iX,iZ]=["ReadableStream","Request","Response","Headers"].map(iI);function iJ(t,i,{allOwnKeys:n=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),iR(t))for(r=0,o=t.length;r<o;r++)i.call(null,t[r],r,t);else{let o;if(iO(t))return;let a=n?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],i.call(null,t[o],o,t)}}function iQ(t,i){let n;if(iO(t))return null;i=i.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(i===(n=r[o]).toLowerCase())return n;return null}let i0="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,i1=t=>!iM(t)&&t!==i0,i2=(h="u">typeof Uint8Array&&iE(Uint8Array),t=>h&&t instanceof h),i3=iI("HTMLFormElement"),{propertyIsEnumerable:i5}=Object.prototype,i4=iI("RegExp"),i6=(t,i)=>{let n=Object.getOwnPropertyDescriptors(t),r={};iJ(n,(n,o)=>{let a;!1!==(a=i(n,o,t))&&(r[o]=a||n)}),Object.defineProperties(t,r)},i8=iI("AsyncFunction"),i7=(hN="function"==typeof setImmediate,hz=i$(i0.postMessage),hN?setImmediate:hz?(hj=`axios@${Math.random()}`,hU=[],i0.addEventListener("message",({source:t,data:i})=>{t===i0&&i===hj&&hU.length&&hU.shift()()},!1),t=>{hU.push(t),i0.postMessage(hj,"*")}):t=>setTimeout(t)),i9="u">typeof queueMicrotask?queueMicrotask.bind(i0):"u">typeof process&&process.nextTick||i7,ne=t=>null!=t&&i$(t[iC]),nt={isArray:iR,isArrayBuffer:iL,isBuffer:iO,isFormData:t=>{if(!t)return!1;if(iq&&t instanceof iq)return!0;let i=iE(t);if(!i||i===Object.prototype||!i$(t.append))return!1;let n=iS(t);return"formdata"===n||"object"===n&&i$(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&iL(t.buffer)},isString:iP,isNumber:iB,isBoolean:t=>!0===t||!1===t,isObject:iN,isPlainObject:iz,isEmptyObject:t=>{if(!iN(t)||iO(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:iY,isRequest:iK,isResponse:iX,isHeaders:iZ,isUndefined:iM,isDate:ij,isFile:iU,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:iV,isRegExp:i4,isFunction:i$,isStream:t=>iN(t)&&i$(t.pipe),isURLSearchParams:iG,isTypedArray:i2,isFileList:iH,forEach:iJ,merge:function t(...i){let{caseless:n,skipUndefined:r}=i1(this)&&this||{},o={},a=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&"string"==typeof a&&iQ(o,a)||a,l=iA(o,s)?o[s]:void 0;iz(l)&&iz(i)?o[s]=t(l,i):iz(i)?o[s]=t({},i):iR(i)?o[s]=i.slice():r&&iM(i)||(o[s]=i)};for(let t=0,n=i.length;t<n;t++){let n=i[t];if(!n||iO(n)||(iJ(n,a),"object"!=typeof n||iR(n)))continue;let r=Object.getOwnPropertySymbols(n);for(let t=0;t<r.length;t++){let i=r[t];i5.call(n,i)&&a(n[i],i)}}return o},extend:(t,i,n,{allOwnKeys:r}={})=>(iJ(i,(i,r)=>{n&&i$(i)?Object.defineProperty(t,r,{__proto__:null,value:iw(i,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,i,n,r)=>{t.prototype=Object.create(i.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:i.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,i,n,r)=>{let o,a,s,l={};if(i=i||{},null==t)return i;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,i))&&!l[s]&&(i[s]=t[s],l[s]=!0);t=!1!==n&&iE(t)}while(t&&(!n||n(t,i))&&t!==Object.prototype);return i},kindOf:iS,kindOfTest:iI,endsWith:(t,i,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=i.length;let r=t.indexOf(i,n);return -1!==r&&r===n},toArray:t=>{if(!t)return null;if(iR(t))return t;let i=t.length;if(!iB(i))return null;let n=Array(i);for(;i-- >0;)n[i]=t[i];return n},forEachEntry:(t,i)=>{let n,r=(t&&t[iC]).call(t);for(;(n=r.next())&&!n.done;){let r=n.value;i.call(t,r[0],r[1])}},matchAll:(t,i)=>{let n,r=[];for(;null!==(n=t.exec(i));)r.push(n);return r},isHTMLForm:i3,hasOwnProperty:iA,hasOwnProp:iA,hasOwnInPrototypeChain:iT,getSafeProp:(t,i)=>null!=t&&iT(t,i)?t[i]:void 0,reduceDescriptors:i6,freezeMethods:t=>{i6(t,(i,n)=>{if(i$(t)&&["arguments","caller","callee"].includes(n))return!1;if(i$(t[n])){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(t,i)=>{let n={};return(iR(t)?t:String(t).split(i)).forEach(t=>{n[t]=!0}),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,i)=>null!=t&&Number.isFinite(t*=1)?t:i,findKey:iQ,global:i0,isContextDefined:i1,isSpecCompliantForm:function(t){return!!(t&&i$(t.append)&&"FormData"===t[ik]&&t[iC])},toJSONObject:t=>{let i=new WeakSet,n=t=>{if(iN(t)){if(i.has(t))return;if(iO(t))return t;if(!("toJSON"in t)){i.add(t);let r=iR(t)?[]:{};return iJ(t,(t,i)=>{let o=n(t);iM(o)||(r[i]=o)}),i.delete(t),r}}return t};return n(t)},isAsyncFn:i8,isThenable:t=>t&&(iN(t)||i$(t))&&i$(t.then)&&i$(t.catch),setImmediate:i7,asap:i9,isIterable:ne,isSafeIterable:t=>null!=t&&iT(t,iC)&&ne(t)},ni=nt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),nn=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nr=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function no(t,i){return nt.isArray(t)?t.map(t=>no(t,i)):function(t){let i=0,n=t.length;for(;i<n;){let n=t.charCodeAt(i);if(9!==n&&32!==n)break;i+=1}for(;n>i;){let i=t.charCodeAt(n-1);if(9!==i&&32!==i)break;n-=1}return 0===i&&n===t.length?t:t.slice(i,n)}(String(t).replace(i,""))}function na(t){let i=Object.create(null);return nt.forEach(t.toJSON(),(t,n)=>{i[n]=no(t,nr)}),i}let ns=Symbol("internals");function nl(t){return t&&String(t).trim().toLowerCase()}function nc(t){return!1===t||null==t?t:nt.isArray(t)?t.map(nc):no(String(t),nn)}function nd(t,i,n,r,o){if(nt.isFunction(r))return r.call(this,i,n);if(o&&(i=n),nt.isString(i)){if(nt.isString(r))return -1!==i.indexOf(r);if(nt.isRegExp(r))return r.test(i)}}class nu{constructor(t){t&&this.set(t)}set(t,i,n){let r=this;function o(t,i,n){let o=nl(i);if(!o)return;let a=nt.findKey(r,o);a&&void 0!==r[a]&&!0!==n&&(void 0!==n||!1===r[a])||(r[a||i]=nc(t))}let a=(t,i)=>nt.forEach(t,(t,n)=>o(t,n,i));if(nt.isPlainObject(t)||t instanceof this.constructor)a(t,i);else{let r;if(nt.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let n,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||l[n]&&ni[n]||("set-cookie"===n?l[n]?l[n].push(r):l[n]=[r]:l[n]=l[n]?l[n]+", "+r:r)}),l),i)}else if(nt.isObject(t)&&nt.isSafeIterable(t)){let n=Object.create(null),r,o;for(let i of t){if(!nt.isArray(i))throw TypeError("Object iterator must return a key-value pair");o=i[0],nt.hasOwnProp(n,o)?(r=n[o],n[o]=nt.isArray(r)?[...r,i[1]]:[r,i[1]]):n[o]=i[1]}a(n,i)}else null!=t&&o(i,t,n)}return this}get(t,i){if(t=nl(t)){let n=nt.findKey(this,t);if(n){let t=this[n];if(!i)return t;if(!0===i){let i,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;i=r.exec(t);)n[i[1]]=i[2];return n}if(nt.isFunction(i))return i.call(this,t,n);if(nt.isRegExp(i))return i.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=nl(t)){let n=nt.findKey(this,t);return!!(n&&void 0!==this[n]&&(!i||nd(this,this[n],n,i)))}return!1}delete(t,i){let n=this,r=!1;function o(t){if(t=nl(t)){let o=nt.findKey(n,t);o&&(!i||nd(n,n[o],o,i))&&(delete n[o],r=!0)}}return nt.isArray(t)?t.forEach(o):o(t),r}clear(t){let i=Object.keys(this),n=i.length,r=!1;for(;n--;){let o=i[n];(!t||nd(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let i=this,n={};return nt.forEach(this,(r,o)=>{let a=nt.findKey(n,o);if(a){i[a]=nc(r),delete i[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,i,n)=>i.toUpperCase()+n):String(o).trim();s!==o&&delete i[o],i[s]=nc(r),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let i=Object.create(null);return nt.forEach(this,(n,r)=>{null!=n&&!1!==n&&(i[r]=t&&nt.isArray(n)?n.join(", "):n)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){let n=new this(t);return i.forEach(t=>n.set(t)),n}static accessor(t){let i=(this[ns]=this[ns]={accessors:{}}).accessors,n=this.prototype;function r(t){let r=nl(t);if(!i[r]){let o;o=nt.toCamelCase(" "+t),["get","set","has"].forEach(i=>{Object.defineProperty(n,i+o,{__proto__:null,value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})}),i[r]=!0}}return nt.isArray(t)?t.forEach(r):r(t),this}}nu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nt.reduceDescriptors(nu.prototype,({value:t},i)=>{let n=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(t){this[n]=t}}}),nt.freezeMethods(nu);class nh extends Error{static from(t,i,n,r,o,a){let s=new nh(t.message,i||t.code,n,r,o);return Object.defineProperty(s,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,i,n,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,i&&(this.code=i),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,i,n,r=this.config,o=r&&nt.hasOwnProp(r,"redact")?r.redact:void 0,a=nt.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),i=[],(n=r=>{let o;if(null===r||"object"!=typeof r||nt.isBuffer(r))return r;if(-1===i.indexOf(r)){if(r instanceof nu&&(r=r.toJSON()),i.push(r),nt.isArray(r))o=[],r.forEach((t,i)=>{let r=n(t);nt.isUndefined(r)||(o[i]=r)});else{if(!nt.isPlainObject(r)&&function(t){if(nt.hasOwnProp(t,"toJSON"))return!0;let i=Object.getPrototypeOf(t);for(;i&&i!==Object.prototype;){if(nt.hasOwnProp(i,"toJSON"))return!0;i=Object.getPrototypeOf(i)}return!1}(r))return i.pop(),r;for(let[i,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(i.toLowerCase())?"[REDACTED ****]":n(a);nt.isUndefined(r)||(o[i]=r)}}return i.pop(),o}})(r)):nt.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}}nh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",nh.ERR_BAD_OPTION="ERR_BAD_OPTION",nh.ECONNABORTED="ECONNABORTED",nh.ETIMEDOUT="ETIMEDOUT",nh.ECONNREFUSED="ECONNREFUSED",nh.ERR_NETWORK="ERR_NETWORK",nh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",nh.ERR_DEPRECATED="ERR_DEPRECATED",nh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",nh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",nh.ERR_CANCELED="ERR_CANCELED",nh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",nh.ERR_INVALID_URL="ERR_INVALID_URL",nh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let np=nh;function nm(t){return nt.isPlainObject(t)||nt.isArray(t)}function nf(t){return nt.endsWith(t,"[]")?t.slice(0,-2):t}function ng(t,i,n){return t?t.concat(i).map(function(t,i){return t=nf(t),!n&&i?"["+t+"]":t}).join(n?".":""):i}let nb=nt.toFlatObject(nt,{},null,function(t){return/^is[A-Z]/.test(t)}),n_=function(t,i,n){if(!nt.isObject(t))throw TypeError("target must be an object");i=i||new FormData;let r=(n=nt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,i){return!nt.isUndefined(i[t])})).metaTokens,o=n.visitor||m,a=n.dots,s=n.indexes,l=n.Blob||"u">typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,d=l&&nt.isSpecCompliantForm(i),u=[];if(!nt.isFunction(o))throw TypeError("visitor must be a function");function h(t){if(null===t)return"";if(nt.isDate(t))return t.toISOString();if(nt.isBoolean(t))return t.toString();if(!d&&nt.isBlob(t))throw new np("Blob is not supported. Use a Buffer instead.");if(nt.isArrayBuffer(t)||nt.isTypedArray(t)){if(d&&"function"==typeof l)return new l([t]);if("u">typeof Buffer)return Buffer.from(t);throw new np("Blob is not supported. Use a Buffer instead.",np.ERR_NOT_SUPPORT)}return t}function p(t){if(t>c)throw new np("Object is too deeply nested ("+t+" levels). Max depth: "+c,np.ERR_FORM_DATA_DEPTH_EXCEEDED)}function m(t,n,o){let l=t;if(nt.isReactNative(i)&&nt.isReactNativeBlob(t))return i.append(ng(o,n,a),h(t)),!1;if(t&&!o&&"object"==typeof t)if(nt.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=function(t){if(1/0===c)return JSON.stringify(t);let i=[];return JSON.stringify(t,function(t,n){if(!nt.isObject(n))return n;for(;i.length&&i[i.length-1]!==this;)i.pop();return i.push(n),p(1+i.length-1),n})}(t);else{var d;if(nt.isArray(t)&&(d=t,nt.isArray(d)&&!d.some(nm))||(nt.isFileList(t)||nt.endsWith(n,"[]"))&&(l=nt.toArray(t)))return n=nf(n),l.forEach(function(t,r){nt.isUndefined(t)||null===t||i.append(!0===s?ng([n],r,a):null===s?n:n+"[]",h(t))}),!1}return!!nm(t)||(i.append(ng(o,n,a),h(t)),!1)}let f=Object.assign(nb,{defaultVisitor:m,convertValue:h,isVisitable:nm});if(!nt.isObject(t))throw TypeError("data must be an object");return!function t(n,r,a=0){if(!nt.isUndefined(n)){if(p(a),-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),nt.forEach(n,function(n,s){!0===(!(nt.isUndefined(n)||null===n)&&o.call(i,n,nt.isString(s)?s.trim():s,r,f))&&t(n,r?r.concat(s):[s],a+1)}),u.pop()}}(t),i};function nv(t){let i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return i[t]})}function ny(t,i){this._pairs=[],t&&n_(t,this,i)}let nx=ny.prototype;function nw(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nF(t,i,n){let r;if(!i)return t;t=t||"";let o=nt.isFunction(n)?{serialize:n}:n,a=nt.getSafeProp(o,"encode")||nw,s=nt.getSafeProp(o,"serialize");if(r=s?s(i,o):nt.isURLSearchParams(i)?i.toString():new ny(i,o).toString(a)){let i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}nx.append=function(t,i){this._pairs.push([t,i])},nx.toString=function(t){let i=t?i=>t.call(this,i,nv):nv;return this._pairs.map(function(t){return i(t[0])+"="+i(t[1])},"").join("&")};let nE=class{constructor(){this.handlers=[]}use(t,i,n){return this.handlers.push({fulfilled:t,rejected:i,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nt.forEach(this.handlers,function(i){null!==i&&t(i)})}},nC={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},nk="u">typeof URLSearchParams?URLSearchParams:ny,nA="u">typeof FormData?FormData:null,nT="u">typeof Blob?Blob:null,nS="u">typeof window&&"u">typeof document,nI="object"==typeof navigator&&navigator||void 0,nD=nS&&(!nI||0>["ReactNative","NativeScript","NS"].indexOf(nI.product)),nR="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nM=nS&&window.location.href||"http://localhost",nO={...C,isBrowser:!0,classes:{URLSearchParams:nk,FormData:nA,Blob:nT},protocols:["http","https","file","blob","url","data"]};function nL(t){if(t>100)throw new np("FormData field is too deeply nested ("+t+" levels). Max depth: 100",np.ERR_FORM_DATA_DEPTH_EXCEEDED)}let nP=function(t){if(nt.isFormData(t)&&nt.isFunction(t.entries)){let i={};return nt.forEachEntry(t,(t,n)=>{!function t(i,n,r,o){nL(o);let a=i[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=i.length;return(a=!a&&nt.isArray(r)?r.length:a,l)?nt.hasOwnProp(r,a)?r[a]=nt.isArray(r[a])?r[a].concat(n):[r[a],n]:r[a]=n:(nt.hasOwnProp(r,a)&&nt.isObject(r[a])||(r[a]=[]),t(i,n,r[a],o)&&nt.isArray(r[a])&&(r[a]=function(t){let i,n,r={},o=Object.keys(t),a=o.length;for(i=0;i<a;i++)r[n=o[i]]=t[n];return r}(r[a]))),!s}(function(t){let i,n=[],r=/\w+|\[(\w*)]/g;for(;null!==(i=r.exec(t));)nL(n.length),n.push("[]"===i[0]?"":i[1]||i[0]);return n}(t),n,i,0)}),i}return null},n$=(t,i)=>null!=t&&nt.hasOwnProp(t,i)?t[i]:void 0,nB={transitional:nC,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){let n,r=i.getContentType()||"",o=r.indexOf("application/json")>-1,a=nt.isObject(t);if(a&&nt.isHTMLForm(t)&&(t=new FormData(t)),nt.isFormData(t))return o?JSON.stringify(nP(t)):t;if(nt.isArrayBuffer(t)||nt.isBuffer(t)||nt.isStream(t)||nt.isFile(t)||nt.isBlob(t)||nt.isReadableStream(t))return t;if(nt.isArrayBufferView(t))return t.buffer;if(nt.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let i=n$(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return n_(t,new nO.classes.URLSearchParams,{visitor:function(t,i,n,r){return nO.isNode&&nt.isBuffer(t)?(this.append(i,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...i}).toString();if((n=nt.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=n$(this,"env"),o=r&&r.FormData;return n_(n?{"files[]":t}:t,o&&new o,i)}}if(a||o){i.setContentType("application/json",!1);var s=t;if(nt.isString(s))try{return(0,JSON.parse)(s),nt.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let i=n$(this,"transitional")||nB.transitional,n=i&&i.forcedJSONParsing,r=n$(this,"responseType"),o="json"===r;if(nt.isResponse(t)||nt.isReadableStream(t))return t;if(t&&nt.isString(t)&&(n&&!r||o)){let n=i&&i.silentJSONParsing;try{return JSON.parse(t,n$(this,"parseReviver"))}catch(t){if(!n&&o){if("SyntaxError"===t.name)throw np.from(t,np.ERR_BAD_RESPONSE,this,null,n$(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nO.classes.FormData,Blob:nO.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function nN(t,i){let n=this||nB,r=i||n,o=nu.from(r.headers),a=r.data;return nt.forEach(t,function(t){a=t.call(n,a,o.normalize(),i?i.status:void 0)}),o.normalize(),a}function nz(t){return!!(t&&t.__CANCEL__)}nt.forEach(["delete","get","head","post","put","patch","query"],t=>{nB.headers[t]={}});let nj=class extends np{constructor(t,i,n){super(null==t?"canceled":t,np.ERR_CANCELED,i,n),this.name="CanceledError",this.__CANCEL__=!0}};function nU(t,i,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):i(new np("Request failed with status code "+n.status,n.status>=400&&n.status<500?np.ERR_BAD_REQUEST:np.ERR_BAD_RESPONSE,n.config,n.request,n))}let nV=function(t,i){let n,r=Array(t=t||10),o=Array(t),a=0,s=0;return i=void 0!==i?i:1e3,function(l){let c=Date.now(),d=o[s];n||(n=c),r[a]=l,o[a]=c;let u=s,h=0;for(;u!==a;)h+=r[u++],u%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-n<i)return;let p=d&&c-d;return p?Math.round(1e3*h/p):void 0}},nH=function(t,i){let n,r,o=0,a=1e3/i,s=(i,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),t(...i)};return[(...t)=>{let i=Date.now(),l=i-o;l>=a?s(t,i):(n=t,r||(r=setTimeout(()=>{r=null,s(n)},a-l)))},()=>n&&s(n)]},nW=(t,i,n=3)=>{let r=0,o=nV(50,250);return nH(n=>{if(!n||"number"!=typeof n.loaded)return;let a=n.loaded,s=n.lengthComputable?n.total:void 0,l=null!=s?Math.min(a,s):a,c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:n,lengthComputable:null!=s,[i?"download":"upload"]:!0})},n)},nq=(t,i)=>{let n=null!=t;return[r=>i[0]({lengthComputable:n,total:t,loaded:r}),i[1]]},nG=t=>(...i)=>nt.asap(()=>t(...i)),nY=nO.hasStandardBrowserEnv?(p=new URL(nO.origin),m=nO.navigator&&/(msie|trident)/i.test(nO.navigator.userAgent),t=>(t=new URL(t,nO.origin),p.protocol===t.protocol&&p.host===t.host&&(m||p.port===t.port))):()=>!0,nK=nO.hasStandardBrowserEnv?{write(t,i,n,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(i)}`];nt.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),nt.isString(r)&&l.push(`path=${r}`),nt.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nt.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let i=document.cookie.split(";");for(let n=0;n<i.length;n++){let r=i[n].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},nX=/^https?:(?!\/\/)/i,nZ=/[\t\n\r]/g;function nJ(t,i){if("string"==typeof t&&nX.test((function(t){let i=0;for(;i<t.length&&32>=t.charCodeAt(i);)i++;return t.slice(i)})(t).replace(nZ,"")))throw new np('Invalid URL: missing "//" after protocol',np.ERR_INVALID_URL,i)}function nQ(t,i,n,r){nJ(i,r);let o=!("string"==typeof i&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));return t&&(o||!1===n)?(nJ(t,r),i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t):i}let n0=t=>t instanceof nu?{...t}:t;function n1(t,i){t=t||{},i=i||{};let n=Object.create(null);function r(t,i,n,r){return nt.isPlainObject(t)&&nt.isPlainObject(i)?nt.merge.call({caseless:r},t,i):nt.isPlainObject(i)?nt.merge({},i):nt.isArray(i)?i.slice():i}function o(t,i,n,o){return nt.isUndefined(i)?nt.isUndefined(t)?void 0:r(void 0,t,n,o):r(t,i,n,o)}function a(t,i){if(!nt.isUndefined(i))return r(void 0,i)}function s(t,i){return nt.isUndefined(i)?nt.isUndefined(t)?void 0:r(void 0,t):r(void 0,i)}function l(n,o,a){return nt.hasOwnProp(i,a)?r(n,o):nt.hasOwnProp(t,a)?r(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(t,i,n)=>o(n0(t),n0(i),n,!0)};return nt.forEach(Object.keys({...t,...i}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=nt.hasOwnProp(c,r)?c[r]:o,s=a(nt.hasOwnProp(t,r)?t[r]:void 0,nt.hasOwnProp(i,r)?i[r]:void 0,r);nt.isUndefined(s)&&a!==l||(n[r]=s)}),nt.hasOwnProp(i,"validateStatus")&&nt.isUndefined(i.validateStatus)&&!1===function(n){let r=nt.hasOwnProp(i,"transitional")?i.transitional:void 0;if(!nt.isUndefined(r)){if(!nt.isPlainObject(r))return;else if(nt.hasOwnProp(r,n))return r[n]}let o=nt.hasOwnProp(t,"transitional")?t.transitional:void 0;if(nt.isPlainObject(o)&&nt.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(nt.hasOwnProp(t,"validateStatus")?n.validateStatus=r(void 0,t.validateStatus):delete n.validateStatus),n}let n2=["content-type","content-length"],n3=function(t){let i=n1({},t),n=t=>nt.hasOwnProp(i,t)?i[t]:void 0,r=n("data"),o=n("withXSRFToken"),a=n("xsrfHeaderName"),s=n("xsrfCookieName"),l=n("headers"),c=n("auth"),d=n("baseURL"),u=n("allowAbsoluteUrls"),h=n("url");if(i.headers=l=nu.from(l),i.url=nF(nQ(d,h,u,i),n("params"),n("paramsSerializer")),c){let i=nt.getSafeProp(c,"username")||"",n=nt.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(i+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))):"")))}catch(i){throw np.from(i,np.ERR_BAD_OPTION_VALUE,t)}}if(nt.isFormData(r))if(nO.hasStandardBrowserEnv||nO.hasStandardBrowserWebWorkerEnv||nt.isReactNative(r))l.setContentType(void 0);else{var p,m;nt.isFunction(r.getHeaders)&&(p=l,m=r.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?p.set(m):Object.entries(m||{}).forEach(([t,i])=>{n2.includes(t.toLowerCase())&&p.set(t,i)}))}if(nO.hasStandardBrowserEnv&&(nt.isFunction(o)&&(o=o(i)),!0===o||null==o&&nY(i.url))){let t=a&&s&&nK.read(s);t&&l.set(a,t)}return i},n5="u">typeof XMLHttpRequest&&function(t){return new Promise(function(i,n){var r;let o,a,s,l,c,d,u=n3(t),h=u.data,p=nu.from(u.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=u;function b(){l&&l(),c&&c(),u.cancelToken&&u.cancelToken.unsubscribe(o),u.signal&&u.signal.removeEventListener("abort",o)}let _=new XMLHttpRequest;function v(){if(!_)return;let r=nu.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());nU(function(t){i(t),b()},function(t){n(t),b()},{data:m&&"text"!==m&&"json"!==m?_.response:_.responseText,status:_.status,statusText:_.statusText,headers:r,config:t,request:_}),_=null}_.open(u.method.toUpperCase(),u.url,!0),_.timeout=u.timeout,"onloadend"in _?_.onloadend=v:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&_.responseURL.startsWith("file:"))&&setTimeout(v)},_.onabort=function(){_&&(n(new np("Request aborted",np.ECONNABORTED,t,_)),b(),_=null)},_.onerror=function(i){let r=new np(i&&i.message?i.message:"Network Error",np.ERR_NETWORK,t,_);r.event=i||null,n(r),b(),_=null},_.ontimeout=function(){let i=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||nC;u.timeoutErrorMessage&&(i=u.timeoutErrorMessage),n(new np(i,r.clarifyTimeoutError?np.ETIMEDOUT:np.ECONNABORTED,t,_)),b(),_=null},void 0===h&&p.setContentType(null),"setRequestHeader"in _&&nt.forEach(na(p),function(t,i){_.setRequestHeader(i,t)}),nt.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),m&&"json"!==m&&(_.responseType=u.responseType),g&&([s,c]=nW(g,!0),_.addEventListener("progress",s)),f&&_.upload&&([a,l]=nW(f),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=i=>{_&&(n(!i||i.type?new nj(null,t,_):i),_.abort(),b(),_=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let y=(r=u.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(r))&&d[1]||"");if(y&&!nO.protocols.includes(y)){n(new np("Unsupported protocol "+y+":",np.ERR_BAD_REQUEST,t)),b();return}_.send(h||null)})},n4=function*(t,i){let n,r=t.byteLength;if(!i||r<i)return void(yield t);let o=0;for(;o<r;)n=o+i,yield t.slice(o,n),o=n},n6=async function*(t,i){for await(let n of n8(t))yield*n4(n,i)},n8=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let i=t.getReader();try{for(;;){let{done:t,value:n}=await i.read();if(t)break;yield n}}finally{await i.cancel()}},n7=(t,i,n,r)=>{let o,a=n6(t,i),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:i,value:r}=await a.next();if(i){l(),t.close();return}let o=r.byteLength;if(n){let t=s+=o;n(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},n9=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,re=(t,i,n)=>i+2<n&&n9(t.charCodeAt(i+1))&&n9(t.charCodeAt(i+2)),{isFunction:rt}=nt,ri=t=>{if(!nt.isString(t))return t;try{return decodeURIComponent(t)}catch(i){return t}},rn=(t,...i)=>{try{return!!t(...i)}catch(t){return!1}},rr=t=>{let i,n=void 0!==nt.global&&null!==nt.global?nt.global:globalThis,{ReadableStream:r,TextEncoder:o}=n,{fetch:a,Request:s,Response:l}=t=nt.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),p=c&&("function"==typeof o?(i=new o,t=>i.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),m=d&&h&&rn(()=>{let t=!1,i=new s(nO.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),n=i.headers.has("Content-Type");return null!=i.body&&i.body.cancel(),t&&!n}),f=u&&h&&rn(()=>nt.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(i,n)=>{let r=i&&i[t];if(r)return r.call(i);throw new np(`Response type '${t}' is not supported`,np.ERR_NOT_SUPPORT,n)})});let b=async t=>{if(null==t)return 0;if(nt.isBlob(t))return t.size;if(nt.isSpecCompliantForm(t)){let i=new s(nO.origin,{method:"POST",body:t});return(await i.arrayBuffer()).byteLength}return nt.isArrayBufferView(t)||nt.isArrayBuffer(t)?t.byteLength:(nt.isURLSearchParams(t)&&(t+=""),nt.isString(t))?(await p(t)).byteLength:void 0},_=async(t,i)=>{let n=nt.toFiniteNumber(t.getContentLength());return null==n?b(i):n};return async t=>{let i,{url:n,method:r,data:c,signal:u,cancelToken:p,timeout:v,onDownloadProgress:y,onUploadProgress:x,responseType:w,headers:F,withCredentials:E="same-origin",fetchOptions:C,maxContentLength:k,maxBodyLength:A}=n3(t),T=nt.isNumber(k)&&k>-1,S=nt.isNumber(A)&&A>-1,I=a||fetch;w=w?(w+"").toLowerCase():"text";let D=((t,i)=>{if(t=t?t.filter(Boolean):[],!i&&!t.length)return;let n=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let i=t instanceof Error?t:this.reason;n.abort(i instanceof np?i:new nj(i instanceof Error?i.message:i))}},a=i&&setTimeout(()=>{a=null,o(new np(`timeout of ${i}ms exceeded`,np.ETIMEDOUT))},i),s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o,{once:!0}));let{signal:l}=n;return l.unsubscribe=()=>nt.asap(s),l})([u,p&&p.toAbortSignal()],v),R=null,M=D&&D.unsubscribe&&(()=>{D.unsubscribe()}),O=null,L=()=>new np("Request body larger than maxBodyLength limit",np.ERR_BAD_REQUEST,t,R);try{var P;let a,u,p,v,$=(u="auth",nt.hasOwnProp(t,u)?t[u]:void 0);if($){let t=nt.getSafeProp($,"username")||"",i=nt.getSafeProp($,"password")||"";a={username:t,password:i}}if(p=(P=n).indexOf("://"),v=P,-1!==p&&(v=v.slice(p+3)),v.includes("@")||v.includes(":")){let t=new URL(n,nO.origin);if(!a&&(t.username||t.password)){let i=ri(t.username),n=ri(t.password);a={username:i,password:n}}(t.username||t.password)&&(t.username="",t.password="",n=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,i)=>String.fromCharCode(parseInt(i,16))))))}if(T&&"string"==typeof n&&n.startsWith("data:")&&function(t){if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let i=t.indexOf(",");if(i<0)return 0;let n=t.slice(5,i),r=t.slice(i+1);if(/;base64/i.test(n)){let t=r.length,i=r.length;for(let n=0;n<i;n++)if(37===r.charCodeAt(n)&&n+2<i){let i=r.charCodeAt(n+1),o=r.charCodeAt(n+2);n9(i)&&n9(o)&&(t-=2,n+=2)}let n=0,o=i-1,a=t=>t>=2&&37===r.charCodeAt(t-2)&&51===r.charCodeAt(t-1)&&(68===r.charCodeAt(t)||100===r.charCodeAt(t));o>=0&&(61===r.charCodeAt(o)?(n++,o--):a(o)&&(n++,o-=3)),1===n&&o>=0&&(61===r.charCodeAt(o)?n++:a(o)&&n++);let s=3*Math.floor(t/4)-(n||0);return s>0?s:0}let o=0;for(let t=0,i=r.length;t<i;t++){let n=r.charCodeAt(t);if(37===n&&re(r,t,i))o+=1,t+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&t+1<i){let i=r.charCodeAt(t+1);i>=56320&&i<=57343?(o+=4,t++):o+=3}else o+=3}return o}(n)>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R);if(S&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(i=t,t>A))throw L()}let B=S&&(nt.isReadableStream(c)||nt.isStream(c)),N=(t,i,n)=>n7(t,65536,t=>{if(S&&t>A)throw O=L();i&&i(t)},n);if(m&&"get"!==r&&"head"!==r&&(x||B)){if(i=null==i?await _(F,c):i,0!==i||B){let t,r=new s(n,{method:"POST",body:c,duplex:"half"});if(nt.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,n]=x&&nq(i,nW(nG(x)))||[];c=N(r.body,t,n)}}}else if(B&&!d&&h&&"get"!==r&&"head"!==r)c=N(c);else if(B&&d&&!m&&"get"!==r&&"head"!==r)throw new np("Stream request bodies are not supported by the current fetch implementation",np.ERR_NOT_SUPPORT,t,R);nt.isString(E)||(E=E?"include":"omit");let z=d&&"credentials"in s.prototype;if(nt.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...C,signal:D,method:r.toUpperCase(),headers:na(F.normalize()),body:c,duplex:"half",credentials:z?E:void 0};R=d&&new s(n,j);let U=await (d?I(R,C):I(n,j)),V=nu.from(U.headers);if(T){let i=nt.toFiniteNumber(V.getContentLength());if(null!=i&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R)}let H=f&&("stream"===w||"response"===w);if(f&&U.body&&(y||T||H&&M)){let i={};["status","statusText","headers"].forEach(t=>{i[t]=U[t]});let n=nt.toFiniteNumber(V.getContentLength()),[r,o]=y&&nq(n,nW(nG(y),!0))||[];U=new l(n7(U.body,65536,i=>{if(T&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R);r&&r(i)},()=>{o&&o(),M&&M()}),i)}w=w||"text";let W=await g[nt.findKey(g,w)||"text"](U,t);if(T&&!f&&!H){let i;if(null!=W&&("number"==typeof W.byteLength?i=W.byteLength:"number"==typeof W.size?i=W.size:"string"==typeof W&&(i="function"==typeof o?new o().encode(W).byteLength:W.length)),"number"==typeof i&&i>k)throw new np("maxContentLength size of "+k+" exceeded",np.ERR_BAD_RESPONSE,t,R)}return!H&&M&&M(),await new Promise((i,n)=>{nU(i,n,{data:W,headers:nu.from(U.headers),status:U.status,statusText:U.statusText,config:t,request:R})})}catch(i){if(M&&M(),D&&D.aborted&&D.reason instanceof np){let n=D.reason;throw n.config=t,R&&(n.request=R),i!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:i,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw R&&!O.request&&(O.request=R),O;if(i instanceof np)throw R&&!i.request&&(i.request=R),i;if(i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message)){let n=new np("Network Error",np.ERR_NETWORK,t,R,i&&i.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:i.cause||i,writable:!0,enumerable:!1,configurable:!0}),n}throw np.from(i,i&&i.code,t,R,i&&i.response)}}},ro=new Map,ra=t=>{let i=t&&t.env||{},{fetch:n,Request:r,Response:o}=i,a=[r,o,n],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(i)),d=c;return c};ra();let rs={http:null,xhr:n5,fetch:{get:ra}};nt.forEach(rs,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:i})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:i})}});let rl=t=>`- ${t}`,rc=t=>nt.isFunction(t)||null===t||!1===t,rd=function(t,i){let n,r,{length:o}=t=nt.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=n=t[s],!rc(n)&&void 0===(r=rs[(o=String(n)).toLowerCase()]))throw new np(`Unknown adapter '${o}'`);if(r&&(nt.isFunction(r)||(r=r.get(i))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,i])=>`adapter ${t} `+(!1===i?"is not supported by the environment":"is not available in the build"));throw new np("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),np.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new nj(null,t)}function rh(t){return ru(t),t.headers=nu.from(t.headers),t.data=nN.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),rd(t.adapter||nB.adapter,t)(t).then(function(i){ru(t),t.response=i;try{i.data=nN.call(t,t.transformResponse,i)}finally{delete t.response}return i.headers=nu.from(i.headers),i},function(i){if(!nz(i)&&(ru(t),i&&i.response)){t.response=i.response;try{i.response.data=nN.call(t,t.transformResponse,i.response)}finally{delete t.response}i.response.headers=nu.from(i.response.headers)}return Promise.reject(i)})}let rp={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{rp[t]=function(n){return typeof n===t||"a"+(i<1?"n ":" ")+t}});let rm={};rp.transitional=function(t,i,n){function r(t,i){return"[Axios v1.18.1] Transitional option '"+t+"'"+i+(n?". "+n:"")}return(n,o,a)=>{if(!1===t)throw new np(r(o," has been removed"+(i?" in "+i:"")),np.ERR_DEPRECATED);return i&&!rm[o]&&(rm[o]=!0,console.warn(r(o," has been deprecated since v"+i+" and will be removed in the near future"))),!t||t(n,o,a)}},rp.spelling=function(t){return(i,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};let rf=function(t,i,n){if("object"!=typeof t||null===t)throw new np("options must be an object",np.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(i,a)?i[a]:void 0;if(s){let i=t[a],n=void 0===i||s(i,a,t);if(!0!==n)throw new np("option "+a+" must be "+n,np.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new np("Unknown option "+a,np.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new nE,response:new nE}}async request(t,i){try{return await this._request(t,i)}catch(t){if(t instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=Error();let n=(()=>{if(!i.stack)return"";let t=i.stack.indexOf("\n");return -1===t?"":i.stack.slice(t+1)})();try{if(t.stack){if(n){let i=n.indexOf("\n"),r=-1===i?-1:n.indexOf("\n",i+1),o=-1===r?"":n.slice(r+1);String(t.stack).endsWith(o)||(t.stack+="\n"+n)}}else t.stack=n}catch(t){}}throw t}}_request(t,i){let n,r;"string"==typeof t?(i=i||{}).url=t:i=t||{};let{transitional:o,paramsSerializer:a,headers:s}=i=n1(this.defaults,i);void 0!==o&&rf(o,{silentJSONParsing:rp.transitional(rp.boolean),forcedJSONParsing:rp.transitional(rp.boolean),clarifyTimeoutError:rp.transitional(rp.boolean),legacyInterceptorReqResOrdering:rp.transitional(rp.boolean),advertiseZstdAcceptEncoding:rp.transitional(rp.boolean),validateStatusUndefinedResolves:rp.transitional(rp.boolean)},!1),null!=a&&(nt.isFunction(a)?i.paramsSerializer={serialize:a}:rf(a,{encode:rp.function,serialize:rp.function},!0)),void 0!==i.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),rf(i,{baseUrl:rp.spelling("baseURL"),withXsrfToken:rp.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&nt.merge(s.common,s[i.method]);s&&nt.forEach(["delete","get","head","post","put","patch","query","common"],t=>{delete s[t]}),i.headers=nu.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(i))return;d=d&&t.synchronous;let n=i.transitional||nC;n&&n.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,n=Promise.resolve(i);h<r;)n=n.then(t[h++],t[h++]);return n}r=c.length;let p=i;for(;h<r;){let t=c[h++],i=c[h++];try{p=t(p)}catch(t){i.call(this,t);break}}try{n=rh.call(this,p)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)n=n.then(u[h++],u[h++]);return n}getUri(t){return nF(nQ((t=n1(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}nt.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(i,n){return this.request(n1(n||{},{method:t,url:i,data:n&&nt.hasOwnProp(n,"data")?n.data:void 0}))}}),nt.forEach(["post","put","patch","query"],function(t){function i(i){return function(n,r,o){return this.request(n1(o||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rg.prototype[t]=i(),"query"!==t&&(rg.prototype[t+"Form"]=i(!0))});let rb=class t{constructor(t){let i;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){i=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](t);n._listeners=null}),this.promise.then=t=>{let i,r=new Promise(t=>{n.subscribe(t),i=t}).then(t);return r.cancel=function(){n.unsubscribe(i)},r},t(function(t,r,o){n.reason||(n.reason=new nj(t,r,o),i(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let i=this._listeners.indexOf(t);-1!==i&&this._listeners.splice(i,1)}toAbortSignal(){let t=new AbortController,i=i=>{t.abort(i)};return this.subscribe(i),t.signal.unsubscribe=()=>this.unsubscribe(i),t.signal}static source(){let i;return{token:new t(function(t){i=t}),cancel:i}}},r_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r_).forEach(([t,i])=>{r_[i]=t});let rv=function t(i){let n=new rg(i),r=iw(rg.prototype.request,n);return nt.extend(r,rg.prototype,n,{allOwnKeys:!0}),nt.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(n1(i,n))},r}(nB);rv.Axios=rg,rv.CanceledError=nj,rv.CancelToken=rb,rv.isCancel=nz,rv.VERSION="1.18.1",rv.toFormData=n_,rv.AxiosError=np,rv.Cancel=rv.CanceledError,rv.all=function(t){return Promise.all(t)},rv.spread=function(t){return function(i){return t.apply(null,i)}},rv.isAxiosError=function(t){return nt.isObject(t)&&!0===t.isAxiosError},rv.mergeConfig=n1,rv.AxiosHeaders=nu,rv.formToJSON=t=>nP(nt.isHTMLForm(t)?new FormData(t):t),rv.getAdapter=rd,rv.HttpStatusCode=r_,rv.default=rv;class ry{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rU`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rU`info`,options:t})}}class rx{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rU`flow`,options:t})}getNodeDefinition(t,i){return this.httpClient.request({method:"GET",url:rU`flow/${t}`,options:i})}getAllNodeDefinitionsByType(t,i){return this.httpClient.request({method:"GET",url:rU`flow/${t}`,options:i})}}class rw{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rU`configuration/manager`,options:t})}update(t,i){return this.httpClient.request({method:"PUT",url:rU`configuration/manager`,data:t,options:i})}fileUpload(t,i,n){return this.httpClient.request({method:"POST",url:rU`configuration/manager/file`,queryParams:i,data:t,options:n})}getManagerConfigImage(t,i){return this.httpClient.request({method:"GET",url:rU`configuration/manager/image/${t}`,options:i})}}class rF{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rU`agent/assetDiscovery/${t}`,queryParams:i,options:n})}doProtocolAssetImport(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`agent/assetImport/${t}`,queryParams:n,data:i,options:r})}doProtocolInstanceDiscovery(t,i,n){return this.httpClient.request({method:"GET",url:rU`agent/instanceDiscovery/${t}`,queryParams:i,options:n})}}class rE{constructor(t){this.httpClient=t}createAlarm(t,i,n){return this.httpClient.request({method:"POST",url:rU`alarm`,queryParams:i,data:t,options:n})}getAlarms(t,i){return this.httpClient.request({method:"GET",url:rU`alarm`,queryParams:t,options:i})}removeAlarms(t,i){return this.httpClient.request({method:"DELETE",url:rU`alarm`,data:t,options:i})}setAssetLinks(t,i){return this.httpClient.request({method:"PUT",url:rU`alarm/assets`,data:t,options:i})}getAlarm(t,i){return this.httpClient.request({method:"GET",url:rU`alarm/${t}`,options:i})}removeAlarm(t,i){return this.httpClient.request({method:"DELETE",url:rU`alarm/${t}`,options:i})}updateAlarm(t,i,n){return this.httpClient.request({method:"PUT",url:rU`alarm/${t}`,data:i,options:n})}getAssetLinks(t,i,n){return this.httpClient.request({method:"GET",url:rU`alarm/${t}/assets`,queryParams:i,options:n})}}class rC{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rU`map`,options:t})}saveSettings(t,i){return this.httpClient.request({method:"PUT",url:rU`map`,data:t,options:i})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rU`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rU`map/getCustomMapInfo`,options:t})}getTile(t,i,n,r){return this.httpClient.request({method:"GET",url:rU`map/tile/${t}/${i}/${n}`,options:r})}uploadMap(t,i){return this.httpClient.request({method:"POST",url:rU`map/upload`,queryParams:t,options:i})}}class rk{constructor(t){this.httpClient=t}getServices(t,i){return this.httpClient.request({method:"GET",url:rU`service`,queryParams:t,options:i})}registerService(t,i){return this.httpClient.request({method:"POST",url:rU`service`,data:t,options:i})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rU`service/global`,options:t})}registerGlobalService(t,i){return this.httpClient.request({method:"POST",url:rU`service/global`,data:t,options:i})}deregisterService(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`service/${t}/${i}`,options:n})}getService(t,i,n){return this.httpClient.request({method:"GET",url:rU`service/${t}/${i}`,options:n})}heartbeat(t,i,n){return this.httpClient.request({method:"PUT",url:rU`service/${t}/${i}`,options:n})}}class rA{constructor(t){this.httpClient=t}register(t,i){return this.httpClient.request({method:"POST",url:rU`console/register`,data:t,options:i})}}class rT{constructor(t){this.httpClient=t}createGlobalRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules`,data:t,options:i})}getGlobalRulesets(t,i){return this.httpClient.request({method:"GET",url:rU`rules`,queryParams:t,options:i})}createAssetRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules/asset`,data:t,options:i})}getAssetRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rU`rules/asset/for/${t}`,queryParams:i,options:n})}deleteAssetRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/asset/${t}`,options:i})}getAssetRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/asset/${t}`,options:i})}updateAssetRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/asset/${t}`,data:i,options:n})}getAssetGeofences(t,i){return this.httpClient.request({method:"GET",url:rU`rules/geofences/${t}`,options:i})}getAssetEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rU`rules/info/asset/${t}`,options:i})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rU`rules/info/global`,options:t})}getRealmEngineInfo(t,i){return this.httpClient.request({method:"GET",url:rU`rules/info/realm/${t}`,options:i})}createRealmRuleset(t,i){return this.httpClient.request({method:"POST",url:rU`rules/realm`,data:t,options:i})}getRealmRulesets(t,i,n){return this.httpClient.request({method:"GET",url:rU`rules/realm/for/${t}`,queryParams:i,options:n})}deleteRealmRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/realm/${t}`,options:i})}getRealmRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/realm/${t}`,options:i})}updateRealmRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/realm/${t}`,data:i,options:n})}deleteGlobalRuleset(t,i){return this.httpClient.request({method:"DELETE",url:rU`rules/${t}`,options:i})}getGlobalRuleset(t,i){return this.httpClient.request({method:"GET",url:rU`rules/${t}`,options:i})}updateGlobalRuleset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`rules/${t}`,data:i,options:n})}}class rS{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`dashboard`,data:t,options:i})}update(t,i){return this.httpClient.request({method:"PUT",url:rU`dashboard`,data:t,options:i})}getAllRealmDashboards(t,i){return this.httpClient.request({method:"GET",url:rU`dashboard/all/${t}`,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rU`dashboard/query`,data:t,options:i})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`dashboard/${t}/${i}`,options:n})}get(t,i,n){return this.httpClient.request({method:"GET",url:rU`dashboard/${t}/${i}`,options:n})}}class rI{constructor(t){this.httpClient=t}getAssetDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/assetDescriptors`,queryParams:t,options:i})}getAssetInfo(t,i,n){return this.httpClient.request({method:"GET",url:rU`model/assetInfo/${t}`,queryParams:i,options:n})}getAssetInfos(t,i){return this.httpClient.request({method:"GET",url:rU`model/assetInfos`,queryParams:t,options:i})}getValueDescriptorSchema(t,i){return this.httpClient.request({method:"GET",url:rU`model/getValueDescriptorSchema`,queryParams:t,options:i})}getMetaItemDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/metaItemDescriptors`,queryParams:t,options:i})}getValueDescriptors(t,i){return this.httpClient.request({method:"GET",url:rU`model/valueDescriptors`,queryParams:t,options:i})}}class rD{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,i){return this.httpClient.request({method:"PUT",url:rU`user/locale`,data:t,options:i})}query(t,i){return this.httpClient.request({method:"POST",url:rU`user/query`,data:t,options:i})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rU`user/request-password-reset`,options:t})}updatePasswordCurrent(t,i){return this.httpClient.request({method:"PUT",url:rU`user/reset-password`,data:t,options:i})}updateCurrent(t,i){return this.httpClient.request({method:"PUT",url:rU`user/update`,data:t,options:i})}getCurrent(t){return this.httpClient.request({method:"GET",url:rU`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rU`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,i){return this.httpClient.request({method:"GET",url:rU`user/userRoles/${t}`,options:i})}disconnectUserSession(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`user/${t}/disconnect/${i}`,options:n})}requestPasswordReset(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/request-password-reset/${i}`,options:n})}updatePassword(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/reset-password/${i}`,data:n,options:r})}resetSecret(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/reset-secret/${i}`,options:n})}updateRoles(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/roles`,data:i,options:n})}getUserRealmRoles(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/userRealmRoles/${i}`,options:n})}updateUserRealmRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/userRealmRoles/${i}`,data:n,options:r})}getUserClientRoles(t,i,n,r){return this.httpClient.request({method:"GET",url:rU`user/${t}/userRoles/${i}/${n}`,options:r})}updateUserClientRoles(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rU`user/${t}/userRoles/${i}/${n}`,data:r,options:o})}getUserSessions(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/userSessions/${i}`,options:n})}create(t,i,n){return this.httpClient.request({method:"POST",url:rU`user/${t}/users`,data:i,options:n})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`user/${t}/users`,data:i,options:n})}delete(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`user/${t}/users/${i}`,options:n})}getClientRoles(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/${i}/roles`,options:n})}updateClientRoles(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`user/${t}/${i}/roles`,data:n,options:r})}get(t,i,n){return this.httpClient.request({method:"GET",url:rU`user/${t}/${i}`,options:n})}}class rR{constructor(t){this.httpClient=t}createProvisioningConfig(t,i){return this.httpClient.request({method:"POST",url:rU`provisioning`,data:t,options:i})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rU`provisioning`,options:t})}deleteProvisioningConfig(t,i){return this.httpClient.request({method:"DELETE",url:rU`provisioning/${t}`,options:i})}updateProvisioningConfig(t,i,n){return this.httpClient.request({method:"PUT",url:rU`provisioning/${t}`,data:i,options:n})}}class rM{constructor(t){this.httpClient=t}getNotifications(t,i){return this.httpClient.request({method:"GET",url:rU`notification`,queryParams:t,options:i})}removeNotifications(t,i){return this.httpClient.request({method:"DELETE",url:rU`notification`,queryParams:t,options:i})}sendNotification(t,i){return this.httpClient.request({method:"POST",url:rU`notification/alert`,data:t,options:i})}getNotificationsCount(t,i){return this.httpClient.request({method:"GET",url:rU`notification/count`,queryParams:t,options:i})}removeNotification(t,i){return this.httpClient.request({method:"DELETE",url:rU`notification/${t}`,options:i})}notificationAcknowledged(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`notification/${t}/acknowledged`,queryParams:n,data:i,options:r})}notificationDelivered(t,i,n){return this.httpClient.request({method:"PUT",url:rU`notification/${t}/delivered`,queryParams:i,options:n})}}class rO{constructor(t){this.httpClient=t}startTunnel(t,i){return this.httpClient.request({method:"POST",url:rU`gateway/tunnel`,data:t,options:i})}stopTunnel(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/tunnel`,data:t,options:i})}getAllActiveTunnelInfos(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}`,options:i})}getGatewayActiveTunnelInfos(t,i,n){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}/${i}`,options:n})}getActiveTunnelInfo(t,i,n,r,o){return this.httpClient.request({method:"GET",url:rU`gateway/tunnel/${t}/${i}/${n}/${r}`,options:o})}}class rL{constructor(t){this.httpClient=t}deleteConnections(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/connection`,queryParams:t,options:i})}getConnections(t){return this.httpClient.request({method:"GET",url:rU`gateway/connection`,options:t})}deleteConnection(t,i){return this.httpClient.request({method:"DELETE",url:rU`gateway/connection/${t}`,options:i})}getConnection(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/connection/${t}`,options:i})}setConnection(t,i,n){return this.httpClient.request({method:"PUT",url:rU`gateway/connection/${t}`,data:i,options:n})}getConnectionStatus(t,i){return this.httpClient.request({method:"GET",url:rU`gateway/status/${t}`,options:i})}}class rP{constructor(t){this.httpClient=t}getDatapointExport(t,i){return this.httpClient.request({method:"GET",url:rU`asset/datapoint/export`,queryParams:t,options:i})}getDatapointPeriod(t,i){return this.httpClient.request({method:"GET",url:rU`asset/datapoint/periods`,queryParams:t,options:i})}getDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`asset/datapoint/${t}/${i}`,data:n,options:r})}}class r${constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`realm`,data:t,options:i})}getAll(t){return this.httpClient.request({method:"GET",url:rU`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rU`realm/accessible`,options:t})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rU`realm/${t}`,options:i})}get(t,i){return this.httpClient.request({method:"GET",url:rU`realm/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`realm/${t}`,data:i,options:n})}}class rB{constructor(t){this.httpClient=t}getPredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"POST",url:rU`asset/predicted/${t}/${i}`,data:n,options:r})}writePredictedDatapoints(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`asset/predicted/${t}/${i}`,data:n,options:r})}}class rN{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rU`syslog/config`,options:t})}updateConfig(t,i){return this.httpClient.request({method:"PUT",url:rU`syslog/config`,data:t,options:i})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rU`syslog/event`,options:t})}getEvents(t,i){return this.httpClient.request({method:"GET",url:rU`syslog/event`,queryParams:t,options:i})}}class rz{constructor(t){this.httpClient=t}create(t,i){return this.httpClient.request({method:"POST",url:rU`asset`,data:t,options:i})}delete(t,i){return this.httpClient.request({method:"DELETE",url:rU`asset`,queryParams:t,options:i})}writeAttributeValues(t,i){return this.httpClient.request({method:"PUT",url:rU`asset/attributes`,data:t,options:i})}writeAttributeEvents(t,i){return this.httpClient.request({method:"PUT",url:rU`asset/attributes/timestamp`,data:t,options:i})}queryCount(t,i){return this.httpClient.request({method:"POST",url:rU`asset/count`,data:t,options:i})}updateNoneParent(t,i){return this.httpClient.request({method:"DELETE",url:rU`asset/parent`,queryParams:t,options:i})}getPartial(t,i){return this.httpClient.request({method:"GET",url:rU`asset/partial/${t}`,options:i})}queryAssets(t,i){return this.httpClient.request({method:"POST",url:rU`asset/query`,data:t,options:i})}queryAssetTree(t,i){return this.httpClient.request({method:"POST",url:rU`asset/tree`,data:t,options:i})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rU`asset/user/current`,options:t})}createUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rU`asset/user/link`,data:t,options:i})}getUserAssetLinks(t,i){return this.httpClient.request({method:"GET",url:rU`asset/user/link`,queryParams:t,options:i})}deleteUserAssetLinks(t,i){return this.httpClient.request({method:"POST",url:rU`asset/user/link/delete`,data:t,options:i})}deleteAllUserAssetLinks(t,i,n){return this.httpClient.request({method:"DELETE",url:rU`asset/user/link/${t}/${i}`,options:n})}deleteUserAssetLink(t,i,n,r){return this.httpClient.request({method:"DELETE",url:rU`asset/user/link/${t}/${i}/${n}`,options:r})}get(t,i){return this.httpClient.request({method:"GET",url:rU`asset/${t}`,options:i})}update(t,i,n){return this.httpClient.request({method:"PUT",url:rU`asset/${t}`,data:i,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,i,n,r){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/attribute/${i}`,data:n,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,i,n,r,o){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/attribute/${i}/${n}`,data:r,options:o})}updateParent(t,i,n){return this.httpClient.request({method:"PUT",url:rU`asset/${t}/child`,queryParams:i,options:n})}}class rj{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rU`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rU`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rU`apps/info`,options:t})}}function rU(t,...i){let n="";for(let r=0;r<i.length;r++)n+=t[r],n+=encodeURIComponent(i[r]);return n+t[t.length-1]}class rV{constructor(t,i=rv.create()){this._statusResource=new rW(t,i),this._flowResource=new rq(t,i),this._configurationResource=new rG(t,i),this._agentResource=new rY(t,i),this._alarmResource=new rK(t,i),this._mapResource=new rX(t,i),this._externalServiceResource=new rZ(t,i),this._consoleResource=new rJ(t,i),this._rulesResource=new rQ(t,i),this._dashboardResource=new r0(t,i),this._assetModelResource=new r1(t,i),this._userResource=new r2(t,i),this._provisioningResource=new r3(t,i),this._notificationResource=new r5(t,i),this._gatewayServiceResource=new r4(t,i),this._gatewayClientResource=new r6(t,i),this._assetDatapointResource=new r8(t,i),this._realmResource=new r7(t,i),this._assetPredictedDatapointResource=new r9(t,i),this._syslogResource=new oe(t,i),this._assetResource=new ot(t,i),this._appResource=new oi(t,i),this._assetResource=new ot(t,i)}get StatusResource(){return this._statusResource}get FlowResource(){return this._flowResource}get ConfigurationResource(){return this._configurationResource}get AgentResource(){return this._agentResource}get AlarmResource(){return this._alarmResource}get MapResource(){return this._mapResource}get ExternalServiceResource(){return this._externalServiceResource}get ConsoleResource(){return this._consoleResource}get RulesResource(){return this._rulesResource}get DashboardResource(){return this._dashboardResource}get AssetModelResource(){return this._assetModelResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetDatapointResource(){return this._assetDatapointResource}get RealmResource(){return this._realmResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get SyslogResource(){return this._syslogResource}get AssetResource(){return this._assetResource}get AppResource(){return this._appResource}}class rH{constructor(t){this.axios=t}request(t){let i={};i.method=t.method,i.url=t.url,i.params=t.queryParams,i.data=t.data,function(t,i){if(void 0!=i)for(let n in i)i.hasOwnProperty(n)&&(t[n]=i[n])}(i,t.options);let n=t.copyFn;return this.axios.request(i).then(t=>(n&&t.data&&(t.originalData=t.data,t.data=n(t.data)),t))}}class rW extends ry{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rq extends rx{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rG extends rw{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rY extends rF{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rK extends rE{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rX extends rC{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rZ extends rk{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rJ extends rA{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class rQ extends rT{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r0 extends rS{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r1 extends rI{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r2 extends rD{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r3 extends rR{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r5 extends rM{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r4 extends rO{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r6 extends rL{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r8 extends rP{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r7 extends r${constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class r9 extends rB{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class oe extends rN{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class ot extends rz{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}class oi extends rj{constructor(t,i=rv.create()){i.defaults.baseURL=t,super(new rH(i))}}var on=n(8183),or=n.n(on);rv.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=rv.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rV(t,this._axiosInstance)}};var oa=function(t,i,n,r){return new(n||(n=Promise))(function(o,a){function s(t){try{c(r.next(t))}catch(t){a(t)}}function l(t){try{c(r.throw(t))}catch(t){a(t)}}function c(t){var i;t.done?o(t.value):((i=t.value)instanceof n?i:new n(function(t){t(i)})).then(s,l)}c((r=r.apply(t,i||[])).next())})};(pj=mZ||(mZ={})).DISCONNECTED="DISCONNECTED",pj.CONNECTED="CONNECTED",pj.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=mZ.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,i){if(0===t.length)return;let n=t.indexOf(i);n>=0&&t.splice(n,1)}(this._statusCallbacks,t)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===mZ.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(mZ.CONNECTING),this._connectingDeferred=new ir,this._doConnect().then(t=>{if(this._connectingDeferred){let i=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(mZ.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),i.resolve(t)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==mZ.DISCONNECTED&&this._doDisconnect())}subscribe(t,i){let n={eventSubscription:t,callback:i,deferred:new ir};return null!=this._pendingSubscription||this._status!==mZ.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,i),this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.resolve(t)}},t=>{if(console.error(t),this._pendingSubscription){let i=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=i.deferred;i.deferred=null,n&&n.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===mZ.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==mZ.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,i,n){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let i={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(i,t=>{this._assetEventCallbackMap.forEach(i=>i(t))})}return this._assetEventCallbackMap.set(o,t=>{let i=t.asset.id;r?r.find(t=>i===t)&&n(t):t.asset.realm===o0.displayRealm&&n(t)}),this._assetEventPromise.then(()=>{try{if(r&&i){let t={messageID:"read-assets:"+r.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(t).then(t=>{t.assets&&this._assetEventCallbackMap.has(o)&&t.assets.forEach(t=>{n({eventType:"asset",asset:t,cause:"READ"})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),i}return o})})}subscribeAttributeEvents(t,i,n){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let i={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(i,t=>{this._attributeEventCallbackMap.forEach(i=>i(t))})}let l=i=>{let a=i.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&n(i)}):o?o.find(t=>a.id===t)&&n(i):i.realm===o0.displayRealm&&n(i)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(i&&o){let t={messageID:"read-assets:"+o.join(",")+":"+s,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(t).then(t=>{t.assets&&this._attributeEventCallbackMap.has(s)&&t.assets.forEach(t=>{t.attributes&&Object.entries(t.attributes).forEach(([i,n])=>{(!a||a.find(n=>n.id===t.id&&n.name===i))&&l({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:t.id,name:i}})})})})}}catch(i){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),i}return s})})}_processNextSubscription(){this._status===mZ.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(i=>{let n=t.deferred;t.deferred=null,n&&n.resolve(i)},i=>{let n=t.deferred;t.deferred=null,n&&n.reject(i)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(i=>i(t))},0))}_onMessageReceived(t,i){let n=this._subscriptionMap.get(t);n&&n.callback(i)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let t in this._subscriptionMap)this._subscriptionMap.has(t)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(t));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===mZ.CONNECTED&&this._onStatusChanged(mZ.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(mZ.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new ir,(o0.authenticated?o0.retrieveAuthorizationHeader().then(i=>{t+="&Authorization="+i}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let i=t.data;if(i&&i.startsWith(os)){let t=JSON.parse(i.substring(os.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(t.subscriptionId)}else if(i.startsWith(ol)){let t=JSON.parse(i.substring(ol.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),n.reject("Unauthorized"))}else if(i.startsWith(oc)){let t=JSON.parse(i.substring(oc.length));t.events&&t.events.forEach(i=>{this._onMessageReceived(t.subscriptionId,i)})}else if(i.startsWith(od)){let t=JSON.parse(i.substring(od.length));if(t.messageID){let i=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),i&&i.resolve(t)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var t;null==(t=this._webSocket)||t.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(t){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new ir,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let i=od+JSON.stringify(t);this._webSocket.send(i)}_doSendWithReply(t){if(t.messageID||(t.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(t.messageID))return Promise.reject("There's already a pending send and reply with this ID");let i=new ir;return this._repliesDeferred.set(t.messageID,i),this._webSocket.send(od+JSON.stringify(t)),i.promise}}oh._subscriptionCounter=1;let op=["__proto__","constructor","prototype"];function om(t){return!("string"!=typeof t||0===t.length||t.length>128||op.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%\s@]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!om(t)||t.indexOf("/")>-1)}let og={lng:of,ns:function(t){return om(t)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function o_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let ov=/\{\{(.+?)\}\}/g;function oy(t,i){let n=!1,r=t.replace(ov,(t,r)=>{let o=r.trim();if(op.indexOf(o)>-1)return t;let a=i[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let i of l)if(!s(i))return n=!0,t;return l.join("+")});return n?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=o_()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,oE=["__proto__","constructor","prototype"],oC=(t,i)=>{if(i&&"object"==typeof i){let n="";for(let t of Object.keys(i))oE.indexOf(t)>-1||(n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(i[t]));if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t},ok=(i,n,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(i=>{r(null,{status:t.status,data:i})}).catch(r)};if(o){let t=o(i,n);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(i,n).then(a).catch(r):t(i,n).then(a).catch(r)},oA=(i,n,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==n.indexOf("file:")){var a=n,s=r,l=o;i.queryStringParams&&(a=oC(a,i.queryStringParams));let t={..."function"==typeof i.customHeaders?i.customHeaders():i.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof i.requestOptions?i.requestOptions(s):i.requestOptions,d={method:s?"POST":"GET",body:s?i.stringify(s):void 0,headers:t,...i._omitFetchOptions?{}:c},u="function"==typeof i.alternateFetch&&i.alternateFetch.length>=1?i.alternateFetch:void 0;try{ok(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),ok(a,d,l,u),i._omitFetchOptions=!0}catch(t){l(t)}}return}if(o_()||"function"==typeof ActiveXObject){var c=n,d=r,u=o;d&&"object"==typeof d&&(d=oC("",d).slice(1)),i.queryStringParams&&(c=oC(c,i.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),i.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!i.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let n=i.customHeaders;if(n="function"==typeof n?n():n)for(let i of Object.keys(n))oE.indexOf(i)>-1||t.setRequestHeader(i,n[i]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oT=class{constructor(t,i={},n={}){this.services=t,this.options=i,this.allOptions=n,this.type="backend",this.init(t,i,n)}init(t,i={},n={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,i,n)=>({[i]:n||""}),parseLoadPayload:(t,i)=>void 0,request:oA,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...i},this.allOptions=n,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,i,n){this._readAny(t,t,i,i,n)}read(t,i,n){this._readAny([t],t,[i],i,n)}_readAny(t,i,n,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,n)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=oy(a,{lng:t.join("+"),ns:n.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+n.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,i,r)})}loadUrl(t,i,n,r){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let i=new URL(t);if(i.username||i.password)return i.username="",i.password="",i.toString();return t}catch(i){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return i("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return i("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let n=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>n.indexOf(t)>-1))return i("failed loading "+a+": "+ob(t.message),!0)}if(t)return i(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,n,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return i(l,!1);i(null,s)})}create(t,i,n,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(i,n,r),s=0,l=[],c=[];t.forEach(n=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(n,i));let d=oy(r,{lng:n,ns:i});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(i,n)=>{s+=1,l.push(i),c.push(n),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:i,logger:n}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{i.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(i=>{this.allOptions.ns.forEach(r=>{t.read(i,r,"read",null,null,(o,a)=>{o&&n.warn(`loading namespace ${r} for language ${i} failed`,o),!o&&a&&n.log(`loaded namespace ${r} for language ${i}`,a),t.loaded(`${i}|${r}`,o,a)})})})}};oT.type="backend";class oS extends eY{constructor(t){if(super(t),this.it=ev,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ev||null==t)return this._t=void 0,this.it=t;if(t===e_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eG(oS);class oI extends oS{}oI.directiveName="unsafeSVG",oI.resultType=2;let oD=eG(oI),oR={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oM=function(t,i,n,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,n,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(i,n,s):o(i,n))||s);return a>3&&s&&Object.defineProperty(i,n,s),s};class oO extends CustomEvent{constructor(){super(oO.NAME,{bubbles:!0,composed:!0})}}oO.NAME="or-iconset-added";let oL=new class{constructor(){this._icons={}}addIconSet(t,i){this._icons[t]=i,this._defaultIconSet||(this._defaultIconSet=i),i.onAdd&&i.onAdd(),window.dispatchEvent(new oO)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let i=(t||"").split(":"),n=i.pop(),r=i.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),n&&o)?o.getIconTemplate(n):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[R`
|
|
841
841
|
:host {
|
|
842
842
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
843
843
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-attribute-input",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0-snapshot.20260928140716",
|
|
4
4
|
"description": "OpenRemote attribute input",
|
|
5
5
|
"customElements": "build/custom-elements.json",
|
|
6
6
|
"main": "build/dist/umd/index.bundle.js",
|
|
@@ -27,21 +27,21 @@
|
|
|
27
27
|
"author": "OpenRemote",
|
|
28
28
|
"license": "AGPL-3.0-or-later",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@openremote/core": "1.
|
|
31
|
-
"@openremote/model": "1.
|
|
32
|
-
"@openremote/or-components": "1.
|
|
33
|
-
"@openremote/or-element": "1.
|
|
34
|
-
"@openremote/or-icon": "1.
|
|
35
|
-
"@openremote/or-json-forms": "1.
|
|
36
|
-
"@openremote/or-map": "1.
|
|
37
|
-
"@openremote/or-mwc-components": "1.
|
|
38
|
-
"@openremote/or-scheduler": "1.
|
|
39
|
-
"@openremote/or-translate": "1.
|
|
40
|
-
"@openremote/or-vaadin-components": "1.
|
|
30
|
+
"@openremote/core": "1.32.0-snapshot.20260928140716",
|
|
31
|
+
"@openremote/model": "1.32.0-snapshot.20260928140716",
|
|
32
|
+
"@openremote/or-components": "1.32.0-snapshot.20260928140716",
|
|
33
|
+
"@openremote/or-element": "1.32.0-snapshot.20260928140716",
|
|
34
|
+
"@openremote/or-icon": "1.32.0-snapshot.20260928140716",
|
|
35
|
+
"@openremote/or-json-forms": "1.32.0-snapshot.20260928140716",
|
|
36
|
+
"@openremote/or-map": "1.32.0-snapshot.20260928140716",
|
|
37
|
+
"@openremote/or-mwc-components": "1.32.0-snapshot.20260928140716",
|
|
38
|
+
"@openremote/or-scheduler": "1.32.0-snapshot.20260928140716",
|
|
39
|
+
"@openremote/or-translate": "1.32.0-snapshot.20260928140716",
|
|
40
|
+
"@openremote/or-vaadin-components": "1.32.0-snapshot.20260928140716",
|
|
41
41
|
"lit": "^3.3.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@openremote/util": "1.
|
|
44
|
+
"@openremote/util": "1.32.0-snapshot.20260928140716"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|