@openremote/or-attribute-input 1.14.0 → 1.15.0-snapshot.20260128122103

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.
@@ -67,7 +67,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
67
67
  :host([hidden]) {
68
68
  display: none;
69
69
  }
70
- `,t1([eP({type:String})],t2.prototype,"value",void 0),t1([eP({type:Object})],t2.prototype,"options",void 0),t2=t1([eR("or-translate")],t2),(lj=cq||(cq={})).CREATE="CREATE",lj.UPDATE="UPDATE",lj.DELETE="DELETE",(lY=cZ||(cZ={})).LOW="LOW",lY.MEDIUM="MEDIUM",lY.HIGH="HIGH",(lH=cK||(cK={})).MANUAL="MANUAL",lH.CLIENT="CLIENT",lH.GLOBAL_RULESET="GLOBAL_RULESET",lH.REALM_RULESET="REALM_RULESET",lH.ASSET_RULESET="ASSET_RULESET",lH.AGENT="AGENT",(lU=cX||(cX={})).OPEN="OPEN",lU.ACKNOWLEDGED="ACKNOWLEDGED",lU.IN_PROGRESS="IN_PROGRESS",lU.RESOLVED="RESOLVED",lU.CLOSED="CLOSED",(lV=cJ||(cJ={})).BOTTOM_LEFT="BOTTOM_LEFT",lV.BOTTOM_RIGHT="BOTTOM_RIGHT",lV.TOP_LEFT="TOP_LEFT",lV.TOP_RIGHT="TOP_RIGHT",(lW=cQ||(cQ={})).CREATE="CREATE",lW.READ="READ",lW.UPDATE="UPDATE",lW.DELETE="DELETE",(lG=c0||(c0={})).NONE="NONE",lG.FORECAST="FORECAST",lG.SETPOINT="SETPOINT",(lq=c1||(c1={})).DISCONNECTED="DISCONNECTED",lq.CONNECTING="CONNECTING",lq.DISCONNECTING="DISCONNECTING",lq.CONNECTED="CONNECTED",lq.DISABLED="DISABLED",lq.WAITING="WAITING",lq.ERROR="ERROR",lq.STOPPED="STOPPED",(lZ=c2||(c2={})).REQUEST_START="REQUEST_START",lZ.REQUEST_REPEATING="REQUEST_REPEATING",lZ.REQUEST_CANCEL="REQUEST_CANCEL",lZ.READY="READY",lZ.COMPLETED="COMPLETED",lZ.RUNNING="RUNNING",lZ.CANCELLED="CANCELLED",(lK=c3||(c3={})).TOGGLE="TOGGLE",lK.INCREMENT="INCREMENT",lK.DECREMENT="DECREMENT",lK.NEGATE="NEGATE",(lX=c5||(c5={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",lX.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",lX.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",lX.INVALID_VALUE="INVALID_VALUE",lX.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",lX.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",lX.CANNOT_PROCESS="CANNOT_PROCESS",lX.QUEUE_FULL="QUEUE_FULL",lX.UNKNOWN="UNKNOWN",lX.ASSET_ID_MISSING="ASSET_ID_MISSING",lX.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(lJ=c4||(c4={})).PUBLIC="PUBLIC",lJ.SHARED="SHARED",lJ.PRIVATE="PRIVATE",(lQ=c6||(c6={})).OFF="OFF",lQ.ONE_MIN="ONE_MIN",lQ.FIVE_MIN="FIVE_MIN",lQ.QUARTER="QUARTER",lQ.ONE_HOUR="ONE_HOUR",(l0=c8||(c8={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",l0.KEEP_LAYOUT="KEEP_LAYOUT",l0.REDIRECT="REDIRECT",l0.BLOCK_DEVICE="BLOCK_DEVICE",(l1=c7||(c7={})).MINUTE="MINUTE",l1.HOUR="HOUR",l1.DAY="DAY",l1.WEEK="WEEK",l1.MONTH="MONTH",l1.YEAR="YEAR",(l2=c9||(c9={})).MIN="MIN",l2.AVG="AVG",l2.MAX="MAX",l2.DIFFERENCE="DIFFERENCE",l2.COUNT="COUNT",l2.SUM="SUM",l2.MODE="MODE",l2.MEDIAN="MEDIAN",(l3=de||(de={})).TERMINATING="TERMINATING",l3.DISABLED="DISABLED",l3.ALREADY_CONNECTED="ALREADY_CONNECTED",l3.UNRECOGNISED="UNRECOGNISED",l3.PERMANENT_ERROR="PERMANENT_ERROR",l3.SYNC_ERROR="SYNC_ERROR",(l5=dt||(dt={})).HTTPS="HTTPS",l5.HTTP="HTTP",l5.TCP="TCP",(l4=dn||(dn={})).GET="GET",l4.POST="POST",l4.PUT="PUT",l4.DELETE="DELETE",l4.OPTIONS="OPTIONS",l4.PATCH="PATCH",(l6=di||(di={})).KEYCLOAK="KEYCLOAK",l6.BASIC="BASIC",l6.NONE="NONE",(l8=dr||(dr={})).WEBSOCKET="WEBSOCKET",l8.POLLING="POLLING",(l7=da||(da={})).VECTOR="VECTOR",l7.RASTER="RASTER",(l9=ds||(ds={})).INTERNAL="INTERNAL",l9.CLIENT="CLIENT",l9.GLOBAL_RULESET="GLOBAL_RULESET",l9.REALM_RULESET="REALM_RULESET",l9.ASSET_RULESET="ASSET_RULESET",(ce=dl||(dl={})).REALM="REALM",ce.USER="USER",ce.ASSET="ASSET",ce.CUSTOM="CUSTOM",(ct=dc||(dc={})).NORMAL="NORMAL",ct.HIGH="HIGH",(cn=dd||(dd={})).DEVICE="DEVICE",cn.TOPIC="TOPIC",cn.CONDITION="CONDITION",(ci=du||(du={})).ALWAYS="ALWAYS",ci.ONCE="ONCE",ci.HOURLY="HOURLY",ci.DAILY="DAILY",ci.WEEKLY="WEEKLY",ci.MONTHLY="MONTHLY",ci.ANNUALLY="ANNUALLY",(cr=dh||(dh={})).MESSAGE_INVALID="MESSAGE_INVALID",cr.CERTIFICATE_INVALID="CERTIFICATE_INVALID",cr.UNAUTHORIZED="UNAUTHORIZED",cr.FORBIDDEN="FORBIDDEN",cr.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",cr.CONFIG_DISABLED="CONFIG_DISABLED",cr.USER_DISABLED="USER_DISABLED",cr.SERVER_ERROR="SERVER_ERROR",cr.ASSET_ERROR="ASSET_ERROR",cr.SERVER_BUSY="SERVER_BUSY",(co=dm||(dm={})).PRIVATE="PRIVATE",co.PROTECTED="PROTECTED",co.PUBLIC="PUBLIC",(ca=dp||(dp={})).EXACT="EXACT",ca.BEGIN="BEGIN",ca.END="END",ca.CONTAINS="CONTAINS",(cs=df||(df={})).EQUALS="EQUALS",cs.GREATER_THAN="GREATER_THAN",cs.GREATER_EQUALS="GREATER_EQUALS",cs.LESS_THAN="LESS_THAN",cs.LESS_EQUALS="LESS_EQUALS",cs.BETWEEN="BETWEEN",(cl=dg||(dg={})).CREATED_ON="CREATED_ON",cl.NAME="NAME",cl.ASSET_TYPE="ASSET_TYPE",cl.PARENT_ID="PARENT_ID",cl.REALM="REALM",(cc=db||(db={})).RESTRICTED="RESTRICTED",cc.LINKED="LINKED",cc.REALM="REALM",(cd=d_||(d_={})).AT_LEAST_ONE="AT_LEAST_ONE",cd.ALL="ALL",cd.NONE="NONE",(cu=dy||(dy={})).AND="AND",cu.OR="OR",(ch=dv||(dv={})).CREATED_ON="CREATED_ON",ch.FIRST_NAME="FIRST_NAME",ch.LAST_NAME="LAST_NAME",ch.USERNAME="USERNAME",ch.EMAIL="EMAIL",(cm=dx||(dx={})).STOPPED="STOPPED",cm.RUNNING="RUNNING",cm.ERROR="ERROR",(cp=dw||(dw={})).JAVASCRIPT="JAVASCRIPT",cp.GROOVY="GROOVY",cp.JSON="JSON",cp.FLOW="FLOW",(cf=dF||(dF={})).READY="READY",cf.DEPLOYED="DEPLOYED",cf.COMPILATION_ERROR="COMPILATION_ERROR",cf.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",cf.EXECUTION_ERROR="EXECUTION_ERROR",cf.LOOP_ERROR="LOOP_ERROR",cf.DISABLED="DISABLED",cf.PAUSED="PAUSED",cf.EXPIRED="EXPIRED",cf.REMOVED="REMOVED",cf.EMPTY="EMPTY",(cg=dk||(dk={})).SUNRISE="SUNRISE",cg.SUNSET="SUNSET",cg.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",cg.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",cg.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",cg.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",cg.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",cg.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",cg.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",cg.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",cg.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",cg.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",cg.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",cg.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",cg.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",cg.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",cg.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",cg.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",cg.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",cg.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(cb=dE||(dE={})).NUMBER="NUMBER",cb.NUMBER_ARRAY="NUMBER_ARRAY",cb.STRING="STRING",cb.BOOLEAN="BOOLEAN",cb.TRIGGER="TRIGGER",cb.COLOR="COLOR",cb.ANY="ANY",(c_=dT||(dT={})).NEW_LINE="NEW_LINE",c_.SPACER="SPACER",(cy=dC||(dC={})).INPUT="INPUT",cy.PROCESSOR="PROCESSOR",cy.OUTPUT="OUTPUT",cy.THEN="THEN",(cv=dA||(dA={})).TEXT="TEXT",cv.MULTILINE="MULTILINE",cv.NUMBER="NUMBER",cv.DROPDOWN="DROPDOWN",cv.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",cv.CHECKBOX="CHECKBOX",cv.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",cv.COLOR="COLOR",cv.DATE="DATE",(cx=dS||(dS={})).ADD="ADD",cx.ADD_OR_REPLACE="ADD_OR_REPLACE",cx.REPLACE="REPLACE",cx.DELETE="DELETE",cx.CLEAR="CLEAR",(cw=dM||(dM={})).PER_ASSET="PER_ASSET",cw.GLOBAL="GLOBAL",(cF=dL||(dL={})).READ_ADMIN="read:admin",cF.READ_LOGS="read:logs",cF.READ_USERS="read:users",cF.READ_MAP="read:map",cF.READ_ASSETS="read:assets",cF.READ_RULES="read:rules",cF.READ_INSIGHTS="read:insights",cF.READ_ALARMS="read:alarms",cF.READ_SERVICES="read:services",cF.WRITE_SERVICES="write:services",cF.WRITE_USER="write:user",cF.WRITE_ADMIN="write:admin",cF.WRITE_LOGS="write:logs",cF.WRITE_ASSETS="write:assets",cF.WRITE_ATTRIBUTES="write:attributes",cF.WRITE_RULES="write:rules",cF.WRITE_INSIGHTS="write:insights",cF.WRITE_ALARMS="write:alarms",cF.READ="read",cF.WRITE="write",(ck=dD||(dD={})).REGISTER="REGISTER",ck.UPDATE="UPDATE",ck.DEREGISTER="DEREGISTER",(cE=dI||(dI={})).AVAILABLE="AVAILABLE",cE.UNAVAILABLE="UNAVAILABLE",(cT=dR||(dR={})).ASSET="ASSET",cT.AGENT="AGENT",cT.NOTIFICATION="NOTIFICATION",cT.ALARM="ALARM",cT.RULES="RULES",cT.PROTOCOL="PROTOCOL",cT.GATEWAY="GATEWAY",cT.MODEL_AND_VALUES="MODEL_AND_VALUES",cT.API="API",cT.DATA="DATA",(cC=dO||(dO={})).INFO="INFO",cC.WARN="WARN",cC.ERROR="ERROR",(cA=dP||(dP={})).NUMERIC="numeric",cA.DIGIT_2="2-digit",cA.FULL="full",cA.LONG="long",cA.MEDIUM="medium",cA.SHORT="short",cA.NARROW="narrow",(cS=d$||(d$={})).SECONDLY="SECONDLY",cS.MINUTELY="MINUTELY",cS.HOURLY="HOURLY",cS.DAILY="DAILY",cS.WEEKLY="WEEKLY",cS.MONTHLY="MONTHLY",cS.YEARLY="YEARLY",(cM=dB||(dB={})).OMIT="OMIT",cM.BACKWARD="BACKWARD",cM.FORWARD="FORWARD",(cL=dN||(dN={})).JAPANESE="JAPANESE",cL.BUDDHIST="BUDDHIST",cL.ROC="ROC",cL.ISLAMIC="ISLAMIC",cL.ISO8601="ISO8601",cL.CHINESE="CHINESE",cL.ETHIOPIC="ETHIOPIC",cL.HEBREW="HEBREW",cL.GREGORIAN="GREGORIAN",(cD=dz||(dz={})).SU="SU",cD.MO="MO",cD.TU="TU",cD.WE="WE",cD.TH="TH",cD.FR="FR",cD.SA="SA",(cI=dj||(dj={})).PEOPLECOUNTERASSET="PeopleCounterAsset",cI.MAILAGENT="MailAgent",cI.UDPAGENT="UDPAgent",cI.ROOMASSET="RoomAsset",cI.CITYASSET="CityAsset",cI.VENTILATIONASSET="VentilationAsset",cI.TRADFRILIGHTASSET="TradfriLightAsset",cI.CONSOLEASSET="ConsoleAsset",cI.PRESENCESENSORASSET="PresenceSensorAsset",cI.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",cI.LIGHTASSET="LightAsset",cI.KNXAGENT="KNXAgent",cI.THETHINGSSTACKAGENT="TheThingsStackAgent",cI.PLUGASSET="PlugAsset",cI.CHIRPSTACKAGENT="ChirpStackAgent",cI.WEATHERASSET="WeatherAsset",cI.THINGASSET="ThingAsset",cI.WEBSOCKETAGENT="WebsocketAgent",cI.TCPAGENT="TCPAgent",cI.GATEWAYASSET="GatewayAsset",cI.SERIALAGENT="SerialAgent",cI.BLUETOOTHMESHAGENT="BluetoothMeshAgent",cI.PARKINGASSET="ParkingAsset",cI.TRADFRIPLUGASSET="TradfriPlugAsset",cI.SIMULATORAGENT="SimulatorAgent",cI.SNMPAGENT="SNMPAgent",cI.GROUPASSET="GroupAsset",cI.BUILDINGASSET="BuildingAsset",cI.MODBUSSERIALAGENT="ModbusSerialAgent",cI.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",cI.MQTTAGENT="MQTTAgent",cI.VELBUSTCPAGENT="VelbusTCPAgent",cI.ARTNETLIGHTASSET="ArtnetLightAsset",cI.VELBUSSERIALAGENT="VelbusSerialAgent",cI.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",cI.MICROPHONEASSET="MicrophoneAsset",cI.MODBUSTCPAGENT="ModbusTcpAgent",cI.ZWAVEAGENT="ZWaveAgent",cI.HTTPAGENT="HTTPAgent",cI.DOORASSET="DoorAsset",cI.THERMOSTATASSET="ThermostatAsset",cI.SHIPASSET="ShipAsset",(cR=dY||(dY={})).COLOURRGB="colourRGB",cR.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",cR.PRICEHOURLY="priceHourly",cR.MQTTPORT="MQTTPort",cR.PINGDISABLED="pingDisabled",cR.FLOW="flow",cR.CHILDASSETTYPE="childAssetType",cR.LASTACCESS="lastAccess",cR.POSITION="position",cR.NETWORKKEY="networkKey",cR.UNIVERSE="universe",cR.ROUTINGMODE="routingMode",cR.MSSINUMBER="MSSINumber",cR.LASTWILLRETAIN="lastWillRetain",cR.LASTWILLTOPIC="lastWillTopic",cR.SERIALBAUDRATE="serialBaudrate",cR.SUBSCRIBEQOS="subscribeQos",cR.LEDCOUNT="lEDCount",cR.LOCKED="locked",cR.CLOUDCOVERAGE="cloudCoverage",cR.BASEURL="baseURL",cR.PROTOCOL="protocol",cR.REQUIREDVALUES="requiredValues",cR.REGION="region",cR.CONSOLEPLATFORM="consolePlatform",cR.GATEWAYSTATUS="gatewayStatus",cR.NO2LEVEL="NO2Level",cR.ATMOSPHERICPRESSURE="atmosphericPressure",cR.SERIALPORT="serialPort",cR.APPLICATIONID="applicationId",cR.TAGS="tags",cR.UNLOCK="unlock",cR.CHECKINTERVALSECONDS="checkIntervalSeconds",cR.LOCATION="location",cR.CLIENTSECRET="clientSecret",cR.WINDDIRECTION="windDirection",cR.WINDSPEED="windSpeed",cR.PARTICLESPM10="particlesPM10",cR.APPLICATIONKEY="applicationKey",cR.LENGTH="length",cR.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",cR.USERNAMEPASSWORD="usernamePassword",cR.WATERLEVEL="waterLevel",cR.CONNECTHEADERS="connectHeaders",cR.CONSOLENAME="consoleName",cR.WEBSOCKETQUERY="websocketQuery",cR.PREFERHTML="preferHTML",cR.COOLING="cooling",cR.POLLINGMILLIS="pollingMillis",cR.SOILTEMPERATURE="soilTemperature",cR.SUNIRRADIANCE="sunIrradiance",cR.MESSAGEMAXLENGTH="messageMaxLength",cR.WINDGUSTSPEED="windGustSpeed",cR.LIGHTID="lightId",cR.PROXYADDRESS="proxyAddress",cR.REQUESTQUERYPARAMETERS="requestQueryParameters",cR.MQTTHOST="MQTTHost",cR.SECUREGRPC="secureGRPC",cR.MODEL="model",cR.STREET="street",cR.MANUFACTURER="manufacturer",cR.DELETEPROCESSEDMAIL="deleteProcessedMail",cR.RESUMESESSION="resumeSession",cR.ONOFF="onOff",cR.APIKEY="ApiKey",cR.CITY="city",cR.PRESENCE="presence",cR.SPACESOCCUPIED="spacesOccupied",cR.STARTTLS="startTLS",cR.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",cR.WEBSOCKETPATH="websocketPath",cR.AGENTSTATUS="agentStatus",cR.PRICEDAILY="priceDaily",cR.COUNTGROWTHMINUTE="countGrowthMinute",cR.IMONUMBER="IMONumber",cR.ATTRIBUTION="Attribution",cR.TENANTID="tenantId",cR.REQUESTHEADERS="requestHeaders",cR.HOST="host",cR.COUNTOUTMINUTE="countOutMinute",cR.MESSAGECHARSET="messageCharset",cR.CERTIFICATEALIAS="certificateAlias",cR.EMAIL="email",cR.BINDPORT="bindPort",cR.CONSOLEVERSION="consoleVersion",cR.PARTICLESPM1="particlesPM1",cR.MTU="mtu",cR.SPEED="speed",cR.MESSAGESTRIPDELIMITER="messageStripDelimiter",cR.AREA="area",cR.COUNTRY="country",cR.SHIPTYPE="shipType",cR.CONNECTSUBSCRIPTIONS="connectSubscriptions",cR.RELATIVEHUMIDITY="relativeHumidity",cR.SOURCEADDRESS="sourceAddress",cR.RAINFALL="rainfall",cR.OAUTHGRANT="oAuthGrant",cR.OZONELEVEL="ozoneLevel",cR.SEQUENCENUMBER="sequenceNumber",cR.COUNTINMINUTE="countInMinute",cR.PORT="port",cR.SUNALTITUDE="sunAltitude",cR.COUNTOUT="countOut",cR.ROOMNUMBER="roomNumber",cR.TUNNELINGSUPPORTED="tunnelingSupported",cR.ENINUMBER="ENINumber",cR.PARTICLESPM2_5="particlesPM2_5",cR.AGENTDISABLED="agentDisabled",cR.DISABLED="disabled",cR.COUNTIN="countIn",cR.MESSAGESOURCEADDRESS="messageSourceAddress",cR.PROVISIONWEATHERASSET="ProvisionWeatherAsset",cR.TIMEINJECTIONINTERVAL="timeInjectionInterval",cR.TEMPERATURESETPOINT="temperatureSetpoint",cR.CONSOLEPROVIDERS="consoleProviders",cR.COUNTTOTAL="countTotal",cR.SPACESBUFFER="spacesBuffer",cR.SPACESTOTAL="spacesTotal",cR.BINDHOST="bindHost",cR.FANSPEED="fanSpeed",cR.MESSAGECONVERTBINARY="messageConvertBinary",cR.NOTES="notes",cR.MAILFOLDERNAME="mailFolderName",cR.MESSAGEDELIMITERS="messageDelimiters",cR.TEMPERATURE="temperature",cR.SUNZENITH="sunZenith",cR.SNMPVERSIONVALUE="SNMPVersionValue",cR.BRIGHTNESS="brightness",cR.POSTALCODE="postalCode",cR.SPACESOPEN="spacesOpen",cR.HUMIDITY="humidity",cR.SOUNDLEVEL="soundLevel",cR.SECUREMODE="secureMode",cR.UNITID="unitId",cR.DIRECTION="direction",cR.STOPBITS="stopBits",cR.UVINDEX="uVIndex",cR.CONNECTURL="connectURL",cR.CLIENTID="clientId",cR.NATMODE="NATMode",cR.UPDATEONWRITE="updateOnWrite",cR.LASTWILLPAYLOAD="lastWillPayload",cR.GROUPID="groupId",cR.FOLLOWREDIRECTS="followRedirects",cR.SUNAZIMUTH="sunAzimuth",cR.MESSAGECONVERTHEX="messageConvertHex",cR.WEBSOCKETMODE="websocketMode",cR.COLOURTEMPERATURE="colourTemperature",cR.PUBLISHQOS="publishQos",cR.DATABITS="dataBits",(cO=dH||(dH={})).FORMAT="format",cO.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",cO.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",cO.SECRET="secret",cO.ATTRIBUTELINKS="attributeLinks",cO.RULERESETIMMEDIATE="ruleResetImmediate",cO.RULESTATE="ruleState",cO.AGENTLINKCONFIG="agentLinkConfig",cO.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",cO.FORECAST="forecast",cO.STOREDATAPOINTS="storeDataPoints",cO.LABEL="label",cO.CONSTRAINTS="constraints",cO.UNITS="units",cO.USERCONNECTED="userConnected",cO.SHOWONDASHBOARD="showOnDashboard",cO.READONLY="readOnly",cO.MULTILINE="multiline",cO.ACCESSPUBLICWRITE="accessPublicWrite",cO.MOMENTARY="momentary",cO.AGENTLINK="agentLink",cO.ACCESSRESTRICTEDREAD="accessRestrictedRead",cO.ACCESSPUBLICREAD="accessPublicRead",(cP=dU||(dU={})).ASSETQUERY="assetQuery",cP.WSURL="WS_URL",cP.COLOURRGB="colourRGB",cP.VALUEFORMAT="valueFormat",cP.TEXT="text",cP.BYTE="byte",cP.USERNAMEANDPASSWORD="usernameAndPassword",cP.HTTPURL="HTTP_URL",cP.ATTRIBUTELINK="attributeLink",cP.ASSETID="assetID",cP.NUMBERMAP="numberMap",cP.HTTPMETHOD="HTTPMethod",cP.ATTRIBUTESTATE="attributeState",cP.POSITIVENUMBER="positiveNumber",cP.POSITIVEINTEGER="positiveInteger",cP.EXECUTIONSTATUS="executionStatus",cP.BIGINTEGER="bigInteger",cP.VALUEDESCRIPTOR="valueDescriptor",cP.PERIODDURATIONISO8601="periodDurationISO8601",cP.LONG="long",cP.DATEANDTIME="dateAndTime",cP.BOOLEANMAP="booleanMap",cP.MQTTQOS="MQTTQos",cP.NEGATIVEINTEGER="negativeInteger",cP.TCPIPPORTNUMBER="TCP_IPPortNumber",cP.GEOJSONPOINT="GEO_JSONPoint",cP.SNMPVERSION="SNMPVersion",cP.ASSETTYPE="assetType",cP.JSONOBJECT="JSONObject",cP.INTEGERMAP="integerMap",cP.BIGNUMBER="bigNumber",cP.IPADDRESS="IPAddress",cP.EMAIL="email",cP.TIMESTAMP="timestamp",cP.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",cP.ATTRIBUTEREFERENCE="attributeReference",cP.UUID="UUID",cP.INTEGER="integer",cP.OAUTHGRANT="oAuthGrant",cP.NUMBER="number",cP.TEXTMAP="textMap",cP.WEBSOCKETSUBSCRIPTION="websocketSubscription",cP.BOOLEAN="boolean",cP.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",cP.FORECASTCONFIGURATION="forecastConfiguration",cP.TIMEDURATIONISO8601="timeDurationISO8601",cP.TIMESTAMPISO8601="timestampISO8601",cP.CONSOLEPROVIDERS="consoleProviders",cP.MULTIVALUEDTEXTMAP="multivaluedTextMap",cP.NEGATIVENUMBER="negativeNumber",cP.JSON="JSON",cP.CRONEXPRESSION="CRONExpression",cP.INTEGERBYTE="integerByte",cP.AGENTLINK="agentLink",cP.DIRECTION="direction",cP.HOSTORIPADDRESS="hostOrIPAddress",cP.CALENDAREVENT="calendarEvent",cP.CONNECTIONSTATUS="connectionStatus",cP.VALUECONSTRAINT="valueConstraint",(c$=dV||(dV={})).MONTH="month",c$.MILE_SCANDINAVIAN="mile_scandinavian",c$.VAR="var",c$.OUNCE="ounce",c$.HECTARE="hectare",c$.YARD="yard",c$.YEAR="year",c$.JOULE="joule",c$.VOLT="volt",c$.HERTZ="hertz",c$.MILE="mile",c$.DEGREE="degree",c$.KILO="kilo",c$.BTU="btu",c$.FOOT="foot",c$.MEGA="mega",c$.KELVIN="kelvin",c$.CARBON="carbon",c$.DECIBEL_ATTENUATED="decibel_attenuated",c$.INCH="inch",c$.SQUARED="squared",c$.PERCENTAGE="percentage",c$.IN_HG="inch_mercury",c$.CENTI="centi",c$.GRAM="gram",c$.CUBED="cubed",c$.DAY="day",c$.RADIAN="radian",c$.OHM="ohm",c$.MINUTE="minute",c$.PART_PER_MILLION="ppm",c$.AMP="amp",c$.MASS_POUND="pound",c$.KNOT="knot",c$.METRE="metre",c$.LITRE="litre",c$.FLUID_OUNCE="fluid_ounce",c$.HOUR="hour",c$.ACRE="acre",c$.CELSIUS="celsius",c$.RPM="rpm",c$.PASCAL="pascal",c$.DECIBEL="decibel",c$.LUMEN="lumen",c$.WEEK="week",c$.FAHRENHEIT="fahrenheit",c$.WATT="watt",c$.GALLON="gallon",c$.LUX="lux",c$.MILLI="milli",c$.BAR="bar",c$.HECTO="hecto",c$.PEAK="peak",c$.SECOND="second",c$.MICRO="micro",c$.PER="per",c$.STONE="stone",dW||(dW={});class t3{static getAssetDescriptors(){return t3._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(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=t3.getValueDescriptor(n)),i=n.jsonType?n:t3.getValueDescriptor(n.type)),!i&&t&&(i=t3.getValueDescriptor("JSON")),i}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 n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}t3._assetTypeInfos=[],t3._metaItemDescriptors=[],t3._valueDescriptors=[],o(44532);var t5=o(88183),t4=o.n(t5),t6=o(14867),t8=o.n(t6),t7=o(637);class t9{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function ne(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>ne(t[i],n[i]))}return!1}function nt(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function nn(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function ni(t,n){let i="string"==typeof t?t3.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:t3.resolveValueTypeFromValue(n),value:n}}function nr(t,n,i,r,o,a){let s=nc("label",t,n,i,o),l="";if(s||(s=nn("label",t,n&&n.meta?n:void 0)),r&&(l=ns(nl("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?nt(i):void 0)}return s?s+(l?" ("+l+")":""):l}function no(t,n,i,r,o,a){let s=na(t?t.value:void 0,()=>nl("format",t,n,i,o),void 0,a),l=nl("units",t,n,i,!0);return r&&l&&l.length&&(s=ns(nl("units",t,n,i,o),s)),s}function na(t,n,i,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=n&&n();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(i||t0.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t0.t("on"):t0.t("off")),r.asOpenClosed&&(o=t?t0.t("open"):t0.t("closed")),r.asPressedReleased&&(o=t?t0.t("pressed"):t0.t("released"));break;case"object":if(r.momentJsFormat)o=t8()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t0.language,r).format(t)}else o=Object(t).toString()}return o}function ns(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t0.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t0.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function nl(t,n,i,r,o){let a,s=[],l=nc(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=nn(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=t3.getValueDescriptor(i.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 nc(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t0.t(l,{defaultValue:a||""})}function nd(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nu=function(t,n,i,r){return new(i||(i=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 n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nh=o(74461);class nm{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,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=nm._createConsoleRegistration(),h=window.localStorage.getItem("OpenRemoteConsole:"+t);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 m=u.providers;for(let t of(u.providers={},d)){let n=m&&m.hasOwnProperty(t)?m[t]:{enabled:!1,disabled:!1};u.providers[t]=n}let p=oL.getAppName();p.length>0&&0>u.apps.indexOf(p)&&u.apps.push(p),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 nu(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(0)),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 nu(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 n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nu(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 i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!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(),this._callCompletedCallback())),r})}disableProvider(t){return nu(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 n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nu(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(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new t9,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{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={}),oL.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nu(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}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,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}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 n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nh.name,version:nh.version,platform:nh.os.toString(),apps:[],model:((nh.manufacturer?nh.manufacturer+" ":"")+(nh.product?nh.product:"")).trim()}}_initialiseProvider(t){return nu(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function np(t,n){return function(){return t.apply(n,arguments)}}let{toString:nf}=Object.prototype,{getPrototypeOf:ng}=Object,{iterator:nb,toStringTag:n_}=Symbol,ny=(l=Object.create(null),t=>{let n=nf.call(t);return l[n]||(l[n]=n.slice(8,-1).toLowerCase())}),nv=t=>(t=t.toLowerCase(),n=>ny(n)===t),nx=t=>n=>typeof n===t,{isArray:nw}=Array,nF=nx("undefined");function nk(t){return null!==t&&!nF(t)&&null!==t.constructor&&!nF(t.constructor)&&nC(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nE=nv("ArrayBuffer"),nT=nx("string"),nC=nx("function"),nA=nx("number"),nS=t=>null!==t&&"object"==typeof t,nM=t=>{if("object"!==ny(t))return!1;let n=ng(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(n_ in t)&&!(nb in t)},nL=nv("Date"),nD=nv("File"),nI=nv("Blob"),nR=nv("FileList"),nO=nv("URLSearchParams"),[nP,n$,nB,nN]=["ReadableStream","Request","Response","Headers"].map(nv);function nz(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nw(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nk(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nj(t,n){let i;if(nk(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nH=t=>!nF(t)&&t!==nY,nU=(c="u">typeof Uint8Array&&ng(Uint8Array),t=>c&&t instanceof c),nV=nv("HTMLFormElement"),nW=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),nG=nv("RegExp"),nq=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nz(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},nZ=nv("AsyncFunction"),nK=(l$="function"==typeof setImmediate,lB=nC(nY.postMessage),l$?setImmediate:lB?(lN=`axios@${Math.random()}`,lz=[],nY.addEventListener("message",({source:t,data:n})=>{t===nY&&n===lN&&lz.length&&lz.shift()()},!1),t=>{lz.push(t),nY.postMessage(lN,"*")}):t=>setTimeout(t)),nX="u">typeof queueMicrotask?queueMicrotask.bind(nY):"u">typeof process&&process.nextTick||nK,nJ={isArray:nw,isArrayBuffer:nE,isBuffer:nk,isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||nC(t.append)&&("formdata"===(n=ny(t))||"object"===n&&nC(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nE(t.buffer)},isString:nT,isNumber:nA,isBoolean:t=>!0===t||!1===t,isObject:nS,isPlainObject:nM,isEmptyObject:t=>{if(!nS(t)||nk(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nP,isRequest:n$,isResponse:nB,isHeaders:nN,isUndefined:nF,isDate:nL,isFile:nD,isBlob:nI,isRegExp:nG,isFunction:nC,isStream:t=>nS(t)&&nC(t.pipe),isURLSearchParams:nO,isTypedArray:nU,isFileList:nR,forEach:nz,merge:function t(){let{caseless:n,skipUndefined:i}=nH(this)&&this||{},r={},o=(o,a)=>{let s=n&&nj(r,a)||a;nM(r[s])&&nM(o)?r[s]=t(r[s],o):nM(o)?r[s]=t({},o):nw(o)?r[s]=o.slice():i&&nF(o)||(r[s]=o)};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&nz(arguments[t],o);return r},extend:(t,n,i,{allOwnKeys:r}={})=>(nz(n,(n,r)=>{i&&nC(n)?t[r]=np(n,i):t[r]=n},{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,n,i,r)=>{t.prototype=Object.create(n.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&ng(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:ny,kindOfTest:nv,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nw(t))return t;let n=t.length;if(!nA(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nb]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:nV,hasOwnProperty:nW,hasOwnProp:nW,reduceDescriptors:nq,freezeMethods:t=>{nq(t,(n,i)=>{if(nC(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(nC(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nw(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nj,global:nY,isContextDefined:nH,isSpecCompliantForm:function(t){return!!(t&&nC(t.append)&&"FormData"===t[n_]&&t[nb])},toJSONObject:t=>{let n=Array(10),i=(t,r)=>{if(nS(t)){if(n.indexOf(t)>=0)return;if(nk(t))return t;if(!("toJSON"in t)){n[r]=t;let o=nw(t)?[]:{};return nz(t,(t,n)=>{let a=i(t,r+1);nF(a)||(o[n]=a)}),n[r]=void 0,o}}return t};return i(t,0)},isAsyncFn:nZ,isThenable:t=>t&&(nS(t)||nC(t))&&nC(t.then)&&nC(t.catch),setImmediate:nK,asap:nX,isIterable:t=>null!=t&&nC(t[nb])};function nQ(t,n,i,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}nJ.inherits(nQ,Error,{toJSON:function(){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:nJ.toJSONObject(this.config),code:this.code,status:this.status}}});let n0=nQ.prototype,n1={};function n2(t){return nJ.isPlainObject(t)||nJ.isArray(t)}function n3(t){return nJ.endsWith(t,"[]")?t.slice(0,-2):t}function n5(t,n,i){return t?t.concat(n).map(function(t,n){return t=n3(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{n1[t]={value:t}}),Object.defineProperties(nQ,n1),Object.defineProperty(n0,"isAxiosError",{value:!0}),nQ.from=(t,n,i,r,o,a)=>{let s=Object.create(n0);nJ.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);let l=t&&t.message?t.message:"Error",c=null==n&&t?t.code:n;return nQ.call(s,l,c,i,r,o),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",a&&Object.assign(s,a),s};let n4=nJ.toFlatObject(nJ,{},null,function(t){return/^is[A-Z]/.test(t)}),n6=function(t,n,i){if(!nJ.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=nJ.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!nJ.isUndefined(n[t])})).metaTokens,o=i.visitor||d,a=i.dots,s=i.indexes,l=(i.Blob||"u">typeof Blob&&Blob)&&nJ.isSpecCompliantForm(n);if(!nJ.isFunction(o))throw TypeError("visitor must be a function");function c(t){if(null===t)return"";if(nJ.isDate(t))return t.toISOString();if(nJ.isBoolean(t))return t.toString();if(!l&&nJ.isBlob(t))throw new nQ("Blob is not supported. Use a Buffer instead.");return nJ.isArrayBuffer(t)||nJ.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function d(t,i,o){let l=t;if(t&&!o&&"object"==typeof t)if(nJ.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var d;if(nJ.isArray(t)&&(d=t,nJ.isArray(d)&&!d.some(n2))||(nJ.isFileList(t)||nJ.endsWith(i,"[]"))&&(l=nJ.toArray(t)))return i=n3(i),l.forEach(function(t,r){nJ.isUndefined(t)||null===t||n.append(!0===s?n5([i],r,a):null===s?i:i+"[]",c(t))}),!1}return!!n2(t)||(n.append(n5(o,i,a),c(t)),!1)}let u=[],h=Object.assign(n4,{defaultVisitor:d,convertValue:c,isVisitable:n2});if(!nJ.isObject(t))throw TypeError("data must be an object");return!function t(i,r){if(!nJ.isUndefined(i)){if(-1!==u.indexOf(i))throw Error("Circular reference detected in "+r.join("."));u.push(i),nJ.forEach(i,function(i,a){!0===(!(nJ.isUndefined(i)||null===i)&&o.call(n,i,nJ.isString(a)?a.trim():a,r,h))&&t(i,r?r.concat(a):[a])}),u.pop()}}(t),n};function n8(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return n[t]})}function n7(t,n){this._pairs=[],t&&n6(t,this,n)}let n9=n7.prototype;function ie(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function it(t,n,i){let r;if(!n)return t;let o=i&&i.encode||ie;nJ.isFunction(i)&&(i={serialize:i});let a=i&&i.serialize;if(r=a?a(n,i):nJ.isURLSearchParams(n)?n.toString():new n7(n,i).toString(o)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}n9.append=function(t,n){this._pairs.push([t,n])},n9.toString=function(t){let n=t?function(n){return t.call(this,n,n8)}:n8;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ii=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nJ.forEach(this.handlers,function(n){null!==n&&t(n)})}},ir={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},io="u">typeof URLSearchParams?URLSearchParams:n7,ia="u">typeof FormData?FormData:null,is="u">typeof Blob?Blob:null,il="u">typeof window&&"u">typeof document,ic="object"==typeof navigator&&navigator||void 0,id=il&&(!ic||0>["ReactNative","NativeScript","NS"].indexOf(ic.product)),iu="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ih=il&&window.location.href||"http://localhost",im={...w,isBrowser:!0,classes:{URLSearchParams:io,FormData:ia,Blob:is},protocols:["http","https","file","blob","url","data"]},ip=function(t){if(nJ.isFormData(t)&&nJ.isFunction(t.entries)){let n={};return nJ.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&nJ.isArray(r)?r.length:a,l)?nJ.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i:(r[a]&&nJ.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&nJ.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(nJ.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},ig={transitional:ir,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=nJ.isObject(t);if(a&&nJ.isHTMLForm(t)&&(t=new FormData(t)),nJ.isFormData(t))return o?JSON.stringify(ip(t)):t;if(nJ.isArrayBuffer(t)||nJ.isBuffer(t)||nJ.isStream(t)||nJ.isFile(t)||nJ.isBlob(t)||nJ.isReadableStream(t))return t;if(nJ.isArrayBufferView(t))return t.buffer;if(nJ.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=t,l=this.formSerializer,n6(s,new im.classes.URLSearchParams,{visitor:function(t,n,i,r){return im.isNode&&nJ.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=nJ.isFileList(t))||r.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return n6(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}if(a||o){n.setContentType("application/json",!1);var c=t;if(nJ.isString(c))try{return(0,JSON.parse)(c),nJ.trim(c)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(c)}return t}],transformResponse:[function(t){let n=this.transitional||ig.transitional,i=n&&n.forcedJSONParsing,r="json"===this.responseType;if(nJ.isResponse(t)||nJ.isReadableStream(t))return t;if(t&&nJ.isString(t)&&(i&&!this.responseType||r)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,this.parseReviver)}catch(t){if(!i&&r){if("SyntaxError"===t.name)throw nQ.from(t,nQ.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:im.classes.FormData,Blob:im.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};nJ.forEach(["delete","get","head","post","put","patch"],t=>{ig.headers[t]={}});let ib=nJ.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"]),i_=Symbol("internals");function iy(t){return t&&String(t).trim().toLowerCase()}function iv(t){return!1===t||null==t?t:nJ.isArray(t)?t.map(iv):String(t)}function ix(t,n,i,r,o){if(nJ.isFunction(r))return r.call(this,n,i);if(o&&(n=i),nJ.isString(n)){if(nJ.isString(r))return -1!==n.indexOf(r);if(nJ.isRegExp(r))return r.test(n)}}class iw{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=iy(n);if(!o)throw Error("header name must be a non-empty string");let a=nJ.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=iv(t))}let a=(t,n)=>nJ.forEach(t,(t,i)=>o(t,i,n));if(nJ.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(nJ.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&ib[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(nJ.isObject(t)&&nJ.isIterable(t)){let i={},r,o;for(let n of t){if(!nJ.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?nJ.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=iy(t)){let i=nJ.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(nJ.isFunction(n))return n.call(this,t,i);if(nJ.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iy(t)){let i=nJ.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ix(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=iy(t)){let o=nJ.findKey(i,t);o&&(!n||ix(i,i[o],o,n))&&(delete i[o],r=!0)}}return nJ.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ix(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return nJ.forEach(this,(r,o)=>{let a=nJ.findKey(i,o);if(a){n[a]=iv(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=iv(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return nJ.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&nJ.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).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,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[i_]=this[i_]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=iy(t);if(!n[r]){let o;o=nJ.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return nJ.isArray(t)?t.forEach(r):r(t),this}}function iF(t,n){let i=this||ig,r=n||i,o=iw.from(r.headers),a=r.data;return nJ.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function ik(t){return!!(t&&t.__CANCEL__)}function iE(t,n,i){nQ.call(this,null==t?"canceled":t,nQ.ERR_CANCELED,n,i),this.name="CanceledError"}function iT(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new nQ("Request failed with status code "+i.status,[nQ.ERR_BAD_REQUEST,nQ.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}iw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nJ.reduceDescriptors(iw.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),nJ.freezeMethods(iw),nJ.inherits(iE,nQ,{__CANCEL__:!0});let iC=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=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-i<n)return;let m=d&&c-d;return m?Math.round(1e3*h/m):void 0}},iA=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},iS=(t,n,i=3)=>{let r=0,o=iC(50,250);return iA(i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l);r=a,t({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&a<=s?(s-a)/c:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iM=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iL=t=>(...n)=>nJ.asap(()=>t(...n)),iD=im.hasStandardBrowserEnv?(d=new URL(im.origin),u=im.navigator&&/(msie|trident)/i.test(im.navigator.userAgent),t=>(t=new URL(t,im.origin),d.protocol===t.protocol&&d.host===t.host&&(u||d.port===t.port))):()=>!0,iI=im.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];nJ.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),nJ.isString(r)&&l.push(`path=${r}`),nJ.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nJ.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iR(t,n,i){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);return t&&(r||!1==i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iO=t=>t instanceof iw?{...t}:t;function iP(t,n){n=n||{};let i={};function r(t,n,i,r){return nJ.isPlainObject(t)&&nJ.isPlainObject(n)?nJ.merge.call({caseless:r},t,n):nJ.isPlainObject(n)?nJ.merge({},n):nJ.isArray(n)?n.slice():n}function o(t,n,i,o){return nJ.isUndefined(n)?nJ.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!nJ.isUndefined(n))return r(void 0,n)}function s(t,n){return nJ.isUndefined(n)?nJ.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return a in n?r(i,o):a in t?r(void 0,i):void 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,responseEncoding:s,validateStatus:l,headers:(t,n,i)=>o(iO(t),iO(n),i,!0)};return nJ.forEach(Object.keys({...t,...n}),function(r){let a=c[r]||o,s=a(t[r],n[r],r);nJ.isUndefined(s)&&a!==l||(i[r]=s)}),i}let i$=t=>{let n=iP({},t),{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=iw.from(s),n.url=it(iR(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),nJ.isFormData(i)){if(im.hasStandardBrowserEnv||im.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(nJ.isFunction(i.getHeaders)){let t=i.getHeaders(),n=["content-type","content-length"];Object.entries(t).forEach(([t,i])=>{n.includes(t.toLowerCase())&&s.set(t,i)})}}if(im.hasStandardBrowserEnv&&(r&&nJ.isFunction(r)&&(r=r(n)),r||!1!==r&&iD(n.url))){let t=o&&a&&iI.read(a);t&&s.set(o,t)}return n},iB="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,u=i$(t),h=u.data,m=iw.from(u.headers).normalize(),{responseType:p,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 y(){if(!_)return;let r=iw.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());iT(function(t){n(t),b()},function(t){i(t),b()},{data:p&&"text"!==p&&"json"!==p?_.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=y:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(y)},_.onabort=function(){_&&(i(new nQ("Request aborted",nQ.ECONNABORTED,t,_)),_=null)},_.onerror=function(n){let r=new nQ(n&&n.message?n.message:"Network Error",nQ.ERR_NETWORK,t,_);r.event=n||null,i(r),_=null},_.ontimeout=function(){let n=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ir;u.timeoutErrorMessage&&(n=u.timeoutErrorMessage),i(new nQ(n,r.clarifyTimeoutError?nQ.ETIMEDOUT:nQ.ECONNABORTED,t,_)),_=null},void 0===h&&m.setContentType(null),"setRequestHeader"in _&&nJ.forEach(m.toJSON(),function(t,n){_.setRequestHeader(n,t)}),nJ.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),p&&"json"!==p&&(_.responseType=u.responseType),g&&([s,c]=iS(g,!0),_.addEventListener("progress",s)),f&&_.upload&&([a,l]=iS(f),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=n=>{_&&(i(!n||n.type?new iE(null,t,_):n),_.abort(),_=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let v=(r=u.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r))&&d[1]||"");v&&-1===im.protocols.indexOf(v)?i(new nQ("Unsupported protocol "+v+":",nQ.ERR_BAD_REQUEST,t)):_.send(h||null)})},iN=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},iz=async function*(t,n){for await(let i of ij(t))yield*iN(i,n)},ij=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},iY=(t,n,i,r)=>{let o,a=iz(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:iH}=nJ,iU=(({Request:t,Response:n})=>({Request:t,Response:n}))(nJ.global),{ReadableStream:iV,TextEncoder:iW}=nJ.global,iG=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},iq=t=>{let n,{fetch:i,Request:r,Response:o}=t=nJ.merge.call({skipUndefined:!0},iU,t),a=i?iH(i):"function"==typeof fetch,s=iH(r),l=iH(o);if(!a)return!1;let c=a&&iH(iV),d=a&&("function"==typeof iW?(n=new iW,t=>n.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer())),u=s&&c&&iG(()=>{let t=!1,n=new r(im.origin,{body:new iV,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),h=l&&c&&iG(()=>nJ.isReadableStream(new o("").body)),m={stream:h&&(t=>t.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{m[t]||(m[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new nQ(`Response type '${t}' is not supported`,nQ.ERR_NOT_SUPPORT,i)})});let p=async t=>{if(null==t)return 0;if(nJ.isBlob(t))return t.size;if(nJ.isSpecCompliantForm(t)){let n=new r(im.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return nJ.isArrayBufferView(t)||nJ.isArrayBuffer(t)?t.byteLength:(nJ.isURLSearchParams(t)&&(t+=""),nJ.isString(t))?(await d(t)).byteLength:void 0},f=async(t,n)=>{let i=nJ.toFiniteNumber(t.getContentLength());return null==i?p(n):i};return async t=>{let n,{url:a,method:l,data:c,signal:d,cancelToken:p,timeout:g,onDownloadProgress:b,onUploadProgress:_,responseType:y,headers:v,withCredentials:x="same-origin",fetchOptions:w}=i$(t),F=i||fetch;y=y?(y+"").toLowerCase():"text";let k=((t,n)=>{let{length:i}=t=t?t.filter(Boolean):[];if(n||i){let i,r=new AbortController,o=function(t){if(!i){i=!0,s();let n=t instanceof Error?t:this.reason;r.abort(n instanceof nQ?n:new iE(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new nQ(`timeout ${n} of ms exceeded`,nQ.ETIMEDOUT))},n),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));let{signal:l}=r;return l.unsubscribe=()=>nJ.asap(s),l}})([d,p&&p.toAbortSignal()],g),E=null,T=k&&k.unsubscribe&&(()=>{k.unsubscribe()});try{if(_&&u&&"get"!==l&&"head"!==l&&0!==(n=await f(v,c))){let t,i=new r(a,{method:"POST",body:c,duplex:"half"});if(nJ.isFormData(c)&&(t=i.headers.get("content-type"))&&v.setContentType(t),i.body){let[t,r]=iM(n,iS(iL(_)));c=iY(i.body,65536,t,r)}}nJ.isString(x)||(x=x?"include":"omit");let i=s&&"credentials"in r.prototype,d={...w,signal:k,method:l.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:i?x:void 0};E=s&&new r(a,d);let p=await (s?F(E,w):F(a,d)),g=h&&("stream"===y||"response"===y);if(h&&(b||g&&T)){let t={};["status","statusText","headers"].forEach(n=>{t[n]=p[n]});let n=nJ.toFiniteNumber(p.headers.get("content-length")),[i,r]=b&&iM(n,iS(iL(b),!0))||[];p=new o(iY(p.body,65536,i,()=>{r&&r(),T&&T()}),t)}y=y||"text";let C=await m[nJ.findKey(m,y)||"text"](p,t);return!g&&T&&T(),await new Promise((n,i)=>{iT(n,i,{data:C,headers:iw.from(p.headers),status:p.status,statusText:p.statusText,config:t,request:E})})}catch(n){if(T&&T(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new nQ("Network Error",nQ.ERR_NETWORK,t,E),{cause:n.cause||n});throw nQ.from(n,n&&n.code,t,E)}}},iZ=new Map,iK=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=iZ;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:iq(n)),d=c;return c};iK();let iX={http:null,xhr:iB,fetch:{get:iK}};nJ.forEach(iX,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}});let iJ=t=>`- ${t}`,iQ=t=>nJ.isFunction(t)||null===t||!1===t,i0=function(t,n){let i,r,{length:o}=t=nJ.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!iQ(i)&&void 0===(r=iX[(o=String(i)).toLowerCase()]))throw new nQ(`Unknown adapter '${o}'`);if(r&&(nJ.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new nQ("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(iJ).join("\n"):" "+iJ(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function i1(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iE(null,t)}function i2(t){return i1(t),t.headers=iw.from(t.headers),t.data=iF.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),i0(t.adapter||ig.adapter,t)(t).then(function(n){return i1(t),n.data=iF.call(t,t.transformResponse,n),n.headers=iw.from(n.headers),n},function(n){return!ik(n)&&(i1(t),n&&n.response&&(n.response.data=iF.call(t,t.transformResponse,n.response),n.response.headers=iw.from(n.response.headers))),Promise.reject(n)})}let i3={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{i3[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let i5={};i3.transitional=function(t,n,i){function r(t,n){return"[Axios v1.13.2] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new nQ(r(o," has been removed"+(n?" in "+n:"")),nQ.ERR_DEPRECATED);return n&&!i5[o]&&(i5[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},i3.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let i4=function(t,n,i){if("object"!=typeof t)throw new nQ("options must be an object",nQ.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=n[a];if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new nQ("option "+a+" must be "+i,nQ.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new nQ("Unknown option "+a,nQ.ERR_BAD_OPTION)}};class i6{constructor(t){this.defaults=t||{},this.interceptors={request:new ii,response:new ii}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iP(this.defaults,n);void 0!==o&&i4(o,{silentJSONParsing:i3.transitional(i3.boolean),forcedJSONParsing:i3.transitional(i3.boolean),clarifyTimeoutError:i3.transitional(i3.boolean)},!1),null!=a&&(nJ.isFunction(a)?n.paramsSerializer={serialize:a}:i4(a,{encode:i3.function,serialize:i3.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),i4(n,{baseUrl:i3.spelling("baseURL"),withXsrfToken:i3.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&nJ.merge(s.common,s[n.method]);s&&nJ.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),n.headers=iw.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(n))&&(d=d&&t.synchronous,c.unshift(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=[i2.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,i=Promise.resolve(n);h<r;)i=i.then(t[h++],t[h++]);return i}r=c.length;let m=n;for(;h<r;){let t=c[h++],n=c[h++];try{m=t(m)}catch(t){n.call(this,t);break}}try{i=i2.call(this,m)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return it(iR((t=iP(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}nJ.forEach(["delete","get","head","options"],function(t){i6.prototype[t]=function(n,i){return this.request(iP(i||{},{method:t,url:n,data:(i||{}).data}))}}),nJ.forEach(["post","put","patch"],function(t){function n(n){return function(i,r,o){return this.request(iP(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}i6.prototype[t]=n(),i6.prototype[t+"Form"]=n(!0)});class i8{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new iE(t,r,o),n(i.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 n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new i8(function(n){t=n}),cancel:t}}}let i7={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(i7).forEach(([t,n])=>{i7[n]=t});let i9=function t(n){let i=new i6(n),r=np(i6.prototype.request,i);return nJ.extend(r,i6.prototype,i,{allOwnKeys:!0}),nJ.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iP(n,i))},r}(ig);i9.Axios=i6,i9.CanceledError=iE,i9.CancelToken=i8,i9.isCancel=ik,i9.VERSION="1.13.2",i9.toFormData=n6,i9.AxiosError=nQ,i9.Cancel=i9.CanceledError,i9.all=function(t){return Promise.all(t)},i9.spread=function(t){return function(n){return t.apply(null,n)}},i9.isAxiosError=function(t){return nJ.isObject(t)&&!0===t.isAxiosError},i9.mergeConfig=iP,i9.AxiosHeaders=iw,i9.formToJSON=t=>ip(nJ.isHTMLForm(t)?new FormData(t):t),i9.getAdapter=i0,i9.HttpStatusCode=i7,i9.default=i9;class re{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rw`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rw`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rw`apps/info`,options:t})}}class rt{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rw`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rw`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rw`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rw`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rw`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rw`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rw`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/${t}`,data:n,options:i})}}class rn{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rw`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rw`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rw`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rw`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rw`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rw`service/${t}/${n}`,options:i})}}class ri{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rw`console/register`,data:t,options:n})}}class rr{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rw`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rw`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rw`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rw`dashboard/${t}/${n}`,options:i})}}class ro{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rw`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rw`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rw`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rw`syslog/event`,queryParams:t,options:n})}}class ra{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rw`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rw`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rw`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rw`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rw`notification/${t}/delivered`,queryParams:n,options:i})}}class rs{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rw`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rw`info`,options:t})}}class rl{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rw`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rw`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rw`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rw`provisioning/${t}`,data:n,options:i})}}class rc{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rw`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rw`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rw`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rw`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:rw`map/js`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rw`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rw`map/upload`,queryParams:t,options:n})}}class rd{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rw`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rw`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class ru{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rw`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rw`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rw`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rw`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`realm/${t}`,data:n,options:i})}}class rh{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rw`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rw`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rw`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rw`configuration/manager/image/${t}`,options:n})}}class rm{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rw`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rw`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rw`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rw`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rw`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rw`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rw`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rw`alarm/${t}/assets`,queryParams:n,options:i})}}class rp{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rw`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rw`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rf{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rw`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rw`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rw`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rw`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rw`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rw`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rw`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rw`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rw`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rw`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rw`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/${n}`,options:i})}}class rg{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rw`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rw`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rw`flow/${t}`,options:n})}}class rb{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rw`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class r_{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rw`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rw`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rw`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/valueDescriptors`,queryParams:t,options:n})}}class ry{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rw`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rw`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rw`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rw`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rw`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rw`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rw`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rw`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rw`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rw`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rw`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rw`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rw`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rw`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/child`,queryParams:n,options:i})}}class rv{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rw`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rw`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/status/${t}`,options:n})}}class rx{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`asset/predicted/${t}/${n}`,data:i,options:r})}}function rw(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rF{constructor(t,n=i9.create()){this._appResource=new rE(t,n),this._rulesResource=new rT(t,n),this._externalServiceResource=new rC(t,n),this._consoleResource=new rA(t,n),this._dashboardResource=new rS(t,n),this._syslogResource=new rM(t,n),this._notificationResource=new rL(t,n),this._statusResource=new rD(t,n),this._provisioningResource=new rI(t,n),this._mapResource=new rR(t,n),this._agentResource=new rO(t,n),this._realmResource=new rP(t,n),this._configurationResource=new r$(t,n),this._alarmResource=new rB(t,n),this._assetDatapointResource=new rN(t,n),this._userResource=new rz(t,n),this._flowResource=new rj(t,n),this._gatewayServiceResource=new rY(t,n),this._assetModelResource=new rH(t,n),this._assetResource=new rU(t,n),this._gatewayClientResource=new rV(t,n),this._assetPredictedDatapointResource=new rW(t,n),this._assetResource=new rU(t,n)}get AppResource(){return this._appResource}get RulesResource(){return this._rulesResource}get ExternalServiceResource(){return this._externalServiceResource}get ConsoleResource(){return this._consoleResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get NotificationResource(){return this._notificationResource}get StatusResource(){return this._statusResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AgentResource(){return this._agentResource}get RealmResource(){return this._realmResource}get ConfigurationResource(){return this._configurationResource}get AlarmResource(){return this._alarmResource}get AssetDatapointResource(){return this._assetDatapointResource}get UserResource(){return this._userResource}get FlowResource(){return this._flowResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}get AssetResource(){return this._assetResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}}class rk{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rE extends re{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rT extends rt{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rC extends rn{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rA extends ri{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rS extends rr{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rM extends ro{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rL extends ra{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rD extends rs{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rI extends rl{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rR extends rc{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rO extends rd{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rP extends ru{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class r$ extends rh{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rB extends rm{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rN extends rp{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rz extends rf{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rj extends rg{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rY extends rb{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rH extends r_{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rU extends ry{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rV extends rv{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rW extends rx{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}i9.isAxiosError;let rG=new class{get api(){return this._client}constructor(){this._axiosInstance=i9.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>t4().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 rF(t,this._axiosInstance)}};var rq=function(t,n,i,r){return new(i||(i=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 n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(cB=dG||(dG={})).DISCONNECTED="DISCONNECTED",cB.CONNECTED="CONNECTED",cB.CONNECTING="CONNECTING";let rZ="SUBSCRIBED:",rK="UNAUTHORIZED:",rX="TRIGGERED:",rJ="EVENT:";class rQ{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=r0.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=dG.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,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===dG.CONNECTED)?Promise.resolve(!0):(this._disconnectRequested=!1,this._connectingDeferred||(this._onStatusChanged(dG.CONNECTING),this._connectingDeferred=new t9,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;this._connectingDeferred=null,t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=r0.MIN_RECONNECT_DELAY,this._onStatusChanged(dG.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):(console.debug("Failed to connect to event service: "+this.endpointUrl),this._scheduleReconnect()),n.resolve(t)}})),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!==dG.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new t9};return null!=this._pendingSubscription||this._status!==dG.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return rq(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)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===dG.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==dG.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return rq(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+rQ._subscriptionCounter++;if(!this._assetEventPromise){let t;oL.authenticated||(t={filterType:"asset",realm:oL.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===oL.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){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=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return rq(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"+rQ._subscriptionCounter++;if(!this._attributeEventPromise){let t;oL.authenticated||(t={filterType:"asset",realm:oL.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===oL.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&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(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===dG.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_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===dG.CONNECTED&&this._onStatusChanged(dG.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(dG.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<r0.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(r0.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}rQ.MIN_RECONNECT_DELAY=0,rQ.MAX_RECONNECT_DELAY=3e4,rQ._subscriptionCounter=0;class r0 extends rQ{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="+oL.config.realm;return oL.authenticated&&(t+="&Authorization="+oL.getAuthorizationHeader()),this._webSocket=new WebSocket(t),this._connectDeferred=new t9,this._webSocket.onopen=()=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else console.debug("Event provider error"),this._beforeDisconnect()},this._webSocket.onclose=()=>{if(this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(rZ)){let t=JSON.parse(n.substring(rZ.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(rK)){let t=JSON.parse(n.substring(rK.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(rX)){let t=JSON.parse(n.substring(rX.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(rJ)){let t=JSON.parse(n.substring(rJ.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.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 t9,t.subscriptionId||(t.subscriptionId=r0._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 n=rJ+JSON.stringify(t);this._webSocket.send(n)}_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 n=new t9;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(rJ+JSON.stringify(t)),n.promise}}function r1(t){return(r1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r0._subscriptionCounter=1;var r2=[],r3=r2.forEach,r5=r2.slice;function r4(t){return r3.call(r5.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function r6(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":r1(XMLHttpRequest))==="object"}var r8=o(54550),r7=o.t(r8,2);function r9(t){return(r9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(dq="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),r6()&&("u">typeof global&&global.XMLHttpRequest?dZ=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(dZ=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?dK=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(dK=window.ActiveXObject)),dq||!r7||dZ||dK||(dq=r8||r7),"function"!=typeof dq&&(dq=void 0);var oe=function(t,n){if(n&&"object"===r9(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},ot=function(t,n,i){dq(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},on=!1,oi=function(t,n,i,r){t.queryStringParams&&(n=oe(n,t.queryStringParams));var o=r4({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=r4({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},on?{}:a);try{ot(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),ot(n,s,r),on=!0}catch(t){r(t)}}},or=function(t,n,i,r){i&&"object"===r9(i)&&(i=oe("",i).slice(1)),t.queryStringParams&&(n=oe(n,t.queryStringParams));try{(o=dZ?new dZ:new dK("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let oo=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},dq)?oi(t,n,i,r):r6()||"function"==typeof ActiveXObject?or(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var oa=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=r4(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:oo,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var u=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,u,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();oa.type="backend";class os extends eY{constructor(t){if(super(t),this.it=eg,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===eg||null==t)return this._t=void 0,this.it=t;if(t===ef)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 n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}os.directiveName="unsafeHTML",os.resultType=1,ej(os);class ol extends os{}ol.directiveName="unsafeSVG",ol.resultType=2;let oc=ej(ol),od={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-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" />'};var ou=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class oh extends CustomEvent{constructor(){super(oh.NAME,{bubbles:!0,composed:!0})}}oh.NAME="or-iconset-added";let om=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oh)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return em``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):em``}},op=class extends eD{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[S`
70
+ `,t1([eP({type:String})],t2.prototype,"value",void 0),t1([eP({type:Object})],t2.prototype,"options",void 0),t2=t1([eR("or-translate")],t2),(lj=cq||(cq={})).CREATE="CREATE",lj.UPDATE="UPDATE",lj.DELETE="DELETE",(lY=cZ||(cZ={})).LOW="LOW",lY.MEDIUM="MEDIUM",lY.HIGH="HIGH",(lH=cK||(cK={})).MANUAL="MANUAL",lH.CLIENT="CLIENT",lH.GLOBAL_RULESET="GLOBAL_RULESET",lH.REALM_RULESET="REALM_RULESET",lH.ASSET_RULESET="ASSET_RULESET",lH.AGENT="AGENT",(lU=cX||(cX={})).OPEN="OPEN",lU.ACKNOWLEDGED="ACKNOWLEDGED",lU.IN_PROGRESS="IN_PROGRESS",lU.RESOLVED="RESOLVED",lU.CLOSED="CLOSED",(lV=cJ||(cJ={})).BOTTOM_LEFT="BOTTOM_LEFT",lV.BOTTOM_RIGHT="BOTTOM_RIGHT",lV.TOP_LEFT="TOP_LEFT",lV.TOP_RIGHT="TOP_RIGHT",(lW=cQ||(cQ={})).CREATE="CREATE",lW.READ="READ",lW.UPDATE="UPDATE",lW.DELETE="DELETE",(lG=c0||(c0={})).NONE="NONE",lG.FORECAST="FORECAST",lG.SETPOINT="SETPOINT",(lq=c1||(c1={})).DISCONNECTED="DISCONNECTED",lq.CONNECTING="CONNECTING",lq.DISCONNECTING="DISCONNECTING",lq.CONNECTED="CONNECTED",lq.DISABLED="DISABLED",lq.WAITING="WAITING",lq.ERROR="ERROR",lq.STOPPED="STOPPED",(lZ=c2||(c2={})).REQUEST_START="REQUEST_START",lZ.REQUEST_REPEATING="REQUEST_REPEATING",lZ.REQUEST_CANCEL="REQUEST_CANCEL",lZ.READY="READY",lZ.COMPLETED="COMPLETED",lZ.RUNNING="RUNNING",lZ.CANCELLED="CANCELLED",(lK=c3||(c3={})).TOGGLE="TOGGLE",lK.INCREMENT="INCREMENT",lK.DECREMENT="DECREMENT",lK.NEGATE="NEGATE",(lX=c5||(c5={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",lX.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",lX.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",lX.INVALID_VALUE="INVALID_VALUE",lX.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",lX.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",lX.CANNOT_PROCESS="CANNOT_PROCESS",lX.QUEUE_FULL="QUEUE_FULL",lX.UNKNOWN="UNKNOWN",lX.ASSET_ID_MISSING="ASSET_ID_MISSING",lX.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(lJ=c4||(c4={})).PUBLIC="PUBLIC",lJ.SHARED="SHARED",lJ.PRIVATE="PRIVATE",(lQ=c6||(c6={})).OFF="OFF",lQ.ONE_MIN="ONE_MIN",lQ.FIVE_MIN="FIVE_MIN",lQ.QUARTER="QUARTER",lQ.ONE_HOUR="ONE_HOUR",(l0=c8||(c8={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",l0.KEEP_LAYOUT="KEEP_LAYOUT",l0.REDIRECT="REDIRECT",l0.BLOCK_DEVICE="BLOCK_DEVICE",(l1=c7||(c7={})).MINUTE="MINUTE",l1.HOUR="HOUR",l1.DAY="DAY",l1.WEEK="WEEK",l1.MONTH="MONTH",l1.YEAR="YEAR",(l2=c9||(c9={})).MIN="MIN",l2.AVG="AVG",l2.MAX="MAX",l2.DIFFERENCE="DIFFERENCE",l2.COUNT="COUNT",l2.SUM="SUM",l2.MODE="MODE",l2.MEDIAN="MEDIAN",(l3=de||(de={})).TERMINATING="TERMINATING",l3.DISABLED="DISABLED",l3.ALREADY_CONNECTED="ALREADY_CONNECTED",l3.UNRECOGNISED="UNRECOGNISED",l3.PERMANENT_ERROR="PERMANENT_ERROR",l3.SYNC_ERROR="SYNC_ERROR",(l5=dt||(dt={})).HTTPS="HTTPS",l5.HTTP="HTTP",l5.TCP="TCP",(l4=dn||(dn={})).GET="GET",l4.POST="POST",l4.PUT="PUT",l4.DELETE="DELETE",l4.OPTIONS="OPTIONS",l4.PATCH="PATCH",(l6=di||(di={})).KEYCLOAK="KEYCLOAK",l6.BASIC="BASIC",l6.NONE="NONE",(l8=dr||(dr={})).WEBSOCKET="WEBSOCKET",l8.POLLING="POLLING",(l7=da||(da={})).VECTOR="VECTOR",l7.RASTER="RASTER",(l9=ds||(ds={})).INTERNAL="INTERNAL",l9.CLIENT="CLIENT",l9.GLOBAL_RULESET="GLOBAL_RULESET",l9.REALM_RULESET="REALM_RULESET",l9.ASSET_RULESET="ASSET_RULESET",(ce=dl||(dl={})).REALM="REALM",ce.USER="USER",ce.ASSET="ASSET",ce.CUSTOM="CUSTOM",(ct=dc||(dc={})).NORMAL="NORMAL",ct.HIGH="HIGH",(cn=dd||(dd={})).DEVICE="DEVICE",cn.TOPIC="TOPIC",cn.CONDITION="CONDITION",(ci=du||(du={})).ALWAYS="ALWAYS",ci.ONCE="ONCE",ci.HOURLY="HOURLY",ci.DAILY="DAILY",ci.WEEKLY="WEEKLY",ci.MONTHLY="MONTHLY",ci.ANNUALLY="ANNUALLY",(cr=dh||(dh={})).MESSAGE_INVALID="MESSAGE_INVALID",cr.CERTIFICATE_INVALID="CERTIFICATE_INVALID",cr.UNAUTHORIZED="UNAUTHORIZED",cr.FORBIDDEN="FORBIDDEN",cr.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",cr.CONFIG_DISABLED="CONFIG_DISABLED",cr.USER_DISABLED="USER_DISABLED",cr.SERVER_ERROR="SERVER_ERROR",cr.ASSET_ERROR="ASSET_ERROR",cr.SERVER_BUSY="SERVER_BUSY",(co=dm||(dm={})).PRIVATE="PRIVATE",co.PROTECTED="PROTECTED",co.PUBLIC="PUBLIC",(ca=dp||(dp={})).EXACT="EXACT",ca.BEGIN="BEGIN",ca.END="END",ca.CONTAINS="CONTAINS",(cs=df||(df={})).EQUALS="EQUALS",cs.GREATER_THAN="GREATER_THAN",cs.GREATER_EQUALS="GREATER_EQUALS",cs.LESS_THAN="LESS_THAN",cs.LESS_EQUALS="LESS_EQUALS",cs.BETWEEN="BETWEEN",(cl=dg||(dg={})).CREATED_ON="CREATED_ON",cl.NAME="NAME",cl.ASSET_TYPE="ASSET_TYPE",cl.PARENT_ID="PARENT_ID",cl.REALM="REALM",(cc=db||(db={})).RESTRICTED="RESTRICTED",cc.LINKED="LINKED",cc.REALM="REALM",(cd=d_||(d_={})).AT_LEAST_ONE="AT_LEAST_ONE",cd.ALL="ALL",cd.NONE="NONE",(cu=dy||(dy={})).AND="AND",cu.OR="OR",(ch=dv||(dv={})).CREATED_ON="CREATED_ON",ch.FIRST_NAME="FIRST_NAME",ch.LAST_NAME="LAST_NAME",ch.USERNAME="USERNAME",ch.EMAIL="EMAIL",(cm=dx||(dx={})).STOPPED="STOPPED",cm.RUNNING="RUNNING",cm.ERROR="ERROR",(cp=dw||(dw={})).JAVASCRIPT="JAVASCRIPT",cp.GROOVY="GROOVY",cp.JSON="JSON",cp.FLOW="FLOW",(cf=dF||(dF={})).READY="READY",cf.DEPLOYED="DEPLOYED",cf.COMPILATION_ERROR="COMPILATION_ERROR",cf.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",cf.EXECUTION_ERROR="EXECUTION_ERROR",cf.LOOP_ERROR="LOOP_ERROR",cf.DISABLED="DISABLED",cf.PAUSED="PAUSED",cf.EXPIRED="EXPIRED",cf.REMOVED="REMOVED",cf.EMPTY="EMPTY",(cg=dk||(dk={})).SUNRISE="SUNRISE",cg.SUNSET="SUNSET",cg.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",cg.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",cg.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",cg.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",cg.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",cg.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",cg.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",cg.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",cg.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",cg.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",cg.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",cg.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",cg.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",cg.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",cg.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",cg.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",cg.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",cg.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(cb=dE||(dE={})).NUMBER="NUMBER",cb.NUMBER_ARRAY="NUMBER_ARRAY",cb.STRING="STRING",cb.BOOLEAN="BOOLEAN",cb.TRIGGER="TRIGGER",cb.COLOR="COLOR",cb.ANY="ANY",(c_=dT||(dT={})).NEW_LINE="NEW_LINE",c_.SPACER="SPACER",(cy=dC||(dC={})).INPUT="INPUT",cy.PROCESSOR="PROCESSOR",cy.OUTPUT="OUTPUT",cy.THEN="THEN",(cv=dA||(dA={})).TEXT="TEXT",cv.MULTILINE="MULTILINE",cv.NUMBER="NUMBER",cv.DROPDOWN="DROPDOWN",cv.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",cv.CHECKBOX="CHECKBOX",cv.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",cv.COLOR="COLOR",cv.DATE="DATE",(cx=dS||(dS={})).ADD="ADD",cx.ADD_OR_REPLACE="ADD_OR_REPLACE",cx.REPLACE="REPLACE",cx.DELETE="DELETE",cx.CLEAR="CLEAR",(cw=dM||(dM={})).PER_ASSET="PER_ASSET",cw.GLOBAL="GLOBAL",(cF=dL||(dL={})).READ_ADMIN="read:admin",cF.READ_LOGS="read:logs",cF.READ_USERS="read:users",cF.READ_MAP="read:map",cF.READ_ASSETS="read:assets",cF.READ_RULES="read:rules",cF.READ_INSIGHTS="read:insights",cF.READ_ALARMS="read:alarms",cF.READ_SERVICES="read:services",cF.WRITE_SERVICES="write:services",cF.WRITE_USER="write:user",cF.WRITE_ADMIN="write:admin",cF.WRITE_LOGS="write:logs",cF.WRITE_ASSETS="write:assets",cF.WRITE_ATTRIBUTES="write:attributes",cF.WRITE_RULES="write:rules",cF.WRITE_INSIGHTS="write:insights",cF.WRITE_ALARMS="write:alarms",cF.READ="read",cF.WRITE="write",(ck=dD||(dD={})).REGISTER="REGISTER",ck.UPDATE="UPDATE",ck.DEREGISTER="DEREGISTER",(cE=dI||(dI={})).AVAILABLE="AVAILABLE",cE.UNAVAILABLE="UNAVAILABLE",(cT=dR||(dR={})).ASSET="ASSET",cT.AGENT="AGENT",cT.NOTIFICATION="NOTIFICATION",cT.ALARM="ALARM",cT.RULES="RULES",cT.PROTOCOL="PROTOCOL",cT.GATEWAY="GATEWAY",cT.MODEL_AND_VALUES="MODEL_AND_VALUES",cT.API="API",cT.DATA="DATA",(cC=dO||(dO={})).INFO="INFO",cC.WARN="WARN",cC.ERROR="ERROR",(cA=dP||(dP={})).NUMERIC="numeric",cA.DIGIT_2="2-digit",cA.FULL="full",cA.LONG="long",cA.MEDIUM="medium",cA.SHORT="short",cA.NARROW="narrow",(cS=d$||(d$={})).SECONDLY="SECONDLY",cS.MINUTELY="MINUTELY",cS.HOURLY="HOURLY",cS.DAILY="DAILY",cS.WEEKLY="WEEKLY",cS.MONTHLY="MONTHLY",cS.YEARLY="YEARLY",(cM=dB||(dB={})).OMIT="OMIT",cM.BACKWARD="BACKWARD",cM.FORWARD="FORWARD",(cL=dN||(dN={})).JAPANESE="JAPANESE",cL.BUDDHIST="BUDDHIST",cL.ROC="ROC",cL.ISLAMIC="ISLAMIC",cL.ISO8601="ISO8601",cL.CHINESE="CHINESE",cL.ETHIOPIC="ETHIOPIC",cL.HEBREW="HEBREW",cL.GREGORIAN="GREGORIAN",(cD=dz||(dz={})).SU="SU",cD.MO="MO",cD.TU="TU",cD.WE="WE",cD.TH="TH",cD.FR="FR",cD.SA="SA",(cI=dj||(dj={})).PEOPLECOUNTERASSET="PeopleCounterAsset",cI.MAILAGENT="MailAgent",cI.UDPAGENT="UDPAgent",cI.ROOMASSET="RoomAsset",cI.CITYASSET="CityAsset",cI.VENTILATIONASSET="VentilationAsset",cI.TRADFRILIGHTASSET="TradfriLightAsset",cI.CONSOLEASSET="ConsoleAsset",cI.PRESENCESENSORASSET="PresenceSensorAsset",cI.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",cI.LIGHTASSET="LightAsset",cI.KNXAGENT="KNXAgent",cI.THETHINGSSTACKAGENT="TheThingsStackAgent",cI.PLUGASSET="PlugAsset",cI.CHIRPSTACKAGENT="ChirpStackAgent",cI.WEATHERASSET="WeatherAsset",cI.THINGASSET="ThingAsset",cI.WEBSOCKETAGENT="WebsocketAgent",cI.TCPAGENT="TCPAgent",cI.GATEWAYASSET="GatewayAsset",cI.SERIALAGENT="SerialAgent",cI.BLUETOOTHMESHAGENT="BluetoothMeshAgent",cI.PARKINGASSET="ParkingAsset",cI.TRADFRIPLUGASSET="TradfriPlugAsset",cI.SIMULATORAGENT="SimulatorAgent",cI.SNMPAGENT="SNMPAgent",cI.GROUPASSET="GroupAsset",cI.BUILDINGASSET="BuildingAsset",cI.MODBUSSERIALAGENT="ModbusSerialAgent",cI.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",cI.MQTTAGENT="MQTTAgent",cI.VELBUSTCPAGENT="VelbusTCPAgent",cI.ARTNETLIGHTASSET="ArtnetLightAsset",cI.VELBUSSERIALAGENT="VelbusSerialAgent",cI.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",cI.MICROPHONEASSET="MicrophoneAsset",cI.MODBUSTCPAGENT="ModbusTcpAgent",cI.ZWAVEAGENT="ZWaveAgent",cI.HTTPAGENT="HTTPAgent",cI.DOORASSET="DoorAsset",cI.THERMOSTATASSET="ThermostatAsset",cI.SHIPASSET="ShipAsset",(cR=dY||(dY={})).COLOURRGB="colourRGB",cR.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",cR.PRICEHOURLY="priceHourly",cR.MQTTPORT="MQTTPort",cR.PINGDISABLED="pingDisabled",cR.FLOW="flow",cR.CHILDASSETTYPE="childAssetType",cR.LASTACCESS="lastAccess",cR.POSITION="position",cR.NETWORKKEY="networkKey",cR.UNIVERSE="universe",cR.ROUTINGMODE="routingMode",cR.MSSINUMBER="MSSINumber",cR.LASTWILLRETAIN="lastWillRetain",cR.LASTWILLTOPIC="lastWillTopic",cR.SERIALBAUDRATE="serialBaudrate",cR.SUBSCRIBEQOS="subscribeQos",cR.LEDCOUNT="lEDCount",cR.LOCKED="locked",cR.CLOUDCOVERAGE="cloudCoverage",cR.BASEURL="baseURL",cR.PROTOCOL="protocol",cR.REQUIREDVALUES="requiredValues",cR.REGION="region",cR.CONSOLEPLATFORM="consolePlatform",cR.GATEWAYSTATUS="gatewayStatus",cR.NO2LEVEL="NO2Level",cR.ATMOSPHERICPRESSURE="atmosphericPressure",cR.SERIALPORT="serialPort",cR.APPLICATIONID="applicationId",cR.TAGS="tags",cR.UNLOCK="unlock",cR.CHECKINTERVALSECONDS="checkIntervalSeconds",cR.LOCATION="location",cR.CLIENTSECRET="clientSecret",cR.WINDDIRECTION="windDirection",cR.WINDSPEED="windSpeed",cR.PARTICLESPM10="particlesPM10",cR.APPLICATIONKEY="applicationKey",cR.LENGTH="length",cR.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",cR.USERNAMEPASSWORD="usernamePassword",cR.WATERLEVEL="waterLevel",cR.CONNECTHEADERS="connectHeaders",cR.CONSOLENAME="consoleName",cR.WEBSOCKETQUERY="websocketQuery",cR.PREFERHTML="preferHTML",cR.COOLING="cooling",cR.POLLINGMILLIS="pollingMillis",cR.SOILTEMPERATURE="soilTemperature",cR.SUNIRRADIANCE="sunIrradiance",cR.MESSAGEMAXLENGTH="messageMaxLength",cR.WINDGUSTSPEED="windGustSpeed",cR.LIGHTID="lightId",cR.PROXYADDRESS="proxyAddress",cR.REQUESTQUERYPARAMETERS="requestQueryParameters",cR.MQTTHOST="MQTTHost",cR.SECUREGRPC="secureGRPC",cR.MODEL="model",cR.STREET="street",cR.MANUFACTURER="manufacturer",cR.DELETEPROCESSEDMAIL="deleteProcessedMail",cR.RESUMESESSION="resumeSession",cR.ONOFF="onOff",cR.APIKEY="ApiKey",cR.CITY="city",cR.PRESENCE="presence",cR.SPACESOCCUPIED="spacesOccupied",cR.STARTTLS="startTLS",cR.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",cR.WEBSOCKETPATH="websocketPath",cR.AGENTSTATUS="agentStatus",cR.PRICEDAILY="priceDaily",cR.COUNTGROWTHMINUTE="countGrowthMinute",cR.IMONUMBER="IMONumber",cR.ATTRIBUTION="Attribution",cR.TENANTID="tenantId",cR.REQUESTHEADERS="requestHeaders",cR.HOST="host",cR.COUNTOUTMINUTE="countOutMinute",cR.MESSAGECHARSET="messageCharset",cR.CERTIFICATEALIAS="certificateAlias",cR.EMAIL="email",cR.BINDPORT="bindPort",cR.CONSOLEVERSION="consoleVersion",cR.PARTICLESPM1="particlesPM1",cR.MTU="mtu",cR.SPEED="speed",cR.MESSAGESTRIPDELIMITER="messageStripDelimiter",cR.AREA="area",cR.COUNTRY="country",cR.SHIPTYPE="shipType",cR.CONNECTSUBSCRIPTIONS="connectSubscriptions",cR.RELATIVEHUMIDITY="relativeHumidity",cR.SOURCEADDRESS="sourceAddress",cR.RAINFALL="rainfall",cR.OAUTHGRANT="oAuthGrant",cR.OZONELEVEL="ozoneLevel",cR.SEQUENCENUMBER="sequenceNumber",cR.COUNTINMINUTE="countInMinute",cR.PORT="port",cR.SUNALTITUDE="sunAltitude",cR.COUNTOUT="countOut",cR.ROOMNUMBER="roomNumber",cR.TUNNELINGSUPPORTED="tunnelingSupported",cR.ENINUMBER="ENINumber",cR.PARTICLESPM2_5="particlesPM2_5",cR.AGENTDISABLED="agentDisabled",cR.DISABLED="disabled",cR.COUNTIN="countIn",cR.MESSAGESOURCEADDRESS="messageSourceAddress",cR.PROVISIONWEATHERASSET="ProvisionWeatherAsset",cR.TIMEINJECTIONINTERVAL="timeInjectionInterval",cR.TEMPERATURESETPOINT="temperatureSetpoint",cR.CONSOLEPROVIDERS="consoleProviders",cR.COUNTTOTAL="countTotal",cR.SPACESBUFFER="spacesBuffer",cR.SPACESTOTAL="spacesTotal",cR.BINDHOST="bindHost",cR.FANSPEED="fanSpeed",cR.MESSAGECONVERTBINARY="messageConvertBinary",cR.NOTES="notes",cR.MAILFOLDERNAME="mailFolderName",cR.MESSAGEDELIMITERS="messageDelimiters",cR.TEMPERATURE="temperature",cR.SUNZENITH="sunZenith",cR.SNMPVERSIONVALUE="SNMPVersionValue",cR.BRIGHTNESS="brightness",cR.POSTALCODE="postalCode",cR.SPACESOPEN="spacesOpen",cR.HUMIDITY="humidity",cR.SOUNDLEVEL="soundLevel",cR.SECUREMODE="secureMode",cR.UNITID="unitId",cR.DIRECTION="direction",cR.STOPBITS="stopBits",cR.UVINDEX="uVIndex",cR.CONNECTURL="connectURL",cR.CLIENTID="clientId",cR.NATMODE="NATMode",cR.UPDATEONWRITE="updateOnWrite",cR.LASTWILLPAYLOAD="lastWillPayload",cR.GROUPID="groupId",cR.FOLLOWREDIRECTS="followRedirects",cR.SUNAZIMUTH="sunAzimuth",cR.MESSAGECONVERTHEX="messageConvertHex",cR.WEBSOCKETMODE="websocketMode",cR.COLOURTEMPERATURE="colourTemperature",cR.PUBLISHQOS="publishQos",cR.DATABITS="dataBits",(cO=dH||(dH={})).FORMAT="format",cO.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",cO.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",cO.SECRET="secret",cO.ATTRIBUTELINKS="attributeLinks",cO.RULERESETIMMEDIATE="ruleResetImmediate",cO.RULESTATE="ruleState",cO.AGENTLINKCONFIG="agentLinkConfig",cO.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",cO.FORECAST="forecast",cO.STOREDATAPOINTS="storeDataPoints",cO.LABEL="label",cO.CONSTRAINTS="constraints",cO.UNITS="units",cO.USERCONNECTED="userConnected",cO.SHOWONDASHBOARD="showOnDashboard",cO.READONLY="readOnly",cO.MULTILINE="multiline",cO.ACCESSPUBLICWRITE="accessPublicWrite",cO.MOMENTARY="momentary",cO.AGENTLINK="agentLink",cO.ACCESSRESTRICTEDREAD="accessRestrictedRead",cO.ACCESSPUBLICREAD="accessPublicRead",(cP=dU||(dU={})).ASSETQUERY="assetQuery",cP.WSURL="WS_URL",cP.COLOURRGB="colourRGB",cP.VALUEFORMAT="valueFormat",cP.TEXT="text",cP.BYTE="byte",cP.USERNAMEANDPASSWORD="usernameAndPassword",cP.HTTPURL="HTTP_URL",cP.ATTRIBUTELINK="attributeLink",cP.ASSETID="assetID",cP.NUMBERMAP="numberMap",cP.HTTPMETHOD="HTTPMethod",cP.ATTRIBUTESTATE="attributeState",cP.POSITIVENUMBER="positiveNumber",cP.POSITIVEINTEGER="positiveInteger",cP.EXECUTIONSTATUS="executionStatus",cP.BIGINTEGER="bigInteger",cP.VALUEDESCRIPTOR="valueDescriptor",cP.PERIODDURATIONISO8601="periodDurationISO8601",cP.LONG="long",cP.DATEANDTIME="dateAndTime",cP.BOOLEANMAP="booleanMap",cP.MQTTQOS="MQTTQos",cP.NEGATIVEINTEGER="negativeInteger",cP.TCPIPPORTNUMBER="TCP_IPPortNumber",cP.GEOJSONPOINT="GEO_JSONPoint",cP.SNMPVERSION="SNMPVersion",cP.ASSETTYPE="assetType",cP.JSONOBJECT="JSONObject",cP.INTEGERMAP="integerMap",cP.BIGNUMBER="bigNumber",cP.IPADDRESS="IPAddress",cP.EMAIL="email",cP.TIMESTAMP="timestamp",cP.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",cP.ATTRIBUTEREFERENCE="attributeReference",cP.UUID="UUID",cP.INTEGER="integer",cP.OAUTHGRANT="oAuthGrant",cP.NUMBER="number",cP.TEXTMAP="textMap",cP.WEBSOCKETSUBSCRIPTION="websocketSubscription",cP.BOOLEAN="boolean",cP.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",cP.FORECASTCONFIGURATION="forecastConfiguration",cP.TIMEDURATIONISO8601="timeDurationISO8601",cP.TIMESTAMPISO8601="timestampISO8601",cP.CONSOLEPROVIDERS="consoleProviders",cP.MULTIVALUEDTEXTMAP="multivaluedTextMap",cP.NEGATIVENUMBER="negativeNumber",cP.JSON="JSON",cP.CRONEXPRESSION="CRONExpression",cP.INTEGERBYTE="integerByte",cP.AGENTLINK="agentLink",cP.DIRECTION="direction",cP.HOSTORIPADDRESS="hostOrIPAddress",cP.CALENDAREVENT="calendarEvent",cP.CONNECTIONSTATUS="connectionStatus",cP.VALUECONSTRAINT="valueConstraint",(c$=dV||(dV={})).MONTH="month",c$.MILE_SCANDINAVIAN="mile_scandinavian",c$.VAR="var",c$.OUNCE="ounce",c$.HECTARE="hectare",c$.YARD="yard",c$.YEAR="year",c$.JOULE="joule",c$.VOLT="volt",c$.HERTZ="hertz",c$.MILE="mile",c$.DEGREE="degree",c$.KILO="kilo",c$.BTU="btu",c$.FOOT="foot",c$.MEGA="mega",c$.KELVIN="kelvin",c$.CARBON="carbon",c$.DECIBEL_ATTENUATED="decibel_attenuated",c$.INCH="inch",c$.SQUARED="squared",c$.PERCENTAGE="percentage",c$.IN_HG="inch_mercury",c$.CENTI="centi",c$.GRAM="gram",c$.CUBED="cubed",c$.DAY="day",c$.RADIAN="radian",c$.OHM="ohm",c$.MINUTE="minute",c$.PART_PER_MILLION="ppm",c$.AMP="amp",c$.MASS_POUND="pound",c$.KNOT="knot",c$.METRE="metre",c$.LITRE="litre",c$.FLUID_OUNCE="fluid_ounce",c$.HOUR="hour",c$.ACRE="acre",c$.CELSIUS="celsius",c$.RPM="rpm",c$.PASCAL="pascal",c$.DECIBEL="decibel",c$.LUMEN="lumen",c$.WEEK="week",c$.FAHRENHEIT="fahrenheit",c$.WATT="watt",c$.GALLON="gallon",c$.LUX="lux",c$.MILLI="milli",c$.BAR="bar",c$.HECTO="hecto",c$.PEAK="peak",c$.SECOND="second",c$.MICRO="micro",c$.PER="per",c$.STONE="stone",dW||(dW={});class t3{static getAssetDescriptors(){return t3._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(n=>n.assetDescriptor.name===t))}static getAssetDescriptor(t){if(!t)return;if(t.assetDescriptor)return t.assetDescriptor;if("string"!=typeof t)return t;let n=this._assetTypeInfos.find(n=>n.assetDescriptor.name===t);return n?n.assetDescriptor:void 0}static getAttributeDescriptor(t,n){if(!t)return;let i=this.getAssetTypeInfo(n||"ThingAsset");if(i&&i.attributeDescriptors)return i.attributeDescriptors.find(n=>n.name===t)}static getValueDescriptor(t){let n;if(!t)return;if(t.endsWith("[]"))for(n=0;t.endsWith("[]");)t=t.substring(0,t.length-2),n++;let i=this._valueDescriptors.find(n=>n.name===t);return i&&n&&(i=Object.assign(Object.assign({},i),{arrayDimensions:n})),i}static resolveValueDescriptor(t,n){let i;return n&&("string"==typeof n&&(i=t3.getValueDescriptor(n)),i=n.jsonType?n:t3.getValueDescriptor(n.type)),!i&&t&&(i=t3.getValueDescriptor("JSON")),i}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 n=1,i=t.find(t=>null!=t);for(;Array.isArray(i);)i=i.find(t=>null!=t),n++;let r=this.resolveValueTypeFromValue(i);if(!r)return;for(;n>0;)r+="[]",n--;return r}if(t instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(t,n,i){let r,o;if(n&&"string"!=typeof n)r=n;else{let o=this.getAssetTypeInfo(t||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof n&&(r=this.getAttributeDescriptor(n,o)),!r&&i&&(r={type:i.type,name:i.name,meta:i.meta})}return r&&(o=this.getValueDescriptor(r.type)),[r,o]}static getMetaItemDescriptor(t){if(t)return this._metaItemDescriptors.find(n=>n.name===t)}static getAssetDescriptorColour(t,n){let i=this.getAssetDescriptor(t);return i&&i.colour?i.colour:n}static getAssetDescriptorIcon(t,n){let i=this.getAssetDescriptor(t);return i&&i.icon?i.icon:n}}t3._assetTypeInfos=[],t3._metaItemDescriptors=[],t3._valueDescriptors=[],o(44532);var t5=o(88183),t4=o.n(t5),t6=o(14867),t8=o.n(t6),t7=o(637);class t9{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((t,n)=>{this._resolve=t,this._reject=n}),Object.freeze(this)}}function ne(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>ne(t[i],n[i]))}return!1}function nt(t){if(null==t)return"";let n=!1;return t.split(/([A-Z]|\d)/).map((t,i,r)=>{if(!t)return t;if(!n)return n=!0,t.charAt(0).toUpperCase()+t.slice(1);if("_"===t)return" ";if(1===t.length&&t===t.toUpperCase()){let n=!r[i-1]||"_"===r[i-1],o=i+1<r.length&&r[i+1]&&"_"!==r[i+1],a=i+3>r.length||!r[i+1]&&!r[i+3];(!n||o)&&(t=" "+t),!o&&(n||a)||(t=t.toLowerCase())}return t}).join("").trim()}function nn(t,n,i){let r="string"==typeof t?t:t.name;return n&&n.meta&&n.meta.hasOwnProperty(r)?n.meta[r]:i&&i.meta?i.meta[r]:void 0}function ni(t,n){let i="string"==typeof t?t3.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:t3.resolveValueTypeFromValue(n),value:n}}function nr(t,n,i,r,o,a){let s=nc("label",t,n,i,o),l="";if(s||(s=nn("label",t,n&&n.meta?n:void 0)),r&&(l=ns(nl("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?nt(i):void 0)}return s?s+(l?" ("+l+")":""):l}function no(t,n,i,r,o,a){let s=na(t?t.value:void 0,()=>nl("format",t,n,i,o),void 0,a),l=nl("units",t,n,i,!0);return r&&l&&l.length&&(s=ns(nl("units",t,n,i,o),s)),s}function na(t,n,i,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=n&&n();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(i||t0.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t0.t("on"):t0.t("off")),r.asOpenClosed&&(o=t?t0.t("open"):t0.t("closed")),r.asPressedReleased&&(o=t?t0.t("pressed"):t0.t("released"));break;case"object":if(r.momentJsFormat)o=t8()(t).format(r.momentJsFormat);else if(r.iso8601)o=t.toISOString();else if(r.week){var a;let n,i=((a=new Date(Date.UTC((a=t).getFullYear(),a.getMonth(),a.getDate()))).setUTCDate(a.getUTCDate()+4-(a.getUTCDay()||7)),n=new Date(Date.UTC(a.getUTCFullYear(),0,1)),Math.ceil(((a.getTime()-n.getTime())/864e5+1)/7));o="2-digit"===r.week?String(i).padStart(2,"0"):Number(i).toString(10)}else o=new Intl.DateTimeFormat(i||t0.language,r).format(t)}else o=Object(t).toString()}return o}function ns(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t0.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t0.language,{currency:t,style:"currency"}).formatToParts();if(0!==i||"currency"!==r[0].type)return"currency"===r[0].type?r[0].value:r[r.length-1].value;if(!n)return r[0].value;n=r[0].value+n}}).join("");return n.length>0?n+" "+i:i}function nl(t,n,i,r,o){let a,s=[],l=nc(t,n&&"string"==typeof n?n:n?n.name:i?"string"==typeof i?i:i.name:void 0,i,r,o);if(l&&(a=JSON.parse(l)))if("format"!==t)return a;else s.push(a);if(n&&n.meta&&(a=nn(t,n,i)))if("format"!==t)return a;else s.push(a);if(i&&"string"!=typeof i&&i.hasOwnProperty(t)){if(a=i[t],"format"!==t)return a;s.push(a)}if(i&&i.type){if(a=t3.getValueDescriptor(i.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 nc(t,n,i,r,o,a){let s;if(n?s="string"==typeof n?n:n.name:i&&(s="string"==typeof i?i:i.name),!s)return;let l=[],c=t+"."+(o?"attribute":"meta")+".";if(r&&l.push(c+r+"."+s),i&&"string"!=typeof i&&(l.push(c+i.type+"."+s),l.push(c+i.type)),l.push(c+s),l.length>0)return t0.t(l,{defaultValue:a||""})}function nd(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nu=function(t,n,i,r){return new(i||(i=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 n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};let nh=o(74461);class nm{constructor(t,n,i){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=t,this._autoEnable=n,this._enableCompleteCallback=i,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=nm._createConsoleRegistration(),h=window.localStorage.getItem("OpenRemoteConsole:"+t);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 m=u.providers;for(let t of(u.providers={},d)){let n=m&&m.hasOwnProperty(t)?m[t]:{enabled:!1,disabled:!1};u.providers[t]=n}let p=oL.getAppName();p.length>0&&0>u.apps.indexOf(p)&&u.apps.push(p),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 nu(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(0)),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 nu(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 n=this._pendingProviderEnables[t];yield this.enableProvider(n)}})}enableProvider(t,n){return nu(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 i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!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(),this._callCompletedCallback())),r})}disableProvider(t){return nu(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 n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[t].disabled=!0,this._registration.providers[t].enabled=!1,n})}getProvider(t){return this._registration&&this._registration.providers?this._registration.providers[t]:void 0}sendProviderMessage(t,n){return nu(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(!n)return void this._doSendProviderMessage(t);let i=t.provider+t.action;if(this._pendingProviderPromises[i])throw Error("Message already pending for provider '"+t.provider+"' with action '"+t.action+"'");let r=new t9,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{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={}),oL.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nu(this,void 0,void 0,function*(){let n=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:t},!0);try{let t=yield Promise.race([n,new Promise((t,n)=>setTimeout(n,2e3))]);if(t&&t.value){let n=t.value;return"null"===n?void 0:n}}catch(t){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(t,n){this._providerMessageListeners[t.provider+t.action]=n}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,n){let i={type:t,data:n};this.isMobile?this._postNativeShellMessage(i):console.warn("Failed to send generic message to console.",i)}_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 n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'store' action requires a `key`");null===t.value?window.localStorage.removeItem(n):window.localStorage.setItem(n,JSON.stringify(t.value))}break;case"RETRIEVE":{let n=t.key?t.key.trim():null;if(!n||0===n.length)throw Error("Storage provider 'retrieve' action requires a `key`");let i=window.localStorage.getItem(n);if(null!==i)try{i=JSON.parse(i)}catch(t){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:n,value:i}))}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 n=JSON.parse(t),i=n.provider,r=n.action,o=this._pendingProviderPromises[i+r];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[i+r],o[0].resolve(n));let a=this._providerMessageListeners[i+r];a&&a(n)}_callCompletedCallback(){let t=this._enableCompleteCallback;this._enableCompleteCallback=null,t&&window.setTimeout(()=>{t()},0)}static _createConsoleRegistration(){return{name:nh.name,version:nh.version,platform:nh.os.toString(),apps:[],model:((nh.manufacturer?nh.manufacturer+" ":"")+(nh.product?nh.product:"")).trim()}}_initialiseProvider(t){return nu(this,void 0,void 0,function*(){let n;console.debug("Console: initialising provider '"+t+"'");try{n=yield this.sendProviderMessage({provider:t,action:"PROVIDER_INIT"},!0),this._registration.providers[t].version=n.version,this._registration.providers[t].requiresPermission=n.requiresPermission,this._registration.providers[t].hasPermission=n.hasPermission,this._registration.providers[t].success=n.success,this._registration.providers[t].enabled=n.enabled,this._registration.providers[t].disabled=n.disabled,this._registration.providers[t].data=n.data}catch(t){console.error(t),n={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(n.success||(console.debug("Provider initialisation failed: '"+t+"'"),n.disabled=!0,this._registration.providers[t].disabled=!0),n.disabled||n.enabled){let n=this._pendingProviderEnables.indexOf(t);n>=0&&this._pendingProviderEnables.splice(n,1)}})}}function np(t,n){return function(){return t.apply(n,arguments)}}let{toString:nf}=Object.prototype,{getPrototypeOf:ng}=Object,{iterator:nb,toStringTag:n_}=Symbol,ny=(l=Object.create(null),t=>{let n=nf.call(t);return l[n]||(l[n]=n.slice(8,-1).toLowerCase())}),nv=t=>(t=t.toLowerCase(),n=>ny(n)===t),nx=t=>n=>typeof n===t,{isArray:nw}=Array,nF=nx("undefined");function nk(t){return null!==t&&!nF(t)&&null!==t.constructor&&!nF(t.constructor)&&nC(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nE=nv("ArrayBuffer"),nT=nx("string"),nC=nx("function"),nA=nx("number"),nS=t=>null!==t&&"object"==typeof t,nM=t=>{if("object"!==ny(t))return!1;let n=ng(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(n_ in t)&&!(nb in t)},nL=nv("Date"),nD=nv("File"),nI=nv("Blob"),nR=nv("FileList"),nO=nv("URLSearchParams"),[nP,n$,nB,nN]=["ReadableStream","Request","Response","Headers"].map(nv);function nz(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nw(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nk(t))return;let a=i?Object.getOwnPropertyNames(t):Object.keys(t),s=a.length;for(r=0;r<s;r++)o=a[r],n.call(null,t[o],o,t)}}function nj(t,n){let i;if(nk(t))return null;n=n.toLowerCase();let r=Object.keys(t),o=r.length;for(;o-- >0;)if(n===(i=r[o]).toLowerCase())return i;return null}let nY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nH=t=>!nF(t)&&t!==nY,nU=(c="u">typeof Uint8Array&&ng(Uint8Array),t=>c&&t instanceof c),nV=nv("HTMLFormElement"),nW=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),nG=nv("RegExp"),nq=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nz(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},nZ=nv("AsyncFunction"),nK=(l$="function"==typeof setImmediate,lB=nC(nY.postMessage),l$?setImmediate:lB?(lN=`axios@${Math.random()}`,lz=[],nY.addEventListener("message",({source:t,data:n})=>{t===nY&&n===lN&&lz.length&&lz.shift()()},!1),t=>{lz.push(t),nY.postMessage(lN,"*")}):t=>setTimeout(t)),nX="u">typeof queueMicrotask?queueMicrotask.bind(nY):"u">typeof process&&process.nextTick||nK,nJ={isArray:nw,isArrayBuffer:nE,isBuffer:nk,isFormData:t=>{let n;return t&&("function"==typeof FormData&&t instanceof FormData||nC(t.append)&&("formdata"===(n=ny(t))||"object"===n&&nC(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nE(t.buffer)},isString:nT,isNumber:nA,isBoolean:t=>!0===t||!1===t,isObject:nS,isPlainObject:nM,isEmptyObject:t=>{if(!nS(t)||nk(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nP,isRequest:n$,isResponse:nB,isHeaders:nN,isUndefined:nF,isDate:nL,isFile:nD,isBlob:nI,isRegExp:nG,isFunction:nC,isStream:t=>nS(t)&&nC(t.pipe),isURLSearchParams:nO,isTypedArray:nU,isFileList:nR,forEach:nz,merge:function t(){let{caseless:n,skipUndefined:i}=nH(this)&&this||{},r={},o=(o,a)=>{let s=n&&nj(r,a)||a;nM(r[s])&&nM(o)?r[s]=t(r[s],o):nM(o)?r[s]=t({},o):nw(o)?r[s]=o.slice():i&&nF(o)||(r[s]=o)};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&nz(arguments[t],o);return r},extend:(t,n,i,{allOwnKeys:r}={})=>(nz(n,(n,r)=>{i&&nC(n)?t[r]=np(n,i):t[r]=n},{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,n,i,r)=>{t.prototype=Object.create(n.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&ng(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:ny,kindOfTest:nv,endsWith:(t,n,i)=>{t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=n.length;let r=t.indexOf(n,i);return -1!==r&&r===i},toArray:t=>{if(!t)return null;if(nw(t))return t;let n=t.length;if(!nA(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nb]).call(t);for(;(i=r.next())&&!i.done;){let r=i.value;n.call(t,r[0],r[1])}},matchAll:(t,n)=>{let i,r=[];for(;null!==(i=t.exec(n));)r.push(i);return r},isHTMLForm:nV,hasOwnProperty:nW,hasOwnProp:nW,reduceDescriptors:nq,freezeMethods:t=>{nq(t,(n,i)=>{if(nC(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(nC(t[i])){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(t,n)=>{let i={};return(nw(t)?t:String(t).split(n)).forEach(t=>{i[t]=!0}),i},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,i){return n.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(t,n)=>null!=t&&Number.isFinite(t*=1)?t:n,findKey:nj,global:nY,isContextDefined:nH,isSpecCompliantForm:function(t){return!!(t&&nC(t.append)&&"FormData"===t[n_]&&t[nb])},toJSONObject:t=>{let n=Array(10),i=(t,r)=>{if(nS(t)){if(n.indexOf(t)>=0)return;if(nk(t))return t;if(!("toJSON"in t)){n[r]=t;let o=nw(t)?[]:{};return nz(t,(t,n)=>{let a=i(t,r+1);nF(a)||(o[n]=a)}),n[r]=void 0,o}}return t};return i(t,0)},isAsyncFn:nZ,isThenable:t=>t&&(nS(t)||nC(t))&&nC(t.then)&&nC(t.catch),setImmediate:nK,asap:nX,isIterable:t=>null!=t&&nC(t[nb])};function nQ(t,n,i,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=t,this.name="AxiosError",n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}nJ.inherits(nQ,Error,{toJSON:function(){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:nJ.toJSONObject(this.config),code:this.code,status:this.status}}});let n0=nQ.prototype,n1={};function n2(t){return nJ.isPlainObject(t)||nJ.isArray(t)}function n3(t){return nJ.endsWith(t,"[]")?t.slice(0,-2):t}function n5(t,n,i){return t?t.concat(n).map(function(t,n){return t=n3(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{n1[t]={value:t}}),Object.defineProperties(nQ,n1),Object.defineProperty(n0,"isAxiosError",{value:!0}),nQ.from=(t,n,i,r,o,a)=>{let s=Object.create(n0);nJ.toFlatObject(t,s,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);let l=t&&t.message?t.message:"Error",c=null==n&&t?t.code:n;return nQ.call(s,l,c,i,r,o),t&&null==s.cause&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",a&&Object.assign(s,a),s};let n4=nJ.toFlatObject(nJ,{},null,function(t){return/^is[A-Z]/.test(t)}),n6=function(t,n,i){if(!nJ.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=nJ.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!nJ.isUndefined(n[t])})).metaTokens,o=i.visitor||d,a=i.dots,s=i.indexes,l=(i.Blob||"u">typeof Blob&&Blob)&&nJ.isSpecCompliantForm(n);if(!nJ.isFunction(o))throw TypeError("visitor must be a function");function c(t){if(null===t)return"";if(nJ.isDate(t))return t.toISOString();if(nJ.isBoolean(t))return t.toString();if(!l&&nJ.isBlob(t))throw new nQ("Blob is not supported. Use a Buffer instead.");return nJ.isArrayBuffer(t)||nJ.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function d(t,i,o){let l=t;if(t&&!o&&"object"==typeof t)if(nJ.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var d;if(nJ.isArray(t)&&(d=t,nJ.isArray(d)&&!d.some(n2))||(nJ.isFileList(t)||nJ.endsWith(i,"[]"))&&(l=nJ.toArray(t)))return i=n3(i),l.forEach(function(t,r){nJ.isUndefined(t)||null===t||n.append(!0===s?n5([i],r,a):null===s?i:i+"[]",c(t))}),!1}return!!n2(t)||(n.append(n5(o,i,a),c(t)),!1)}let u=[],h=Object.assign(n4,{defaultVisitor:d,convertValue:c,isVisitable:n2});if(!nJ.isObject(t))throw TypeError("data must be an object");return!function t(i,r){if(!nJ.isUndefined(i)){if(-1!==u.indexOf(i))throw Error("Circular reference detected in "+r.join("."));u.push(i),nJ.forEach(i,function(i,a){!0===(!(nJ.isUndefined(i)||null===i)&&o.call(n,i,nJ.isString(a)?a.trim():a,r,h))&&t(i,r?r.concat(a):[a])}),u.pop()}}(t),n};function n8(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return n[t]})}function n7(t,n){this._pairs=[],t&&n6(t,this,n)}let n9=n7.prototype;function ie(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function it(t,n,i){let r;if(!n)return t;let o=i&&i.encode||ie;nJ.isFunction(i)&&(i={serialize:i});let a=i&&i.serialize;if(r=a?a(n,i):nJ.isURLSearchParams(n)?n.toString():new n7(n,i).toString(o)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}n9.append=function(t,n){this._pairs.push([t,n])},n9.toString=function(t){let n=t?function(n){return t.call(this,n,n8)}:n8;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ii=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){nJ.forEach(this.handlers,function(n){null!==n&&t(n)})}},ir={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},io="u">typeof URLSearchParams?URLSearchParams:n7,ia="u">typeof FormData?FormData:null,is="u">typeof Blob?Blob:null,il="u">typeof window&&"u">typeof document,ic="object"==typeof navigator&&navigator||void 0,id=il&&(!ic||0>["ReactNative","NativeScript","NS"].indexOf(ic.product)),iu="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ih=il&&window.location.href||"http://localhost",im={...w,isBrowser:!0,classes:{URLSearchParams:io,FormData:ia,Blob:is},protocols:["http","https","file","blob","url","data"]},ip=function(t){if(nJ.isFormData(t)&&nJ.isFunction(t.entries)){let n={};return nJ.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&nJ.isArray(r)?r.length:a,l)?nJ.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i:(r[a]&&nJ.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&nJ.isArray(r[a])&&(r[a]=function(t){let n,i,r={},o=Object.keys(t),a=o.length;for(n=0;n<a;n++)r[i=o[n]]=t[i];return r}(r[a]))),!s}(nJ.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},ig={transitional:ir,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=nJ.isObject(t);if(a&&nJ.isHTMLForm(t)&&(t=new FormData(t)),nJ.isFormData(t))return o?JSON.stringify(ip(t)):t;if(nJ.isArrayBuffer(t)||nJ.isBuffer(t)||nJ.isStream(t)||nJ.isFile(t)||nJ.isBlob(t)||nJ.isReadableStream(t))return t;if(nJ.isArrayBufferView(t))return t.buffer;if(nJ.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=t,l=this.formSerializer,n6(s,new im.classes.URLSearchParams,{visitor:function(t,n,i,r){return im.isNode&&nJ.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=nJ.isFileList(t))||r.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return n6(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}if(a||o){n.setContentType("application/json",!1);var c=t;if(nJ.isString(c))try{return(0,JSON.parse)(c),nJ.trim(c)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(c)}return t}],transformResponse:[function(t){let n=this.transitional||ig.transitional,i=n&&n.forcedJSONParsing,r="json"===this.responseType;if(nJ.isResponse(t)||nJ.isReadableStream(t))return t;if(t&&nJ.isString(t)&&(i&&!this.responseType||r)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,this.parseReviver)}catch(t){if(!i&&r){if("SyntaxError"===t.name)throw nQ.from(t,nQ.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:im.classes.FormData,Blob:im.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};nJ.forEach(["delete","get","head","post","put","patch"],t=>{ig.headers[t]={}});let ib=nJ.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"]),i_=Symbol("internals");function iy(t){return t&&String(t).trim().toLowerCase()}function iv(t){return!1===t||null==t?t:nJ.isArray(t)?t.map(iv):String(t)}function ix(t,n,i,r,o){if(nJ.isFunction(r))return r.call(this,n,i);if(o&&(n=i),nJ.isString(n)){if(nJ.isString(r))return -1!==n.indexOf(r);if(nJ.isRegExp(r))return r.test(n)}}class iw{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=iy(n);if(!o)throw Error("header name must be a non-empty string");let a=nJ.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=iv(t))}let a=(t,n)=>nJ.forEach(t,(t,i)=>o(t,i,n));if(nJ.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(nJ.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&ib[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(nJ.isObject(t)&&nJ.isIterable(t)){let i={},r,o;for(let n of t){if(!nJ.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?nJ.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=iy(t)){let i=nJ.findKey(this,t);if(i){let t=this[i];if(!n)return t;if(!0===n){let n,i=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;n=r.exec(t);)i[n[1]]=n[2];return i}if(nJ.isFunction(n))return n.call(this,t,i);if(nJ.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iy(t)){let i=nJ.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||ix(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=iy(t)){let o=nJ.findKey(i,t);o&&(!n||ix(i,i[o],o,n))&&(delete i[o],r=!0)}}return nJ.isArray(t)?t.forEach(o):o(t),r}clear(t){let n=Object.keys(this),i=n.length,r=!1;for(;i--;){let o=n[i];(!t||ix(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return nJ.forEach(this,(r,o)=>{let a=nJ.findKey(i,o);if(a){n[a]=iv(r),delete n[o];return}let s=t?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i):String(o).trim();s!==o&&delete n[o],n[s]=iv(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return nJ.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&nJ.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).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,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[i_]=this[i_]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=iy(t);if(!n[r]){let o;o=nJ.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return nJ.isArray(t)?t.forEach(r):r(t),this}}function iF(t,n){let i=this||ig,r=n||i,o=iw.from(r.headers),a=r.data;return nJ.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function ik(t){return!!(t&&t.__CANCEL__)}function iE(t,n,i){nQ.call(this,null==t?"canceled":t,nQ.ERR_CANCELED,n,i),this.name="CanceledError"}function iT(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new nQ("Request failed with status code "+i.status,[nQ.ERR_BAD_REQUEST,nQ.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}iw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nJ.reduceDescriptors(iw.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),nJ.freezeMethods(iw),nJ.inherits(iE,nQ,{__CANCEL__:!0});let iC=function(t,n){let i,r=Array(t=t||10),o=Array(t),a=0,s=0;return n=void 0!==n?n:1e3,function(l){let c=Date.now(),d=o[s];i||(i=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-i<n)return;let m=d&&c-d;return m?Math.round(1e3*h/m):void 0}},iA=function(t,n){let i,r,o=0,a=1e3/n,s=(n,a=Date.now())=>{o=a,i=null,r&&(clearTimeout(r),r=null),t(...n)};return[(...t)=>{let n=Date.now(),l=n-o;l>=a?s(t,n):(i=t,r||(r=setTimeout(()=>{r=null,s(i)},a-l)))},()=>i&&s(i)]},iS=(t,n,i=3)=>{let r=0,o=iC(50,250);return iA(i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l);r=a,t({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&a<=s?(s-a)/c:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iM=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iL=t=>(...n)=>nJ.asap(()=>t(...n)),iD=im.hasStandardBrowserEnv?(d=new URL(im.origin),u=im.navigator&&/(msie|trident)/i.test(im.navigator.userAgent),t=>(t=new URL(t,im.origin),d.protocol===t.protocol&&d.host===t.host&&(u||d.port===t.port))):()=>!0,iI=im.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];nJ.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),nJ.isString(r)&&l.push(`path=${r}`),nJ.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nJ.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iR(t,n,i){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);return t&&(r||!1==i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iO=t=>t instanceof iw?{...t}:t;function iP(t,n){n=n||{};let i={};function r(t,n,i,r){return nJ.isPlainObject(t)&&nJ.isPlainObject(n)?nJ.merge.call({caseless:r},t,n):nJ.isPlainObject(n)?nJ.merge({},n):nJ.isArray(n)?n.slice():n}function o(t,n,i,o){return nJ.isUndefined(n)?nJ.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!nJ.isUndefined(n))return r(void 0,n)}function s(t,n){return nJ.isUndefined(n)?nJ.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return a in n?r(i,o):a in t?r(void 0,i):void 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,responseEncoding:s,validateStatus:l,headers:(t,n,i)=>o(iO(t),iO(n),i,!0)};return nJ.forEach(Object.keys({...t,...n}),function(r){let a=c[r]||o,s=a(t[r],n[r],r);nJ.isUndefined(s)&&a!==l||(i[r]=s)}),i}let i$=t=>{let n=iP({},t),{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=iw.from(s),n.url=it(iR(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),nJ.isFormData(i)){if(im.hasStandardBrowserEnv||im.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(nJ.isFunction(i.getHeaders)){let t=i.getHeaders(),n=["content-type","content-length"];Object.entries(t).forEach(([t,i])=>{n.includes(t.toLowerCase())&&s.set(t,i)})}}if(im.hasStandardBrowserEnv&&(r&&nJ.isFunction(r)&&(r=r(n)),r||!1!==r&&iD(n.url))){let t=o&&a&&iI.read(a);t&&s.set(o,t)}return n},iB="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,u=i$(t),h=u.data,m=iw.from(u.headers).normalize(),{responseType:p,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 y(){if(!_)return;let r=iw.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders());iT(function(t){n(t),b()},function(t){i(t),b()},{data:p&&"text"!==p&&"json"!==p?_.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=y:_.onreadystatechange=function(){!_||4!==_.readyState||(0!==_.status||_.responseURL&&0===_.responseURL.indexOf("file:"))&&setTimeout(y)},_.onabort=function(){_&&(i(new nQ("Request aborted",nQ.ECONNABORTED,t,_)),_=null)},_.onerror=function(n){let r=new nQ(n&&n.message?n.message:"Network Error",nQ.ERR_NETWORK,t,_);r.event=n||null,i(r),_=null},_.ontimeout=function(){let n=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||ir;u.timeoutErrorMessage&&(n=u.timeoutErrorMessage),i(new nQ(n,r.clarifyTimeoutError?nQ.ETIMEDOUT:nQ.ECONNABORTED,t,_)),_=null},void 0===h&&m.setContentType(null),"setRequestHeader"in _&&nJ.forEach(m.toJSON(),function(t,n){_.setRequestHeader(n,t)}),nJ.isUndefined(u.withCredentials)||(_.withCredentials=!!u.withCredentials),p&&"json"!==p&&(_.responseType=u.responseType),g&&([s,c]=iS(g,!0),_.addEventListener("progress",s)),f&&_.upload&&([a,l]=iS(f),_.upload.addEventListener("progress",a),_.upload.addEventListener("loadend",l)),(u.cancelToken||u.signal)&&(o=n=>{_&&(i(!n||n.type?new iE(null,t,_):n),_.abort(),_=null)},u.cancelToken&&u.cancelToken.subscribe(o),u.signal&&(u.signal.aborted?o():u.signal.addEventListener("abort",o)));let v=(r=u.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r))&&d[1]||"");v&&-1===im.protocols.indexOf(v)?i(new nQ("Unsupported protocol "+v+":",nQ.ERR_BAD_REQUEST,t)):_.send(h||null)})},iN=function*(t,n){let i,r=t.byteLength;if(!n||r<n)return void(yield t);let o=0;for(;o<r;)i=o+n,yield t.slice(o,i),o=i},iz=async function*(t,n){for await(let i of ij(t))yield*iN(i,n)},ij=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);let n=t.getReader();try{for(;;){let{done:t,value:i}=await n.read();if(t)break;yield i}}finally{await n.cancel()}},iY=(t,n,i,r)=>{let o,a=iz(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:iH}=nJ,iU=(({Request:t,Response:n})=>({Request:t,Response:n}))(nJ.global),{ReadableStream:iV,TextEncoder:iW}=nJ.global,iG=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},iq=t=>{let n,{fetch:i,Request:r,Response:o}=t=nJ.merge.call({skipUndefined:!0},iU,t),a=i?iH(i):"function"==typeof fetch,s=iH(r),l=iH(o);if(!a)return!1;let c=a&&iH(iV),d=a&&("function"==typeof iW?(n=new iW,t=>n.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer())),u=s&&c&&iG(()=>{let t=!1,n=new r(im.origin,{body:new iV,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),h=l&&c&&iG(()=>nJ.isReadableStream(new o("").body)),m={stream:h&&(t=>t.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{m[t]||(m[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new nQ(`Response type '${t}' is not supported`,nQ.ERR_NOT_SUPPORT,i)})});let p=async t=>{if(null==t)return 0;if(nJ.isBlob(t))return t.size;if(nJ.isSpecCompliantForm(t)){let n=new r(im.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return nJ.isArrayBufferView(t)||nJ.isArrayBuffer(t)?t.byteLength:(nJ.isURLSearchParams(t)&&(t+=""),nJ.isString(t))?(await d(t)).byteLength:void 0},f=async(t,n)=>{let i=nJ.toFiniteNumber(t.getContentLength());return null==i?p(n):i};return async t=>{let n,{url:a,method:l,data:c,signal:d,cancelToken:p,timeout:g,onDownloadProgress:b,onUploadProgress:_,responseType:y,headers:v,withCredentials:x="same-origin",fetchOptions:w}=i$(t),F=i||fetch;y=y?(y+"").toLowerCase():"text";let k=((t,n)=>{let{length:i}=t=t?t.filter(Boolean):[];if(n||i){let i,r=new AbortController,o=function(t){if(!i){i=!0,s();let n=t instanceof Error?t:this.reason;r.abort(n instanceof nQ?n:new iE(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new nQ(`timeout ${n} of ms exceeded`,nQ.ETIMEDOUT))},n),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));let{signal:l}=r;return l.unsubscribe=()=>nJ.asap(s),l}})([d,p&&p.toAbortSignal()],g),E=null,T=k&&k.unsubscribe&&(()=>{k.unsubscribe()});try{if(_&&u&&"get"!==l&&"head"!==l&&0!==(n=await f(v,c))){let t,i=new r(a,{method:"POST",body:c,duplex:"half"});if(nJ.isFormData(c)&&(t=i.headers.get("content-type"))&&v.setContentType(t),i.body){let[t,r]=iM(n,iS(iL(_)));c=iY(i.body,65536,t,r)}}nJ.isString(x)||(x=x?"include":"omit");let i=s&&"credentials"in r.prototype,d={...w,signal:k,method:l.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:i?x:void 0};E=s&&new r(a,d);let p=await (s?F(E,w):F(a,d)),g=h&&("stream"===y||"response"===y);if(h&&(b||g&&T)){let t={};["status","statusText","headers"].forEach(n=>{t[n]=p[n]});let n=nJ.toFiniteNumber(p.headers.get("content-length")),[i,r]=b&&iM(n,iS(iL(b),!0))||[];p=new o(iY(p.body,65536,i,()=>{r&&r(),T&&T()}),t)}y=y||"text";let C=await m[nJ.findKey(m,y)||"text"](p,t);return!g&&T&&T(),await new Promise((n,i)=>{iT(n,i,{data:C,headers:iw.from(p.headers),status:p.status,statusText:p.statusText,config:t,request:E})})}catch(n){if(T&&T(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new nQ("Network Error",nQ.ERR_NETWORK,t,E),{cause:n.cause||n});throw nQ.from(n,n&&n.code,t,E)}}},iZ=new Map,iK=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=iZ;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:iq(n)),d=c;return c};iK();let iX={http:null,xhr:iB,fetch:{get:iK}};nJ.forEach(iX,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}});let iJ=t=>`- ${t}`,iQ=t=>nJ.isFunction(t)||null===t||!1===t,i0=function(t,n){let i,r,{length:o}=t=nJ.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!iQ(i)&&void 0===(r=iX[(o=String(i)).toLowerCase()]))throw new nQ(`Unknown adapter '${o}'`);if(r&&(nJ.isFunction(r)||(r=r.get(n))))break;a[o||"#"+s]=r}if(!r){let t=Object.entries(a).map(([t,n])=>`adapter ${t} `+(!1===n?"is not supported by the environment":"is not available in the build"));throw new nQ("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(iJ).join("\n"):" "+iJ(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function i1(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iE(null,t)}function i2(t){return i1(t),t.headers=iw.from(t.headers),t.data=iF.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),i0(t.adapter||ig.adapter,t)(t).then(function(n){return i1(t),n.data=iF.call(t,t.transformResponse,n),n.headers=iw.from(n.headers),n},function(n){return!ik(n)&&(i1(t),n&&n.response&&(n.response.data=iF.call(t,t.transformResponse,n.response),n.response.headers=iw.from(n.response.headers))),Promise.reject(n)})}let i3={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{i3[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let i5={};i3.transitional=function(t,n,i){function r(t,n){return"[Axios v1.13.2] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new nQ(r(o," has been removed"+(n?" in "+n:"")),nQ.ERR_DEPRECATED);return n&&!i5[o]&&(i5[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(i,o,a)}},i3.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let i4=function(t,n,i){if("object"!=typeof t)throw new nQ("options must be an object",nQ.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=n[a];if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new nQ("option "+a+" must be "+i,nQ.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new nQ("Unknown option "+a,nQ.ERR_BAD_OPTION)}};class i6{constructor(t){this.defaults=t||{},this.interceptors={request:new ii,response:new ii}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iP(this.defaults,n);void 0!==o&&i4(o,{silentJSONParsing:i3.transitional(i3.boolean),forcedJSONParsing:i3.transitional(i3.boolean),clarifyTimeoutError:i3.transitional(i3.boolean)},!1),null!=a&&(nJ.isFunction(a)?n.paramsSerializer={serialize:a}:i4(a,{encode:i3.function,serialize:i3.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),i4(n,{baseUrl:i3.spelling("baseURL"),withXsrfToken:i3.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&nJ.merge(s.common,s[n.method]);s&&nJ.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),n.headers=iw.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(n))&&(d=d&&t.synchronous,c.unshift(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=[i2.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,i=Promise.resolve(n);h<r;)i=i.then(t[h++],t[h++]);return i}r=c.length;let m=n;for(;h<r;){let t=c[h++],n=c[h++];try{m=t(m)}catch(t){n.call(this,t);break}}try{i=i2.call(this,m)}catch(t){return Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return it(iR((t=iP(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}nJ.forEach(["delete","get","head","options"],function(t){i6.prototype[t]=function(n,i){return this.request(iP(i||{},{method:t,url:n,data:(i||{}).data}))}}),nJ.forEach(["post","put","patch"],function(t){function n(n){return function(i,r,o){return this.request(iP(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}i6.prototype[t]=n(),i6.prototype[t+"Form"]=n(!0)});class i8{constructor(t){let n;if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){n=t});const i=this;this.promise.then(t=>{if(!i._listeners)return;let n=i._listeners.length;for(;n-- >0;)i._listeners[n](t);i._listeners=null}),this.promise.then=t=>{let n,r=new Promise(t=>{i.subscribe(t),n=t}).then(t);return r.cancel=function(){i.unsubscribe(n)},r},t(function(t,r,o){i.reason||(i.reason=new iE(t,r,o),n(i.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 n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new i8(function(n){t=n}),cancel:t}}}let i7={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(i7).forEach(([t,n])=>{i7[n]=t});let i9=function t(n){let i=new i6(n),r=np(i6.prototype.request,i);return nJ.extend(r,i6.prototype,i,{allOwnKeys:!0}),nJ.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iP(n,i))},r}(ig);i9.Axios=i6,i9.CanceledError=iE,i9.CancelToken=i8,i9.isCancel=ik,i9.VERSION="1.13.2",i9.toFormData=n6,i9.AxiosError=nQ,i9.Cancel=i9.CanceledError,i9.all=function(t){return Promise.all(t)},i9.spread=function(t){return function(n){return t.apply(null,n)}},i9.isAxiosError=function(t){return nJ.isObject(t)&&!0===t.isAxiosError},i9.mergeConfig=iP,i9.AxiosHeaders=iw,i9.formToJSON=t=>ip(nJ.isHTMLForm(t)?new FormData(t):t),i9.getAdapter=i0,i9.HttpStatusCode=i7,i9.default=i9;class re{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rw`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rw`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rw`apps/info`,options:t})}}class rt{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rw`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rw`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rn{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rw`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rw`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rw`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rw`syslog/event`,queryParams:t,options:n})}}class ri{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rw`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rw`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rr{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rw`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rw`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rw`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rw`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rw`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rw`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rw`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rw`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rw`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rw`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rw`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rw`user/${t}/${n}`,options:i})}}class ro{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rw`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rw`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rw`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rw`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`realm/${t}`,data:n,options:i})}}class ra{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rw`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rw`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rw`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rw`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rw`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rw`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rw`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rw`alarm/${t}/assets`,queryParams:n,options:i})}}class rs{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rw`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rw`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rw`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rw`provisioning/${t}`,data:n,options:i})}}class rl{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rw`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rw`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rw`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rw`configuration/manager/image/${t}`,options:n})}}class rc{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rw`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rw`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rw`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rw`gateway/status/${t}`,options:n})}}class rd{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rw`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rw`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rw`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rw`dashboard/${t}/${n}`,options:i})}}class ru{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rw`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rw`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rw`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rw`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rw`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rw`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rw`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rw`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rw`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rw`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rw`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rw`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rw`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rw`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rw`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rw`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/attribute/${n}`,data:i,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rw`asset/${t}/child`,queryParams:n,options:i})}}class rh{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rw`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rw`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rw`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rw`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rw`notification/${t}/delivered`,queryParams:n,options:i})}}class rm{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rw`console/register`,data:t,options:n})}}class rp{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rw`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rw`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rf{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rw`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rw`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rw`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rw`model/valueDescriptors`,queryParams:t,options:n})}}class rg{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rw`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rw`info`,options:t})}}class rb{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rw`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rw`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rw`flow/${t}`,options:n})}}class r_{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rw`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rw`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rw`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rw`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rw`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rw`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rw`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rw`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rw`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rw`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rw`rules/${t}`,data:n,options:i})}}class ry{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rw`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rw`asset/predicted/${t}/${n}`,data:i,options:r})}}class rv{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rw`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rw`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rw`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rw`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:rw`map/js`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rw`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rw`map/upload`,queryParams:t,options:n})}}class rx{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rw`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rw`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rw`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rw`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rw`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rw`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rw`service/${t}/${n}`,options:i})}}function rw(t,...n){let i="";for(let r=0;r<n.length;r++)i+=t[r],i+=encodeURIComponent(n[r]);return i+t[t.length-1]}class rF{constructor(t,n=i9.create()){this._appResource=new rE(t,n),this._agentResource=new rT(t,n),this._syslogResource=new rC(t,n),this._gatewayServiceResource=new rA(t,n),this._userResource=new rS(t,n),this._realmResource=new rM(t,n),this._alarmResource=new rL(t,n),this._provisioningResource=new rD(t,n),this._configurationResource=new rI(t,n),this._gatewayClientResource=new rR(t,n),this._dashboardResource=new rO(t,n),this._assetResource=new rP(t,n),this._notificationResource=new r$(t,n),this._consoleResource=new rB(t,n),this._assetDatapointResource=new rN(t,n),this._assetModelResource=new rz(t,n),this._statusResource=new rj(t,n),this._flowResource=new rY(t,n),this._rulesResource=new rH(t,n),this._assetPredictedDatapointResource=new rU(t,n),this._mapResource=new rV(t,n),this._externalServiceResource=new rW(t,n),this._assetResource=new rP(t,n)}get AppResource(){return this._appResource}get AgentResource(){return this._agentResource}get SyslogResource(){return this._syslogResource}get GatewayServiceResource(){return this._gatewayServiceResource}get UserResource(){return this._userResource}get RealmResource(){return this._realmResource}get AlarmResource(){return this._alarmResource}get ProvisioningResource(){return this._provisioningResource}get ConfigurationResource(){return this._configurationResource}get GatewayClientResource(){return this._gatewayClientResource}get DashboardResource(){return this._dashboardResource}get AssetResource(){return this._assetResource}get NotificationResource(){return this._notificationResource}get ConsoleResource(){return this._consoleResource}get AssetDatapointResource(){return this._assetDatapointResource}get AssetModelResource(){return this._assetModelResource}get StatusResource(){return this._statusResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get MapResource(){return this._mapResource}get ExternalServiceResource(){return this._externalServiceResource}}class rk{constructor(t){this.axios=t}request(t){let n={};n.method=t.method,n.url=t.url,n.params=t.queryParams,n.data=t.data,function(t,n){if(void 0!=n)for(let i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}(n,t.options);let i=t.copyFn;return this.axios.request(n).then(t=>(i&&t.data&&(t.originalData=t.data,t.data=i(t.data)),t))}}class rE extends re{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rT extends rt{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rC extends rn{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rA extends ri{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rS extends rr{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rM extends ro{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rL extends ra{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rD extends rs{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rI extends rl{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rR extends rc{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rO extends rd{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rP extends ru{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class r$ extends rh{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rB extends rm{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rN extends rp{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rz extends rf{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rj extends rg{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rY extends rb{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rH extends r_{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rU extends ry{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rV extends rv{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}class rW extends rx{constructor(t,n=i9.create()){n.defaults.baseURL=t,super(new rk(n))}}i9.isAxiosError;let rG=new class{get api(){return this._client}constructor(){this._axiosInstance=i9.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>t4().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 rF(t,this._axiosInstance)}};var rq=function(t,n,i,r){return new(i||(i=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 n;t.done?o(t.value):((n=t.value)instanceof i?n:new i(function(t){t(n)})).then(s,l)}c((r=r.apply(t,n||[])).next())})};(cB=dG||(dG={})).DISCONNECTED="DISCONNECTED",cB.CONNECTED="CONNECTED",cB.CONNECTING="CONNECTING";let rZ="SUBSCRIBED:",rK="UNAUTHORIZED:",rX="TRIGGERED:",rJ="EVENT:";class rQ{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=r0.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=dG.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,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===dG.CONNECTED)?Promise.resolve(!0):(this._disconnectRequested=!1,this._connectingDeferred||(this._onStatusChanged(dG.CONNECTING),this._connectingDeferred=new t9,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;this._connectingDeferred=null,t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=r0.MIN_RECONNECT_DELAY,this._onStatusChanged(dG.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):(console.debug("Failed to connect to event service: "+this.endpointUrl),this._scheduleReconnect()),n.resolve(t)}})),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!==dG.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new t9};return null!=this._pendingSubscription||this._status!==dG.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return rq(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)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===dG.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==dG.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return rq(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+rQ._subscriptionCounter++;if(!this._assetEventPromise){let t;oL.authenticated||(t={filterType:"asset",realm:oL.displayRealm});let n={eventType:"asset",filter:t};this._assetEventPromise=this.subscribe(n,t=>{this._assetEventCallbackMap.forEach(n=>n(t))})}return this._assetEventCallbackMap.set(o,t=>{let n=t.asset.id;r?r.find(t=>n===t)&&i(t):t.asset.realm===oL.displayRealm&&i(t)}),this._assetEventPromise.then(()=>{try{if(r&&n){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=>{i({eventType:"asset",asset:t,cause:"READ"})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),o&&this.unsubscribe(o),n}return o})})}subscribeAttributeEvents(t,n,i){return rq(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"+rQ._subscriptionCounter++;if(!this._attributeEventPromise){let t;oL.authenticated||(t={filterType:"asset",realm:oL.displayRealm});let n={eventType:"attribute",filter:t};this._attributeEventPromise=this.subscribe(n,t=>{this._attributeEventCallbackMap.forEach(n=>n(t))})}let l=n=>{let a=n.ref;r?t.forEach(t=>{a.id===t.id&&a.name===t.name&&i(n)}):o?o.find(t=>a.id===t)&&i(n):n.realm===oL.displayRealm&&i(n)};return this._attributeEventCallbackMap.set(s,l),this._attributeEventPromise.then(()=>{try{if(n&&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(([n,i])=>{(!a||a.find(i=>i.id===t.id&&i.name===n))&&l({eventType:"attribute",timestamp:i.timestamp,value:i.value,ref:{id:t.id,name:n}})})})})}}catch(n){throw console.error("Failed to subscribe to asset events for assets: "+t),s&&this.unsubscribe(s),n}return s})})}_processNextSubscription(){this._status===dG.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let t=this._queuedSubscriptions.shift();t&&this.subscribe(t.eventSubscription,t.callback).then(n=>{let i=t.deferred;t.deferred=null,i&&i.resolve(n)},n=>{let i=t.deferred;t.deferred=null,i&&i.reject(n)})},0)}_onStatusChanged(t){t!==this._status&&(console.debug("Event provider status changed: "+t),this._status=t,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(n=>n(t))},0))}_onMessageReceived(t,n){let i=this._subscriptionMap.get(t);i&&i.callback(n)}_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===dG.CONNECTED&&this._onStatusChanged(dG.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(dG.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<r0.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(r0.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}rQ.MIN_RECONNECT_DELAY=0,rQ.MAX_RECONNECT_DELAY=3e4,rQ._subscriptionCounter=0;class r0 extends rQ{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="+oL.config.realm;return oL.authenticated&&(t+="&Authorization="+oL.getAuthorizationHeader()),this._webSocket=new WebSocket(t),this._connectDeferred=new t9,this._webSocket.onopen=()=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else console.debug("Event provider error"),this._beforeDisconnect()},this._webSocket.onclose=()=>{if(this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(rZ)){let t=JSON.parse(n.substring(rZ.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(rK)){let t=JSON.parse(n.substring(rK.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&(console.warn("Unauthorized event subscription: "+JSON.stringify(t,null,2)),i.reject("Unauthorized"))}else if(n.startsWith(rX)){let t=JSON.parse(n.substring(rX.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(rJ)){let t=JSON.parse(n.substring(rJ.length));if(t.messageID){let n=this._repliesDeferred.get(t.messageID);this._repliesDeferred.delete(t.messageID),n&&n.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 t9,t.subscriptionId||(t.subscriptionId=r0._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 n=rJ+JSON.stringify(t);this._webSocket.send(n)}_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 n=new t9;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(rJ+JSON.stringify(t)),n.promise}}function r1(t){return(r1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r0._subscriptionCounter=1;var r2=[],r3=r2.forEach,r5=r2.slice;function r4(t){return r3.call(r5.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function r6(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":r1(XMLHttpRequest))==="object"}var r8=o(54550),r7=o.t(r8,2);function r9(t){return(r9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(dq="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),r6()&&("u">typeof global&&global.XMLHttpRequest?dZ=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(dZ=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?dK=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(dK=window.ActiveXObject)),dq||!r7||dZ||dK||(dq=r8||r7),"function"!=typeof dq&&(dq=void 0);var oe=function(t,n){if(n&&"object"===r9(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},ot=function(t,n,i){dq(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},on=!1,oi=function(t,n,i,r){t.queryStringParams&&(n=oe(n,t.queryStringParams));var o=r4({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=r4({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},on?{}:a);try{ot(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),ot(n,s,r),on=!0}catch(t){r(t)}}},or=function(t,n,i,r){i&&"object"===r9(i)&&(i=oe("",i).slice(1)),t.queryStringParams&&(n=oe(n,t.queryStringParams));try{(o=dZ?new dZ:new dK("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let oo=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},dq)?oi(t,n,i,r):r6()||"function"==typeof ActiveXObject?or(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var oa=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=r4(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:oo,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var u=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,u,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();oa.type="backend";class os extends eY{constructor(t){if(super(t),this.it=eg,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===eg||null==t)return this._t=void 0,this.it=t;if(t===ef)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 n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}os.directiveName="unsafeHTML",os.resultType=1,ej(os);class ol extends os{}ol.directiveName="unsafeSVG",ol.resultType=2;let oc=ej(ol),od={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-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" />'};var ou=function(t,n,i,r){var o,a=arguments.length,s=a<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,r);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);return a>3&&s&&Object.defineProperty(n,i,s),s};class oh extends CustomEvent{constructor(){super(oh.NAME,{bubbles:!0,composed:!0})}}oh.NAME="or-iconset-added";let om=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oh)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return em``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):em``}},op=class extends eD{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[S`
71
71
  :host {
72
72
  --internal-or-icon-width: var(--or-icon-width, 24px);
73
73
  --internal-or-icon-height: var(--or-icon-height, 24px);