@openremote/or-attribute-input 1.32.0 → 1.33.0-snapshot.20261013082434

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.
@@ -837,7 +837,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
837
837
  :host([hidden]) {
838
838
  display: none;
839
839
  }
840
- `,tH([eY({type:String})],tU.prototype,"value",void 0),tH([eY({type:Object})],tU.prototype,"options",void 0),tU=tH([ez("or-translate")],tU),(pc=f_||(f_={})).CREATE="CREATE",pc.UPDATE="UPDATE",pc.DELETE="DELETE",pc.DELETE_FINISHED="DELETE_FINISHED",(pd=fy||(fy={})).LOW="LOW",pd.MEDIUM="MEDIUM",pd.HIGH="HIGH",(pu=fv||(fv={})).MANUAL="MANUAL",pu.CLIENT="CLIENT",pu.GLOBAL_RULESET="GLOBAL_RULESET",pu.REALM_RULESET="REALM_RULESET",pu.ASSET_RULESET="ASSET_RULESET",pu.AGENT="AGENT",(ph=fx||(fx={})).OPEN="OPEN",ph.ACKNOWLEDGED="ACKNOWLEDGED",ph.IN_PROGRESS="IN_PROGRESS",ph.RESOLVED="RESOLVED",ph.CLOSED="CLOSED",(pm=fw||(fw={})).BOTTOM_LEFT="BOTTOM_LEFT",pm.BOTTOM_RIGHT="BOTTOM_RIGHT",pm.TOP_LEFT="TOP_LEFT",pm.TOP_RIGHT="TOP_RIGHT",(pp=fF||(fF={})).CREATE="CREATE",pp.READ="READ",pp.UPDATE="UPDATE",pp.DELETE="DELETE",(pf=fk||(fk={})).NONE="NONE",pf.FORECAST="FORECAST",pf.SETPOINT="SETPOINT",(pg=fE||(fE={})).DISCONNECTED="DISCONNECTED",pg.CONNECTING="CONNECTING",pg.DISCONNECTING="DISCONNECTING",pg.CONNECTED="CONNECTED",pg.DISABLED="DISABLED",pg.WAITING="WAITING",pg.ERROR="ERROR",pg.STOPPED="STOPPED",(pb=fC||(fC={})).REQUEST_START="REQUEST_START",pb.REQUEST_REPEATING="REQUEST_REPEATING",pb.REQUEST_CANCEL="REQUEST_CANCEL",pb.READY="READY",pb.COMPLETED="COMPLETED",pb.RUNNING="RUNNING",pb.CANCELLED="CANCELLED",(p_=fT||(fT={})).TOGGLE="TOGGLE",p_.INCREMENT="INCREMENT",p_.DECREMENT="DECREMENT",p_.NEGATE="NEGATE",(py=fA||(fA={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",py.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",py.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",py.INVALID_VALUE="INVALID_VALUE",py.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",py.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",py.CANNOT_PROCESS="CANNOT_PROCESS",py.QUEUE_FULL="QUEUE_FULL",py.UNKNOWN="UNKNOWN",py.ASSET_ID_MISSING="ASSET_ID_MISSING",py.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(pv=fS||(fS={})).PUBLIC="PUBLIC",pv.SHARED="SHARED",pv.PRIVATE="PRIVATE",(px=fM||(fM={})).OFF="OFF",px.ONE_MIN="ONE_MIN",px.FIVE_MIN="FIVE_MIN",px.QUARTER="QUARTER",px.ONE_HOUR="ONE_HOUR",(pw=fD||(fD={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",pw.KEEP_LAYOUT="KEEP_LAYOUT",pw.REDIRECT="REDIRECT",pw.BLOCK_DEVICE="BLOCK_DEVICE",(pF=fL||(fL={})).CSV="CSV",pF.CSV_CROSSTAB="CSV_CROSSTAB",pF.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(pk=fI||(fI={})).MINUTE="MINUTE",pk.HOUR="HOUR",pk.DAY="DAY",pk.WEEK="WEEK",pk.MONTH="MONTH",pk.YEAR="YEAR",(pE=fR||(fR={})).MIN="MIN",pE.AVG="AVG",pE.MAX="MAX",pE.DIFFERENCE="DIFFERENCE",pE.COUNT="COUNT",pE.SUM="SUM",pE.MODE="MODE",pE.MEDIAN="MEDIAN",(pC=fO||(fO={})).TERMINATING="TERMINATING",pC.DISABLED="DISABLED",pC.ALREADY_CONNECTED="ALREADY_CONNECTED",pC.UNRECOGNISED="UNRECOGNISED",pC.PERMANENT_ERROR="PERMANENT_ERROR",pC.SYNC_ERROR="SYNC_ERROR",(pT=fP||(fP={})).HTTPS="HTTPS",pT.HTTP="HTTP",pT.TCP="TCP",(pA=f$||(f$={})).GET="GET",pA.POST="POST",pA.PUT="PUT",pA.DELETE="DELETE",pA.OPTIONS="OPTIONS",pA.PATCH="PATCH",(pS=fB||(fB={})).KEYCLOAK="KEYCLOAK",pS.NONE="NONE",(pM=fN||(fN={})).WEBSOCKET="WEBSOCKET",pM.POLLING="POLLING",(pD=fz||(fz={})).INTERNAL="INTERNAL",pD.CLIENT="CLIENT",pD.GLOBAL_RULESET="GLOBAL_RULESET",pD.REALM_RULESET="REALM_RULESET",pD.ASSET_RULESET="ASSET_RULESET",(pL=fj||(fj={})).REALM="REALM",pL.USER="USER",pL.ASSET="ASSET",pL.CUSTOM="CUSTOM",(pI=fY||(fY={})).NORMAL="NORMAL",pI.HIGH="HIGH",(pR=fH||(fH={})).DEVICE="DEVICE",pR.TOPIC="TOPIC",pR.CONDITION="CONDITION",(pO=fU||(fU={})).ALWAYS="ALWAYS",pO.ONCE="ONCE",pO.HOURLY="HOURLY",pO.DAILY="DAILY",pO.WEEKLY="WEEKLY",pO.MONTHLY="MONTHLY",pO.ANNUALLY="ANNUALLY",(pP=fV||(fV={})).TITLE="TITLE",pP.SOURCE="SOURCE",pP.STATUS="STATUS",pP.SENT_ON="SENT_ON",pP.DELIVERED_ON="DELIVERED_ON",(p$=fW||(fW={})).MESSAGE_INVALID="MESSAGE_INVALID",p$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",p$.UNAUTHORIZED="UNAUTHORIZED",p$.FORBIDDEN="FORBIDDEN",p$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",p$.CONFIG_DISABLED="CONFIG_DISABLED",p$.USER_DISABLED="USER_DISABLED",p$.SERVER_ERROR="SERVER_ERROR",p$.ASSET_ERROR="ASSET_ERROR",p$.SERVER_BUSY="SERVER_BUSY",(pB=fq||(fq={})).PRIVATE="PRIVATE",pB.PROTECTED="PROTECTED",pB.PUBLIC="PUBLIC",(pN=fG||(fG={})).EXACT="EXACT",pN.BEGIN="BEGIN",pN.END="END",pN.CONTAINS="CONTAINS",(pz=fK||(fK={})).EQUALS="EQUALS",pz.GREATER_THAN="GREATER_THAN",pz.GREATER_EQUALS="GREATER_EQUALS",pz.LESS_THAN="LESS_THAN",pz.LESS_EQUALS="LESS_EQUALS",pz.BETWEEN="BETWEEN",(pj=fX||(fX={})).CREATED_ON="CREATED_ON",pj.NAME="NAME",pj.ASSET_TYPE="ASSET_TYPE",pj.PARENT_ID="PARENT_ID",pj.REALM="REALM",(pY=fZ||(fZ={})).RESTRICTED="RESTRICTED",pY.LINKED="LINKED",pY.REALM="REALM",(pH=fJ||(fJ={})).AT_LEAST_ONE="AT_LEAST_ONE",pH.ALL="ALL",pH.NONE="NONE",(pU=fQ||(fQ={})).AND="AND",pU.OR="OR",(pV=f0||(f0={})).CREATED_ON="CREATED_ON",pV.FIRST_NAME="FIRST_NAME",pV.LAST_NAME="LAST_NAME",pV.USERNAME="USERNAME",pV.EMAIL="EMAIL",(pW=f1||(f1={})).STOPPED="STOPPED",pW.RUNNING="RUNNING",pW.ERROR="ERROR",(pq=f2||(f2={})).JAVASCRIPT="JAVASCRIPT",pq.GROOVY="GROOVY",pq.JSON="JSON",pq.FLOW="FLOW",(pG=f3||(f3={})).READY="READY",pG.DEPLOYED="DEPLOYED",pG.COMPILATION_ERROR="COMPILATION_ERROR",pG.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",pG.EXECUTION_ERROR="EXECUTION_ERROR",pG.LOOP_ERROR="LOOP_ERROR",pG.DISABLED="DISABLED",pG.PAUSED="PAUSED",pG.EXPIRED="EXPIRED",pG.REMOVED="REMOVED",pG.EMPTY="EMPTY",(pK=f5||(f5={})).SUNRISE="SUNRISE",pK.SUNSET="SUNSET",pK.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",pK.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",pK.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",pK.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",pK.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",pK.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",pK.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",pK.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",pK.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",pK.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",pK.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",pK.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",pK.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",pK.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",pK.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",pK.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",pK.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",pK.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(pX=f4||(f4={})).NUMBER="NUMBER",pX.NUMBER_ARRAY="NUMBER_ARRAY",pX.STRING="STRING",pX.BOOLEAN="BOOLEAN",pX.TRIGGER="TRIGGER",pX.COLOR="COLOR",pX.ANY="ANY",(pZ=f6||(f6={})).NEW_LINE="NEW_LINE",pZ.SPACER="SPACER",(pJ=f8||(f8={})).INPUT="INPUT",pJ.PROCESSOR="PROCESSOR",pJ.OUTPUT="OUTPUT",pJ.THEN="THEN",(pQ=f7||(f7={})).TEXT="TEXT",pQ.MULTILINE="MULTILINE",pQ.NUMBER="NUMBER",pQ.DROPDOWN="DROPDOWN",pQ.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pQ.CHECKBOX="CHECKBOX",pQ.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pQ.COLOR="COLOR",pQ.DATE="DATE",(p0=f9||(f9={})).ADD="ADD",p0.ADD_OR_REPLACE="ADD_OR_REPLACE",p0.REPLACE="REPLACE",p0.DELETE="DELETE",p0.CLEAR="CLEAR",(p1=ge||(ge={})).PER_ASSET="PER_ASSET",p1.GLOBAL="GLOBAL",(p2=gt||(gt={})).READ_ADMIN="read:admin",p2.READ_LOGS="read:logs",p2.READ_USERS="read:users",p2.READ_MAP="read:map",p2.READ_ASSETS="read:assets",p2.READ_RULES="read:rules",p2.READ_INSIGHTS="read:insights",p2.READ_ALARMS="read:alarms",p2.READ_NOTIFICATIONS="read:notifications",p2.READ_SERVICES="read:services",p2.READ_TUNNELS="read:tunnels",p2.WRITE_SERVICES="write:services",p2.WRITE_USER="write:user",p2.WRITE_ADMIN="write:admin",p2.WRITE_LOGS="write:logs",p2.WRITE_ASSETS="write:assets",p2.WRITE_ATTRIBUTES="write:attributes",p2.WRITE_RULES="write:rules",p2.WRITE_INSIGHTS="write:insights",p2.WRITE_ALARMS="write:alarms",p2.WRITE_NOTIFICATIONS="write:notifications",p2.WRITE_TUNNELS="write:tunnels",p2.READ="read",p2.WRITE="write",(p3=gn||(gn={})).REGISTER="REGISTER",p3.UPDATE="UPDATE",p3.DEREGISTER="DEREGISTER",(p5=gi||(gi={})).AVAILABLE="AVAILABLE",p5.UNAVAILABLE="UNAVAILABLE",(p4=gr||(gr={})).ASSET="ASSET",p4.AGENT="AGENT",p4.NOTIFICATION="NOTIFICATION",p4.ALARM="ALARM",p4.RULES="RULES",p4.PROTOCOL="PROTOCOL",p4.GATEWAY="GATEWAY",p4.MODEL_AND_VALUES="MODEL_AND_VALUES",p4.API="API",p4.DATA="DATA",(p6=go||(go={})).INFO="INFO",p6.WARN="WARN",p6.ERROR="ERROR",(p8=ga||(ga={})).NUMERIC="numeric",p8.DIGIT_2="2-digit",p8.FULL="full",p8.LONG="long",p8.MEDIUM="medium",p8.SHORT="short",p8.NARROW="narrow",(p7=gs||(gs={})).SECONDLY="SECONDLY",p7.MINUTELY="MINUTELY",p7.HOURLY="HOURLY",p7.DAILY="DAILY",p7.WEEKLY="WEEKLY",p7.MONTHLY="MONTHLY",p7.YEARLY="YEARLY",(p9=gl||(gl={})).OMIT="OMIT",p9.BACKWARD="BACKWARD",p9.FORWARD="FORWARD",(fe=gc||(gc={})).JAPANESE="JAPANESE",fe.BUDDHIST="BUDDHIST",fe.ROC="ROC",fe.ISLAMIC="ISLAMIC",fe.ISO8601="ISO8601",fe.CHINESE="CHINESE",fe.ETHIOPIC="ETHIOPIC",fe.HEBREW="HEBREW",fe.GREGORIAN="GREGORIAN",(ft=gd||(gd={})).SU="SU",ft.MO="MO",ft.TU="TU",ft.WE="WE",ft.TH="TH",ft.FR="FR",ft.SA="SA",(fn=gu||(gu={})).PEOPLECOUNTERASSET="PeopleCounterAsset",fn.MAILAGENT="MailAgent",fn.UDPAGENT="UDPAgent",fn.ROOMASSET="RoomAsset",fn.CITYASSET="CityAsset",fn.VENTILATIONASSET="VentilationAsset",fn.TRADFRILIGHTASSET="TradfriLightAsset",fn.CONSOLEASSET="ConsoleAsset",fn.PRESENCESENSORASSET="PresenceSensorAsset",fn.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",fn.LIGHTASSET="LightAsset",fn.KNXAGENT="KNXAgent",fn.THETHINGSSTACKAGENT="TheThingsStackAgent",fn.PLUGASSET="PlugAsset",fn.CHIRPSTACKAGENT="ChirpStackAgent",fn.WEATHERASSET="WeatherAsset",fn.THINGASSET="ThingAsset",fn.WEBSOCKETAGENT="WebsocketAgent",fn.TCPAGENT="TCPAgent",fn.GATEWAYASSET="GatewayAsset",fn.SERIALAGENT="SerialAgent",fn.BLUETOOTHMESHAGENT="BluetoothMeshAgent",fn.PARKINGASSET="ParkingAsset",fn.TRADFRIPLUGASSET="TradfriPlugAsset",fn.SIMULATORAGENT="SimulatorAgent",fn.SNMPAGENT="SNMPAgent",fn.GROUPASSET="GroupAsset",fn.BUILDINGASSET="BuildingAsset",fn.MODBUSSERIALAGENT="ModbusSerialAgent",fn.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",fn.MQTTAGENT="MQTTAgent",fn.VELBUSTCPAGENT="VelbusTCPAgent",fn.ARTNETLIGHTASSET="ArtnetLightAsset",fn.VELBUSSERIALAGENT="VelbusSerialAgent",fn.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",fn.MICROPHONEASSET="MicrophoneAsset",fn.MODBUSTCPAGENT="ModbusTcpAgent",fn.ZWAVEAGENT="ZWaveAgent",fn.HTTPAGENT="HTTPAgent",fn.DOORASSET="DoorAsset",fn.THERMOSTATASSET="ThermostatAsset",fn.SHIPASSET="ShipAsset",(fi=gh||(gh={})).COLOURRGB="colourRGB",fi.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",fi.PRICEHOURLY="priceHourly",fi.MQTTPORT="MQTTPort",fi.PINGDISABLED="pingDisabled",fi.FLOW="flow",fi.CHILDASSETTYPE="childAssetType",fi.LASTACCESS="lastAccess",fi.POSITION="position",fi.NETWORKKEY="networkKey",fi.UNIVERSE="universe",fi.ROUTINGMODE="routingMode",fi.MSSINUMBER="MSSINumber",fi.LASTWILLRETAIN="lastWillRetain",fi.LASTWILLTOPIC="lastWillTopic",fi.SERIALBAUDRATE="serialBaudrate",fi.SUBSCRIBEQOS="subscribeQos",fi.LEDCOUNT="lEDCount",fi.LOCKED="locked",fi.CLOUDCOVERAGE="cloudCoverage",fi.BASEURL="baseURL",fi.PROTOCOL="protocol",fi.REQUIREDVALUES="requiredValues",fi.REGION="region",fi.CONSOLEPLATFORM="consolePlatform",fi.GATEWAYSTATUS="gatewayStatus",fi.NO2LEVEL="NO2Level",fi.ATMOSPHERICPRESSURE="atmosphericPressure",fi.SERIALPORT="serialPort",fi.APPLICATIONID="applicationId",fi.TAGS="tags",fi.UNLOCK="unlock",fi.CHECKINTERVALSECONDS="checkIntervalSeconds",fi.LOCATION="location",fi.CLIENTSECRET="clientSecret",fi.WINDDIRECTION="windDirection",fi.WINDSPEED="windSpeed",fi.PARTICLESPM10="particlesPM10",fi.APPLICATIONKEY="applicationKey",fi.LENGTH="length",fi.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",fi.USERNAMEPASSWORD="usernamePassword",fi.WATERLEVEL="waterLevel",fi.CONNECTHEADERS="connectHeaders",fi.CONSOLENAME="consoleName",fi.WEBSOCKETQUERY="websocketQuery",fi.PREFERHTML="preferHTML",fi.PARITY="parity",fi.COOLING="cooling",fi.POLLINGMILLIS="pollingMillis",fi.SOILTEMPERATURE="soilTemperature",fi.SUNIRRADIANCE="sunIrradiance",fi.MESSAGEMAXLENGTH="messageMaxLength",fi.WINDGUSTSPEED="windGustSpeed",fi.LIGHTID="lightId",fi.PROXYADDRESS="proxyAddress",fi.REQUESTQUERYPARAMETERS="requestQueryParameters",fi.MQTTHOST="MQTTHost",fi.SECUREGRPC="secureGRPC",fi.MODEL="model",fi.STREET="street",fi.MANUFACTURER="manufacturer",fi.DELETEPROCESSEDMAIL="deleteProcessedMail",fi.RESUMESESSION="resumeSession",fi.ONOFF="onOff",fi.APIKEY="ApiKey",fi.CITY="city",fi.PRESENCE="presence",fi.SPACESOCCUPIED="spacesOccupied",fi.STARTTLS="startTLS",fi.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",fi.WEBSOCKETPATH="websocketPath",fi.AGENTSTATUS="agentStatus",fi.PRICEDAILY="priceDaily",fi.COUNTGROWTHMINUTE="countGrowthMinute",fi.IMONUMBER="IMONumber",fi.ATTRIBUTION="Attribution",fi.TENANTID="tenantId",fi.REQUESTHEADERS="requestHeaders",fi.HOST="host",fi.COUNTOUTMINUTE="countOutMinute",fi.MESSAGECHARSET="messageCharset",fi.CERTIFICATEALIAS="certificateAlias",fi.EMAIL="email",fi.BINDPORT="bindPort",fi.CONSOLEVERSION="consoleVersion",fi.PARTICLESPM1="particlesPM1",fi.MTU="mtu",fi.SPEED="speed",fi.MESSAGESTRIPDELIMITER="messageStripDelimiter",fi.AREA="area",fi.COUNTRY="country",fi.SHIPTYPE="shipType",fi.CONNECTSUBSCRIPTIONS="connectSubscriptions",fi.RELATIVEHUMIDITY="relativeHumidity",fi.SOURCEADDRESS="sourceAddress",fi.RAINFALL="rainfall",fi.OAUTHGRANT="oAuthGrant",fi.OZONELEVEL="ozoneLevel",fi.SEQUENCENUMBER="sequenceNumber",fi.COUNTINMINUTE="countInMinute",fi.PORT="port",fi.SUNALTITUDE="sunAltitude",fi.COUNTOUT="countOut",fi.ROOMNUMBER="roomNumber",fi.TUNNELINGSUPPORTED="tunnelingSupported",fi.ENINUMBER="ENINumber",fi.PARTICLESPM2_5="particlesPM2_5",fi.AGENTDISABLED="agentDisabled",fi.DISABLED="disabled",fi.COUNTIN="countIn",fi.MESSAGESOURCEADDRESS="messageSourceAddress",fi.PROVISIONWEATHERASSET="ProvisionWeatherAsset",fi.TIMEINJECTIONINTERVAL="timeInjectionInterval",fi.TEMPERATURESETPOINT="temperatureSetpoint",fi.CONSOLEPROVIDERS="consoleProviders",fi.COUNTTOTAL="countTotal",fi.SPACESBUFFER="spacesBuffer",fi.DEVICECONFIG="deviceConfig",fi.SPACESTOTAL="spacesTotal",fi.BINDHOST="bindHost",fi.FANSPEED="fanSpeed",fi.MESSAGECONVERTBINARY="messageConvertBinary",fi.NOTES="notes",fi.MAILFOLDERNAME="mailFolderName",fi.MESSAGEDELIMITERS="messageDelimiters",fi.TEMPERATURE="temperature",fi.SUNZENITH="sunZenith",fi.SNMPVERSIONVALUE="SNMPVersionValue",fi.BRIGHTNESS="brightness",fi.POSTALCODE="postalCode",fi.SPACESOPEN="spacesOpen",fi.HUMIDITY="humidity",fi.SOUNDLEVEL="soundLevel",fi.SECUREMODE="secureMode",fi.DIRECTION="direction",fi.STOPBITS="stopbits",fi.UVINDEX="uVIndex",fi.CONNECTURL="connectURL",fi.CLIENTID="clientId",fi.NATMODE="NATMode",fi.UPDATEONWRITE="updateOnWrite",fi.LASTWILLPAYLOAD="lastWillPayload",fi.GROUPID="groupId",fi.FOLLOWREDIRECTS="followRedirects",fi.SUNAZIMUTH="sunAzimuth",fi.MESSAGECONVERTHEX="messageConvertHex",fi.WEBSOCKETMODE="websocketMode",fi.COLOURTEMPERATURE="colourTemperature",fi.PUBLISHQOS="publishQos",fi.DATABITS="dataBits",(fr=gm||(gm={})).FORMAT="format",fr.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",fr.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",fr.SECRET="secret",fr.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",fr.ATTRIBUTELINKS="attributeLinks",fr.RULERESETIMMEDIATE="ruleResetImmediate",fr.RULESTATE="ruleState",fr.AGENTLINKCONFIG="agentLinkConfig",fr.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",fr.FORECAST="forecast",fr.STOREDATAPOINTS="storeDataPoints",fr.LABEL="label",fr.CONSTRAINTS="constraints",fr.UNITS="units",fr.USERCONNECTED="userConnected",fr.SHOWONDASHBOARD="showOnDashboard",fr.READONLY="readOnly",fr.MULTILINE="multiline",fr.ACCESSPUBLICWRITE="accessPublicWrite",fr.MOMENTARY="momentary",fr.AGENTLINK="agentLink",fr.ACCESSRESTRICTEDREAD="accessRestrictedRead",fr.ACCESSPUBLICREAD="accessPublicRead",(fo=gp||(gp={})).ASSETQUERY="assetQuery",fo.WSURL="WS_URL",fo.COLOURRGB="colourRGB",fo.VALUEFORMAT="valueFormat",fo.TEXT="text",fo.BYTE="byte",fo.USERNAMEANDPASSWORD="usernameAndPassword",fo.HTTPURL="HTTP_URL",fo.ATTRIBUTELINK="attributeLink",fo.ASSETID="assetID",fo.NUMBERMAP="numberMap",fo.HTTPMETHOD="HTTPMethod",fo.ATTRIBUTESTATE="attributeState",fo.POSITIVENUMBER="positiveNumber",fo.POSITIVEINTEGER="positiveInteger",fo.EXECUTIONSTATUS="executionStatus",fo.BIGINTEGER="bigInteger",fo.VALUEDESCRIPTOR="valueDescriptor",fo.PERIODDURATIONISO8601="periodDurationISO8601",fo.LONG="long",fo.DATEANDTIME="dateAndTime",fo.BOOLEANMAP="booleanMap",fo.MQTTQOS="MQTTQos",fo.NEGATIVEINTEGER="negativeInteger",fo.TCPIPPORTNUMBER="TCP_IPPortNumber",fo.GEOJSONPOINT="GEO_JSONPoint",fo.SNMPVERSION="SNMPVersion",fo.ASSETTYPE="assetType",fo.JSONOBJECT="JSONObject",fo.INTEGERMAP="integerMap",fo.BIGNUMBER="bigNumber",fo.IPADDRESS="IPAddress",fo.EMAIL="email",fo.TIMESTAMP="timestamp",fo.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",fo.ATTRIBUTEREFERENCE="attributeReference",fo.UUID="UUID",fo.INTEGER="integer",fo.OAUTHGRANT="oAuthGrant",fo.NUMBER="number",fo.DEVICECONFIGMAP="DeviceConfigMap",fo.TEXTMAP="textMap",fo.WEBSOCKETSUBSCRIPTION="websocketSubscription",fo.BOOLEAN="boolean",fo.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",fo.FORECASTCONFIGURATION="forecastConfiguration",fo.TIMEDURATIONISO8601="timeDurationISO8601",fo.TIMESTAMPISO8601="timestampISO8601",fo.CONSOLEPROVIDERS="consoleProviders",fo.MULTIVALUEDTEXTMAP="multivaluedTextMap",fo.NEGATIVENUMBER="negativeNumber",fo.PARITYBIT="Paritybit",fo.JSON="JSON",fo.CRONEXPRESSION="CRONExpression",fo.INTEGERBYTE="integerByte",fo.AGENTLINK="agentLink",fo.DIRECTION="direction",fo.HOSTORIPADDRESS="hostOrIPAddress",fo.STOPBITS="Stopbits",fo.CALENDAREVENT="calendarEvent",fo.CONNECTIONSTATUS="connectionStatus",fo.VALUECONSTRAINT="valueConstraint",(fa=gf||(gf={})).MONTH="month",fa.MILE_SCANDINAVIAN="mile_scandinavian",fa.VAR="var",fa.OUNCE="ounce",fa.HECTARE="hectare",fa.YARD="yard",fa.YEAR="year",fa.GIGA="giga",fa.JOULE="joule",fa.VOLT="volt",fa.HERTZ="hertz",fa.MILE="mile",fa.DEGREE="degree",fa.KILO="kilo",fa.BTU="btu",fa.TERA="tera",fa.FOOT="foot",fa.MEGA="mega",fa.KELVIN="kelvin",fa.CARBON="carbon",fa.DECIBEL_ATTENUATED="decibel_attenuated",fa.INCH="inch",fa.SQUARED="squared",fa.PERCENTAGE="percentage",fa.IN_HG="inch_mercury",fa.CENTI="centi",fa.GRAM="gram",fa.CUBED="cubed",fa.DAY="day",fa.RADIAN="radian",fa.OHM="ohm",fa.MINUTE="minute",fa.PART_PER_MILLION="ppm",fa.AMP="amp",fa.MASS_POUND="pound",fa.KNOT="knot",fa.METRE="metre",fa.LITRE="litre",fa.FLUID_OUNCE="fluid_ounce",fa.HOUR="hour",fa.ACRE="acre",fa.CELSIUS="celsius",fa.RPM="rpm",fa.PASCAL="pascal",fa.DECIBEL="decibel",fa.LUMEN="lumen",fa.WEEK="week",fa.FAHRENHEIT="fahrenheit",fa.WATT="watt",fa.GALLON="gallon",fa.LUX="lux",fa.MILLI="milli",fa.BAR="bar",fa.HECTO="hecto",fa.PEAK="peak",fa.SECOND="second",fa.MICRO="micro",fa.PER="per",fa.STONE="stone",gg||(gg={});class tV{static getAssetDescriptors(){return tV._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=tV.getValueDescriptor(n)),i=n.jsonType?n:tV.getValueDescriptor(n.type)),!i&&t&&(i=tV.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}}tV._assetTypeInfos=[],tV._metaItemDescriptors=[],tV._valueDescriptors=[],i(44532);var tW=i(14867),tq=i.n(tW);i(83472);class tG{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 tK(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){if(Array.isArray(t))return t.every((t,i)=>tK(t,n[i]));let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>tK(t[i],n[i]))}return!1}function tX(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 tZ(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 tJ(t){return("string"==typeof t&&(t=tV.getAssetDescriptor(t)),t)?tY.t("label.asset."+t.name,{defaultValue:tX(t.name)}):""}function tQ(t,n){let i="string"==typeof t?tV.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:tV.resolveValueTypeFromValue(n),value:n}}function t0(t,n,i,r,o,a){let s=t4("label",t,n,i,o),l="";if(s||(s=tZ("label",t,n&&n.meta?n:void 0)),r&&(l=t3(t5("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?tX(i):void 0)}return s?s+(l?" ("+l+")":""):l}function t1(t,n,i,r,o,a){let s=t2(t?t.value:void 0,()=>t5("format",t,n,i,o),void 0,a),l=t5("units",t,n,i,!0);return r&&l&&l.length&&(s=t3(t5("units",t,n,i,o),s)),s}function t2(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||tY.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?tY.t("on"):tY.t("off")),r.asOpenClosed&&(o=t?tY.t("open"):tY.t("closed")),r.asPressedReleased&&(o=t?tY.t("pressed"):tY.t("released"));break;case"object":if(r.momentJsFormat)o=tq()(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||tY.language,r).format(t)}else o=Object(t).toString()}return o}function t3(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return tY.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(tY.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 t5(t,n,i,r,o){let a,s=[],l=t4(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=tZ(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=tV.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 t4(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 tY.t(l,{defaultValue:a||""})}function t6(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)}class t8{constructor(t){t&&Object.assign(this,t)}matches(t){var n,i,r,o,a,s,l;if((null==(n=this.ids)?void 0:n.length)&&(!t.id||!this.ids.includes(t.id))||(null==(i=this.types)?void 0:i.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(n=>!n.id||t.parentId===n.id))return!1;if(null==(a=this.paths)?void 0:a.length){let n=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var i;return(null!=(i=t.path)?i:[]).every((t,i)=>n[i]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(n=>t8._evalValuePredicate(t.name,n)))&&(!this.attributes||t8._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!t8._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?t8._collectNames(this.attributes):[]}static _evalValuePredicate(t,n){var i;switch(n.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==n.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==n.caseSensitive?n.value:null==(i=n.value)?void 0:i.toLowerCase();switch(n.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return n.negate?!r:r}case"boolean":return t===n.value;case"number":{let i;if("number"!=typeof t)return!1;switch(n.operator){case"GREATER_THAN":i=t>n.value;break;case"GREATER_EQUALS":i=t>=n.value;break;case"LESS_THAN":i=t<n.value;break;case"LESS_EQUALS":i=t<=n.value;break;case"BETWEEN":i=t>=n.value&&t<=n.rangeValue;break;default:i=t===n.value}return n.negate?!i:i}}return!1}static _evalPredicate(t,n){var i,r;let o=null==(i=n.name)?void 0:i.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!n.negated;let s=!n.value||t8._evalValuePredicate(a.value,n.value);return n.negated?!s:s}static _evalGroup(t,n){var i,r,o;let a=null!=(i=n.operator)?i:"AND",s=[...(null!=(r=n.items)?r:[]).map(n=>t8._evalPredicate(t,n)),...(null!=(o=n.groups)?o:[]).map(n=>t8._evalGroup(t,n))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var n,i;return[...(null!=(n=t.items)?n:[]).map(t=>{var n;return null==(n=t.name)?void 0:n.value}).filter(t=>!!t),...(null!=(i=t.groups)?i:[]).flatMap(t=>t8._collectNames(t))]}}t8._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var t7=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 t9=i(74461);class ne{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=ne._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let 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=o0.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 t7(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return t7(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 t7(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().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return t7(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 t7(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 tG,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(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>t7(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),n(t)}}))})}_sendRegistration(t){return t7(this,void 0,void 0,function*(){this._normaliseRegistration();let n=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(i){if(t&&n&&ne._isStaleRegistrationResponse(i)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw i}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let n=t&&t.response?t.response.status:void 0;return 403===n||409===n}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return t7(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:t9.name,version:t9.version,platform:t9.os.toString(),apps:[],model:((t9.manufacturer?t9.manufacturer+" ":"")+(t9.product?t9.product:"")).trim()}}_initialiseProvider(t){return t7(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 nt(t,n){return function(){return t.apply(n,arguments)}}let{toString:nn}=Object.prototype,{getPrototypeOf:ni}=Object,{iterator:nr,toStringTag:no}=Symbol,na=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),ns=t=>"string"==typeof t&&("__proto__"===t||"constructor"===t||"prototype"===t),nl=(t,n,i)=>t===Object.prototype||!i&&null===n,nc=(t,n)=>{let i=t,r=[];for(;null!=i&&-1===r.indexOf(i);){r.push(i);let o=ni(i);if(nl(i,o,i===t))break;if(na(i,n))return!0;i=o}return!1},nd=(u=Object.create(null),t=>{let n=nn.call(t);return u[n]||(u[n]=n.slice(8,-1).toLowerCase())}),nu=t=>(t=t.toLowerCase(),n=>nd(n)===t),nh=t=>n=>typeof n===t,{isArray:nm}=Array,np=nh("undefined");function nf(t){return null!==t&&!np(t)&&null!==t.constructor&&!np(t.constructor)&&n_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let ng=nu("ArrayBuffer"),nb=nh("string"),n_=nh("function"),ny=nh("number"),nv=t=>null!==t&&"object"==typeof t,nx=t=>{if(!nv(t))return!1;let n=ni(t);return(null===n||n===Object.prototype||null===ni(n))&&!nc(t,no)&&!nc(t,nr)},nw=nu("Date"),nF=nu("File"),nk=nu("Blob"),nE=nu("FileList"),nC=nu("Set"),nT="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nA=void 0!==nT.FormData?nT.FormData:void 0,nS=nu("URLSearchParams"),[nM,nD,nL,nI]=["ReadableStream","Request","Response","Headers"].map(nu);function nR(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nm(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nf(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 nO(t,n){let i;if(nf(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 nP="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,n$=t=>!np(t)&&t!==nP,nB=(h="u">typeof Uint8Array&&ni(Uint8Array),t=>h&&t instanceof h),nN=nu("HTMLFormElement"),{propertyIsEnumerable:nz}=Object.prototype,nj=nu("RegExp"),nY=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nR(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},nH=nu("AsyncFunction"),nU=(po="function"==typeof setImmediate,pa=n_(nP.postMessage),po?setImmediate:pa?(ps=`axios@${Math.random()}`,pl=[],nP.addEventListener("message",({source:t,data:n})=>{t===nP&&n===ps&&pl.length&&pl.shift()()},!1),t=>{pl.push(t),nP.postMessage(ps,"*")}):t=>setTimeout(t)),nV="u">typeof queueMicrotask?queueMicrotask.bind(nP):"u">typeof process&&process.nextTick||nU,nW=t=>null!=t&&n_(t[nr]),nq={isArray:nm,isArrayBuffer:ng,isBuffer:nf,isFormData:t=>{if(!t)return!1;if(nA&&t instanceof nA)return!0;let n=ni(t);if(!n||n===Object.prototype||!n_(t.append))return!1;let i=nd(t);return"formdata"===i||"object"===i&&n_(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ng(t.buffer)},isString:nb,isNumber:ny,isBoolean:t=>!0===t||!1===t,isObject:nv,isPlainObject:nx,isEmptyObject:t=>{if(!nv(t)||nf(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nM,isRequest:nD,isResponse:nL,isHeaders:nI,isUndefined:np,isDate:nw,isFile:nF,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nk,isRegExp:nj,isFunction:n_,isStream:t=>nv(t)&&n_(t.pipe),isURLSearchParams:nS,isTypedArray:nB,isFileList:nE,forEach:nR,merge:function t(...n){let{caseless:i,skipUndefined:r}=n$(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&"string"==typeof a&&nO(o,a)||a,l=na(o,s)?o[s]:void 0;nx(l)&&nx(n)?o[s]=t(l,n):nx(n)?o[s]=t({},n):nm(n)?o[s]=n.slice():r&&np(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++){let i=n[t];if(!i||nf(i)||(nR(i,a),"object"!=typeof i||nm(i)))continue;let r=Object.getOwnPropertySymbols(i);for(let t=0;t<r.length;t++){let n=r[t];nz.call(i,n)&&a(i[n],n)}}return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nR(n,(n,r)=>{i&&n_(n)?Object.defineProperty(t,r,{__proto__:null,value:nt(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,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&&ni(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nd,kindOfTest:nu,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(nm(t))return t;let n=t.length;if(!ny(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nr]).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:nN,hasOwnProperty:na,hasOwnProp:na,hasOwnInPrototypeChain:nc,getSafeProp:(t,n)=>null!=t&&nc(t,n)?t[n]:void 0,toSafeFlatObject:t=>{if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let n=ni(t);if(null===n&&(t=>{if(!Object.isExtensible(t))return!1;let n=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&n.push(...Object.getOwnPropertySymbols(t)),n.every(n=>{if(ns(n))return!1;let i=Object.getOwnPropertyDescriptor(t,n);return!!i&&i.configurable&&!0===i.writable})})(t))return t;let i=Object.create(null),r=Object.create(null),o=[],a=t;for(;null!=a&&-1===o.indexOf(a);){o.push(a);let s=a===t?n:ni(a);if(nl(a,s,a===t))break;let l=Object.getOwnPropertyNames(a);for(let n of(Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a)),l))!ns(n)&&(na(r,n)||(i[n]=t[n],r[n]=!0));a=s}return i},reduceDescriptors:nY,freezeMethods:t=>{nY(t,(n,i)=>{if(n_(t)&&["arguments","caller","callee"].includes(i))return!1;if(n_(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(nm(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:nO,global:nP,isContextDefined:n$,isSpecCompliantForm:function(t){return!!(t&&n_(t.append)&&"FormData"===t[no]&&t[nr])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(nv(t)){if(n.has(t))return;if(nf(t))return t;if(!("toJSON"in t)){let r;if(n.add(t),nC(t))for(let n of(r=[],t)){let t=i(n);np(t)||r.push(t)}else r=nm(t)?[]:{},nR(t,(t,n)=>{let o=i(t);np(o)||(r[n]=o)});return n.delete(t),r}}return t};return i(t)},isAsyncFn:nH,isThenable:t=>t&&(nv(t)||n_(t))&&n_(t.then)&&n_(t.catch),setImmediate:nU,asap:nV,isIterable:nW,isSafeIterable:t=>null!=t&&nc(t,nr)&&nW(t)},nG=nq.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"]),nK=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nX=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nZ(t,n){return nq.isArray(t)?t.map(t=>nZ(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function nJ(t){let n=Object.create(null);return nq.forEach(t.toJSON(),(t,i)=>{n[i]=nZ(t,nX)}),n}let nQ=Symbol("internals");function n0(t){return t&&String(t).trim().toLowerCase()}function n1(t){return!1===t||null==t?t:nq.isArray(t)?t.map(n1):nZ(String(t),nK)}let n2=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function n3(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}function n5(t,n,i,r,o){if(nq.isFunction(r))return r.call(this,n,i);if(o&&(n=i),nq.isString(n)){if(nq.isString(r))return -1!==n.indexOf(r);if(nq.isRegExp(r))return r.test(n)}}class n4{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=n0(n);if(!o)return;let a=nq.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=n1(t))}let a=(t,n)=>nq.forEach(t,(t,i)=>o(t,i,n));if(nq.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(nq.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();let n=nq.hasOwnProp(l,i);!i||n&&nq.hasOwnProp(nG,i)||("set-cookie"===i?n?l[i].push(r):l[i]=[r]:l[i]=n?l[i]+", "+r:r)}),l),n)}else if(nq.isObject(t)&&nq.isSafeIterable(t)){let i=Object.create(null),r,o;for(let n of t){if(!nq.isArray(n))throw TypeError("Object iterator must return a key-value pair");o=n[0],nq.hasOwnProp(i,o)?(r=i[o],i[o]=nq.isArray(r)?[...r,n[1]]:[r,n[1]]):i[o]=n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=n0(t)){let i=nq.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(nq.isFunction(n))return n.call(this,t,i);if(nq.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=n0(t)){let i=nq.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||n5(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=n0(t)){let o=nq.findKey(i,t);o&&(!n||n5(i,i[o],o,n))&&(delete i[o],r=!0)}}return nq.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||n5(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return nq.forEach(this,(r,o)=>{let a=nq.findKey(i,o);if(a){n[a]=n1(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]=n1(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return nq.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&nq.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(){let t=this.get("set-cookie");return nq.isArray(t)?t:null==t||!1===t?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return function(t){let n=Object.create(null),i=String(t),r=0,o=!1,a=!1;function s(t){let o=n3(i.slice(r,t)),a=o.indexOf("=");if(a<1)return;let s=n3(o.slice(0,a));if(!n2.test(s))return;let l=s.toLowerCase();if("__proto__"===l||"constructor"===l||"prototype"===l)return;let c=n3(o.slice(a+1));n[l]=function(t){let n=t.length-1;if(n<1||34!==t.charCodeAt(0)||34!==t.charCodeAt(n))return t;let i="";for(let r=1;r<n;r++){let o=t.charCodeAt(r);if(34===o||92===o&&(r+=1)>=n)return t;i+=t[r]}return i}(c)}for(let t=0;t<i.length;t++){let n=i.charCodeAt(t);o?a?a=!1:92===n?a=!0:34===n&&(o=!1):34===n?o=!0:(44===n||59===n)&&(s(t),r=t+1)}return s(i.length),n}(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[nQ]=this[nQ]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=n0(t);if(!n[r]){let o;o=nq.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return nq.isArray(t)?t.forEach(r):r(t),this}}n4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nq.reduceDescriptors(n4.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),nq.freezeMethods(n4);let n6="[REDACTED ****]";function n8(t){try{return String(t)}catch(t){return""}}class n7 extends Error{static from(t,n,i,r,o,a){let s=t.message;!s&&nq.isArray(t.errors)&&t.errors.length&&(s=t.errors.map(t=>{try{return t&&t.message?n8(t.message):n8(t)}catch(t){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError");let l=new n7(s,n||t.code,i,r,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&nq.hasOwnProp(r,"redact")?r.redact:void 0,a=nq.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||nq.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof n4&&(r=r.toJSON()),n.push(r),nq.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);nq.isUndefined(r)||(o[n]=r)});else{if(!nq.isPlainObject(r)&&function(t){if(nq.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(nq.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?n6:i(a);nq.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):nq.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}}n7.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",n7.ERR_BAD_OPTION="ERR_BAD_OPTION",n7.ECONNABORTED="ECONNABORTED",n7.ETIMEDOUT="ETIMEDOUT",n7.ECONNREFUSED="ECONNREFUSED",n7.ERR_NETWORK="ERR_NETWORK",n7.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",n7.ERR_DEPRECATED="ERR_DEPRECATED",n7.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",n7.ERR_BAD_REQUEST="ERR_BAD_REQUEST",n7.ERR_CANCELED="ERR_CANCELED",n7.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",n7.ERR_INVALID_URL="ERR_INVALID_URL",n7.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let n9=n7;function ie(t){return nq.isPlainObject(t)||nq.isArray(t)}function it(t){return nq.endsWith(t,"[]")?t.slice(0,-2):t}function ii(t,n,i){return t?t.concat(n).map(function(t,n){return t=it(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ir=nq.toFlatObject(nq,{},null,function(t){return/^is[A-Z]/.test(t)}),io=function(t,n,i){if(!nq.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(t,n)=>{let r=nq.getSafeProp(i,t);return nq.isUndefined(r)?n:r},o=r("metaTokens",!0),a=r("visitor")||f,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||"u">typeof Blob&&Blob,d=r("maxDepth",100),u=c&&nq.isSpecCompliantForm(n),h=[];if(!nq.isFunction(a))throw TypeError("visitor must be a function");function m(t){if(null===t)return"";if(nq.isDate(t))return t.toISOString();if(nq.isBoolean(t))return t.toString();if(!u&&nq.isBlob(t))throw new n9("Blob is not supported. Use a Buffer instead.");if(nq.isArrayBuffer(t)||nq.isTypedArray(t)){if(u&&"function"==typeof c)return new c([t]);throw new n9("Blob is not supported. Use a Buffer instead.",n9.ERR_NOT_SUPPORT)}return t}function p(t){if(t>d)throw new n9("Object is too deeply nested ("+t+" levels). Max depth: "+d,n9.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(t,i,r){let a=t;if(nq.isReactNative(n)&&nq.isReactNativeBlob(t))return n.append(ii(r,i,s),m(t)),!1;if(t&&!r&&"object"==typeof t)if(nq.endsWith(i,"{}"))i=o?i:i.slice(0,-2),t=function(t){if(1/0===d)return JSON.stringify(t);let n=[];return JSON.stringify(t,function(t,i){if(!nq.isObject(i))return i;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(i),p(1+n.length-1),i})}(t);else{var c;if(nq.isArray(t)&&(c=t,nq.isArray(c)&&!c.some(ie))||(nq.isFileList(t)||nq.endsWith(i,"[]"))&&(a=nq.toArray(t)))return i=it(i),a.forEach(function(t,r){nq.isUndefined(t)||null===t||n.append(!0===l?ii([i],r,s):null===l?i:i+"[]",m(t))}),!1}return!!ie(t)||(n.append(ii(r,i,s),m(t)),!1)}let g=Object.assign(ir,{defaultVisitor:f,convertValue:m,isVisitable:ie});if(!nq.isObject(t))throw TypeError("data must be an object");return!function t(i,r,o=0){if(!nq.isUndefined(i)){if(p(o),-1!==h.indexOf(i))throw Error("Circular reference detected in "+r.join("."));h.push(i),nq.forEach(i,function(i,s){!0===(!(nq.isUndefined(i)||null===i)&&a.call(n,i,nq.isString(s)?s.trim():s,r,g))&&t(i,r?r.concat(s):[s],o+1)}),h.pop()}}(t),n};function ia(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function is(t,n){this._pairs=[],t&&io(t,this,n)}let il=is.prototype;function ic(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function id(t,n,i){let r;if(!n)return t;t=t||"";let o=nq.isFunction(i)?{serialize:i}:i,a=nq.getSafeProp(o,"encode")||ic,s=nq.getSafeProp(o,"serialize");if(r=s?s(n,o):nq.isURLSearchParams(n)?n.toString():new is(n,o).toString(a)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}il.append=function(t,n){this._pairs.push([t,n])},il.toString=function(t){let n=t?n=>t.call(this,n,ia):ia;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let iu=Symbol("internals");function ih(t){return t?t.length:0}function im(t){if(t)for(;t.length&&null===t[t.length-1];)t.pop()}function ip(t,n){let i=t.handlers,r=ih(i);i!==n.handlersRef?(n.handlersRef=i,n.handlerEntries.clear()):r!==n.handlersLength&&(r?n.handlerEntries.forEach(function(t,r){i[t.index]!==t.handler&&n.handlerEntries.delete(r)}):n.handlerEntries.clear()),n.handlersLength=r}let ig=class{constructor(){this.handlers=[],this[iu]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,i){let r={fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null},o=this[iu];null==this.handlers&&(this.handlers=[]),ip(this,o);let a=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,a}eject(t){let n=this[iu];ip(this,n);let i=n.handlerEntries.get(t);if(i){if(n.handlerEntries.delete(t),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,n.iterationDepth||(im(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],ip(this,this[iu]))}forEach(t){let n=this[iu];ip(this,n),n.iterationDepth++;try{nq.forEach(this.handlers,function(n){null!==n&&t(n)})}finally{--n.iterationDepth||(ip(this,n),im(this.handlers),n.handlersLength=ih(this.handlers))}}},ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},i_="u">typeof URLSearchParams?URLSearchParams:is,iy="u">typeof FormData?FormData:null,iv="u">typeof Blob?Blob:null,ix="u">typeof window&&"u">typeof document,iw="object"==typeof navigator&&navigator||void 0,iF=ix&&(!iw||0>["ReactNative","NativeScript","NS"].indexOf(iw.product)),ik="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iE=ix&&window.location.href||"http://localhost",iC={...E,isBrowser:!0,classes:{URLSearchParams:i_,FormData:iy,Blob:iv},protocols:["http","https","file","blob","url","data"]};function iT(t){if(t>100)throw new n9("FormData field is too deeply nested ("+t+" levels). Max depth: 100",n9.ERR_FORM_DATA_DEPTH_EXCEEDED)}let iA=function(t){if(nq.isFormData(t)&&nq.isFunction(t.entries)){let n={};return nq.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){iT(o);let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&nq.isArray(r)?r.length:a,l)?nq.hasOwnProp(r,a)?r[a]=nq.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(nq.hasOwnProp(r,a)&&nq.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&nq.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}(function(t){let n,i=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(n=r.exec(t));)iT(i.length),i.push("[]"===n[0]?"":n[1]||n[0]);return i}(t),i,n,0)}),n}return null},iS=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),iM=(t,n)=>null!=t&&nq.hasOwnProp(t,n)?t[n]:void 0,iD={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=nq.isObject(t);if(a&&nq.isHTMLForm(t)&&(t=new FormData(t)),nq.isFormData(t))return o?JSON.stringify(iA(t)):t;if(nq.isArrayBuffer(t)||nq.isBuffer(t)||nq.isStream(t)||nq.isFile(t)||nq.isBlob(t)||nq.isReadableStream(t))return t;if(nq.isArrayBufferView(t))return t.buffer;if(nq.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=iM(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return io(t,new iC.classes.URLSearchParams,{visitor:function(t,n,i,r){return iC.isNode&&nq.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=nq.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=iM(this,"env"),o=r&&r.FormData;return io(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(nq.isString(s))try{return(0,JSON.parse)(s),nq.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=iM(this,"transitional")||iD.transitional,i=n&&n.forcedJSONParsing,r=iM(this,"responseType"),o="json"===r;if(nq.isResponse(t)||nq.isReadableStream(t))return t;if(t&&nq.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,iM(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw n9.from(t,n9.ERR_BAD_RESPONSE,this,null,iM(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iC.classes.FormData,Blob:iC.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iL(t,n){let i=this||iD,r=n||i,o=n4.from(r.headers),a=r.data;return nq.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iI(t){return!!(t&&t.__CANCEL__)}nq.forEach(iS,t=>{iD.headers[t]={}});let iR=class extends n9{constructor(t,n,i){super(null==t?"canceled":t,n9.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iO(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new n9("Request failed with status code "+i.status,i.status>=400&&i.status<500?n9.ERR_BAD_REQUEST:n9.ERR_BAD_RESPONSE,i.config,i.request,i))}let iP=/[\t\n\r]/g;function i$(t){if("string"!=typeof t)return t;let n=0;for(;n<t.length&&32>=t.charCodeAt(n);)n++;return t.slice(n).replace(iP,"")}function iB(t){let n=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return n&&n[1]||""}let iN=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}},iz=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),(...t)=>s(t)]},ij=(t,n,i=3)=>{let r=0,o=iN(50,250);return iz(i=>{if(!i||!nq.isNumber(i.loaded))return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=Math.max(0,null!=s?Math.min(a,s):a),c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iY=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iH=(t,n=nq.asap)=>(...i)=>n(()=>t(...i)),iU=iC.hasStandardBrowserEnv?(m=new URL(iC.origin),p=iC.navigator&&/(msie|trident)/i.test(iC.navigator.userAgent),t=>(t=new URL(t,iC.origin),m.protocol===t.protocol&&m.host===t.host&&(p||m.port===t.port))):()=>!0,iV=iC.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];nq.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),nq.isString(r)&&l.push(`path=${r}`),nq.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nq.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},iW=/^https?:(?!\/\/)/i;function iq(t,n){if("string"==typeof t){let r=i$(t);if(iW.test(r)){var i;let t,o,a;throw new n9(`Invalid URL ${JSON.stringify((a=(-1===(o=(t=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${n6}@`)).indexOf("#"))?t:t.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${n6}`),-1===o?a:`${a}#${!(i=t.slice(o+1))?i:i.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,i="")=>`${n}${i}${n6}`)}`))}: missing "//" after protocol`,n9.ERR_INVALID_URL,n)}}}function iG(t,n,i,r){iq(n,r);let o=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));if(t&&(o||!1===i)){iq(t,r);if(!n)return t;let i=t.length;for(;i>0&&47===t.charCodeAt(i-1);)i--;return t.slice(0,i)+"/"+n.replace(/^\/+/,"")}return n}let iK=t=>t instanceof n4?{...t}:t;function iX(t,n){var i;t=t||{},n=n||{};let r=Object.create(null);function o(t,n,i,r){return nq.isPlainObject(t)&&nq.isPlainObject(n)?nq.merge.call({caseless:r},t,n):nq.isPlainObject(n)?nq.merge({},n):nq.isArray(n)?n.slice():n}function a(t,n,i,r){return nq.isUndefined(n)?nq.isUndefined(t)?void 0:o(void 0,t,i,r):o(t,n,i,r)}function s(t,n){if(!nq.isUndefined(n))return o(void 0,n)}function l(t,n){return nq.isUndefined(n)?nq.isUndefined(t)?void 0:o(void 0,t):o(void 0,n)}function c(i,r,a){return nq.hasOwnProp(n,a)?o(i,r):nq.hasOwnProp(t,a)?o(void 0,i):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:c,headers:(t,n,i)=>a(iK(t),iK(n),i,!0)};return nq.forEach((i={...t,...n},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(i).concat(Object.getOwnPropertySymbols(i).filter(t=>Object.getOwnPropertyDescriptor(i,t).enumerable)):Object.keys(i)),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let o=nq.hasOwnProp(d,i)?d[i]:a,s=o(nq.hasOwnProp(t,i)?t[i]:void 0,nq.hasOwnProp(n,i)?n[i]:void 0,i);nq.isUndefined(s)&&o!==c||(r[i]=s)}),nq.hasOwnProp(n,"validateStatus")&&nq.isUndefined(n.validateStatus)&&!1===function(i){let r=nq.hasOwnProp(n,"transitional")?n.transitional:void 0;if(!nq.isUndefined(r)){if(!nq.isPlainObject(r))return;else if(nq.hasOwnProp(r,i))return r[i]}let o=nq.hasOwnProp(t,"transitional")?t.transitional:void 0;if(nq.isPlainObject(o)&&nq.hasOwnProp(o,i))return o[i]}("validateStatusUndefinedResolves")&&(nq.hasOwnProp(t,"validateStatus")?r.validateStatus=o(void 0,t.validateStatus):delete r.validateStatus),r}let iZ=["content-type","content-length"],iJ=function(t){let n=iX({},t),i=t=>nq.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),u=i("allowAbsoluteUrls"),h=i("url");if(n.headers=l=n4.from(l),n.url=id(iG(d,h,u,n),i("params"),i("paramsSerializer")),c){let n=nq.getSafeProp(c,"username")||"",i=nq.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(n+":"+(i?encodeURIComponent(i).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):"")))}catch(n){throw n9.from(n,n9.ERR_BAD_OPTION_VALUE,t)}}if(nq.isFormData(r)){let t=nq.getSafeProp(r,"getHeaders");if(iC.hasStandardBrowserEnv||iC.hasStandardBrowserWebWorkerEnv||nq.isReactNative(r))l.setContentType(void 0);else{var m,p;nq.isFunction(t)&&(m=l,p=t.call(r),"content-only"!==i("formDataHeaderPolicy")?m.set(p):Object.entries(p||{}).forEach(([t,n])=>{iZ.includes(t.toLowerCase())&&m.set(t,n)}))}}if(iC.hasStandardBrowserEnv&&(nq.isFunction(o)&&(o=o(n)),!0===o||null==o&&iU(n.url))){let t=a&&s&&iV.read(s);t&&l.set(a,t)}return n},iQ="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){let r,o,a,s,l,c,d=iJ(t),u=d.data,h=n4.from(d.headers).normalize(),{responseType:m,onUploadProgress:p,onDownloadProgress:f}=d;function g(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let b=new XMLHttpRequest;function _(r){if(!b)return;if(0===b.status&&"file"!==(iB(i$(d.url))||iB(iC.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){i(new n9("Request aborted",n9.ECONNABORTED,t,b)),g(),b=null;return}try{r?c&&c(r):l&&l()}catch(t){setTimeout(()=>{throw t})}if(!b)return;let o=n4.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());iO(function(t){n(t),g()},function(t){i(t),g()},{data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:o,config:t,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(i(new n9("Request aborted",n9.ECONNABORTED,t,b)),g(),b=null)},b.onerror=function(n){let r=new n9(n&&n.message?n.message:"Network Error",n9.ERR_NETWORK,t,b);r.event=n||null,i(r),g(),b=null},b.ontimeout=function(){let n=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",r=d.transitional||ib;d.timeoutErrorMessage&&(n=d.timeoutErrorMessage),i(new n9(n,r.clarifyTimeoutError?n9.ETIMEDOUT:n9.ECONNABORTED,t,b)),g(),b=null},void 0===u&&h.setContentType(null),"setRequestHeader"in b&&nq.forEach(nJ(h),function(t,n){b.setRequestHeader(n,t)}),nq.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),m&&"json"!==m&&(b.responseType=d.responseType),f&&([a,l,c]=ij(f,!0),b.addEventListener("progress",a)),p&&b.upload&&([o,s]=ij(p),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(r=n=>{b&&(i(!n||n.type?new iR(null,t,b):n),b.abort(),g(),b=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=iB(d.url);if(y&&!iC.protocols.includes(y)){i(new n9("Unsupported protocol "+y+":",n9.ERR_BAD_REQUEST,t)),g();return}b.send(u||null)})},i0=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},i1=async function*(t,n){for await(let i of i2(t))yield*i0(i,n)},i2=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()}},i3=(t,n,i,r)=>{let o,a=i1(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})},i5=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,i4=(t,n,i)=>n+2<i&&i5(t.charCodeAt(n+1))&&i5(t.charCodeAt(n+2)),i6=t=>t<=57?t-48:(223&t)-55,i8=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||43===t||47===t||45===t||95===t,i7=t=>9===t||10===t||12===t||13===t||32===t,i9=t=>{var n;let i,r,o=t.length,a=0,s=0,l=!1;for(let n=0;n<o;n++){let i=t.charCodeAt(n);if(37===i&&i4(t,n,o)&&(i=16*i6(t.charCodeAt(n+1))+i6(t.charCodeAt(n+2)),n+=2),!i7(i)){if(61===i){s++;continue}if(!i8(i)||s>0){l=!0;continue}a++}}if(l||s>2||s>0&&(a+s)%4!=0||a%4==1){let n,i;return n=t.length,i=0,n>0&&61===t.charCodeAt(n-1)&&(i++,n>1&&61===t.charCodeAt(n-2)&&i++),Math.floor((n-i)*3/4)}return i=Math.floor((n=a)/4),3*i+(2==(r=n%4)?1:2*(3===r))},re={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:rt}=nq,rn=t=>{if(!nq.isString(t))return t;try{return decodeURIComponent(t)}catch(n){return t}},ri=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},rr=t=>{let n,i=void 0!==nq.global&&null!==nq.global?nq.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=nq.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),m=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),p=d&&h&&ri(()=>{let t=!1,n=new s(iC.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=u&&h&&ri(()=>nq.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new n9(`Response type '${t}' is not supported`,n9.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(nq.isBlob(t))return t.size;if(nq.isSpecCompliantForm(t)){let n=new s(iC.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return nq.isArrayBufferView(t)||nq.isArrayBuffer(t)?t.byteLength:(nq.isURLSearchParams(t)&&(t+=""),nq.isString(t))?(await m(t)).byteLength:void 0},_=async(t,n)=>{let i=nq.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:u,cancelToken:m,timeout:y,onDownloadProgress:v,onUploadProgress:x,responseType:w,headers:F,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:C,maxBodyLength:T,maxRedirects:A}=iJ(t),S=nq.isNumber(C)&&C>-1,M=nq.isNumber(T)&&T>-1,D=a||fetch;w=w?(w+"").toLowerCase():"text";let L=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof n9?n:new iR(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new n9(`timeout of ${n}ms exceeded`,n9.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=>{if(!r){if(t.aborted)return void o.call(t);t.addEventListener("abort",o,{once:!0})}});let{signal:l}=i;return l.unsubscribe=()=>nq.asap(s),l})([u,m&&m.toAbortSignal()],y),I=null,R=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),O=null,P=()=>new n9("Request body larger than maxBodyLength limit",n9.ERR_BAD_REQUEST,t,I);try{var $,B;let a,u,m,y,N=(u="auth",nq.hasOwnProp(t,u)?t[u]:void 0);if(N){let t=nq.getSafeProp(N,"username")||"",n=nq.getSafeProp(N,"password")||"";a={username:t,password:n}}if(m=($=i).indexOf("://"),y=$,-1!==m&&(y=y.slice(m+3)),y.includes("@")||y.includes(":")){let t=new URL(i,iC.origin);if(!a&&(t.username||t.password)){let n=rn(t.username),i=rn(t.password);a={username:n,password:i}}(t.username||t.password)&&(t.username="",t.password="",i=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))))))}if(S&&"string"==typeof i&&i.startsWith("data:")){let n;if(B=i,n="string"==typeof B?B.indexOf("#"):-1,((t,n)=>{if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let i=t.indexOf(",");if(i<0)return 0;let r=t.slice(5,i),o=t.slice(i+1);if(/;base64/i.test(r))return n(o);let a=0;for(let t=0,n=o.length;t<n;t++){let i=o.charCodeAt(t);if(37===i&&i4(o,t,n))a+=1,t+=2;else if(i<128)a+=1;else if(i<2048)a+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=o.charCodeAt(t+1);n>=56320&&n<=57343?(a+=4,t++):a+=3}else a+=3}return a})(-1===n?B:B.slice(0,n),i9)>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}if(M&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(n=t,t>T))throw P()}let z=M&&(nq.isReadableStream(c)||nq.isStream(c)),j=(t,n,i)=>i3(t,65536,t=>{if(M&&t>T)throw O=P();n&&n(t)},i);if(p&&"get"!==r&&"head"!==r&&(x||z)){if(n=null==n?await _(F,c):n,0!==n||z){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(nq.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,i]=x&&iY(n,ij(iH(x)))||[];c=j(r.body,t,i)}}}else if(z&&!d&&h&&"get"!==r&&"head"!==r)c=j(c);else if(z&&d&&!p&&"get"!==r&&"head"!==r)throw new n9("Stream request bodies are not supported by the current fetch implementation",n9.ERR_NOT_SUPPORT,t,I);nq.isString(k)||(k=k?"include":"omit");let Y=d&&"credentials"in s.prototype;if(nq.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.20.0",!1);let H=null==E?E:Object.assign(Object.create(null),E);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let U=Object.assign(Object.create(null),H,{signal:L,method:r.toUpperCase(),headers:nJ(F.normalize()),body:c,duplex:"half",credentials:Y?k:void 0});d&&(nq.forEach(re,(t,n)=>{void 0===U[n]&&(U[n]=t)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===A&&(U.redirect="manual",H&&(H.redirect="manual")),I=d&&new s(i,U);let V=await (d?D(I,H):D(i,U)),W=n4.from(V.headers);if(S){let n=nq.toFiniteNumber(W.getContentLength());if(null!=n&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}let q=f&&("stream"===w||"response"===w);if(f&&V.body&&(v||S||q&&R)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=V[t]});let i=nq.toFiniteNumber(W.getContentLength()),[r,o]=v&&iY(i,ij(iH(v),!0))||[];V=new l(i3(V.body,65536,n=>{if(S&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I);r&&r(n)},()=>{o&&o(),R&&R()}),n)}w=w||"text";let G=await g[nq.findKey(g,w)||"text"](V,t);if(S&&!f&&!q){let n;if(null!=G&&("number"==typeof G.byteLength?n=G.byteLength:"number"==typeof G.size?n=G.size:"string"==typeof G&&(n="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof n&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}return!q&&R&&R(),await new Promise((n,i)=>{iO(n,i,{data:G,headers:n4.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:I})})}catch(n){if(R&&R(),L&&L.aborted&&L.reason instanceof n9){let i=L.reason;throw i.config=t,I&&(i.request=I),n!==i&&Object.defineProperty(i,"cause",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),i}if(O)throw I&&!O.request&&(O.request=I),O;if(n instanceof n9)throw I&&!n.request&&(n.request=I),n;if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message)){let i=new n9("Network Error",n9.ERR_NETWORK,t,I,n&&n.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:n.cause||n,writable:!0,enumerable:!1,configurable:!0}),i}throw n9.from(n,n&&n.code,t,I,n&&n.response)}}},ro=new Map,ra=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(n)),d=c;return c};ra();let rs={http:null,xhr:iQ,fetch:{get:ra}};nq.forEach(rs,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let rl=t=>`- ${t}`,rc=t=>nq.isFunction(t)||null===t||!1===t,rd=function(t,n){let i,r,{length:o}=t=nq.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!rc(i)&&void 0===(r=rs[(o=String(i)).toLowerCase()]))throw new n9(`Unknown adapter '${o}'`);if(r&&(nq.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 n9("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),n9.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iR(null,t)}function rh(t){let n=nq.toSafeFlatObject(t);return ru(n),n.headers=n4.from(nq.getSafeProp(n,"headers")),n.data=iL.call(n,n.transformRequest),-1!==["post","put","patch"].indexOf(n.method)&&n.headers.setContentType("application/x-www-form-urlencoded",!1),rd(n.adapter||iD.adapter,n)(n).then(function(t){ru(n),n.response=t;try{t.data=iL.call(n,n.transformResponse,t)}finally{delete n.response}return t.headers=n4.from(t.headers),t},function(t){if(!iI(t)&&(ru(n),t&&t.response)){n.response=t.response;try{t.response.data=iL.call(n,n.transformResponse,t.response)}finally{delete n.response}t.response.headers=n4.from(t.response.headers)}return Promise.reject(t)})}let rm={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rm[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rp={};rm.transitional=function(t,n,i){function r(t,n){return"[Axios v1.20.0] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new n9(r(o," has been removed"+(n?" in "+n:"")),n9.ERR_DEPRECATED);return n&&!rp[o]&&(rp[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)}},rm.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let rf=function(t,n,i){if("object"!=typeof t||null===t)throw new n9("options must be an object",n9.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new n9("option "+a+" must be "+i,n9.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new n9("Unknown option "+a,n9.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new ig,response:new ig}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error)try{let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack,r="";if("string"==typeof i){let t=i.indexOf("\n");r=-1===t?"":i.slice(t+1)}if(t.stack){if(r){let n=r.indexOf("\n"),i=-1===n?-1:r.indexOf("\n",n+1),o=-1===i?"":r.slice(i+1);String(t.stack).endsWith(o)||(t.stack+="\n"+r)}}else t.stack=r}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=iX(this.defaults,n);void 0!==o&&rf(o,{silentJSONParsing:rm.transitional(rm.boolean),forcedJSONParsing:rm.transitional(rm.boolean),clarifyTimeoutError:rm.transitional(rm.boolean),legacyInterceptorReqResOrdering:rm.transitional(rm.boolean),advertiseZstdAcceptEncoding:rm.transitional(rm.boolean),validateStatusUndefinedResolves:rm.transitional(rm.boolean)},!1),null!=a&&(nq.isFunction(a)?n.paramsSerializer={serialize:a}:rf(a,{encode:rm.function,serialize:rm.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rf(n,{baseUrl:rm.spelling("baseURL"),withXsrfToken:rm.spelling("withXSRFToken")},!0),n.method=(nq.getSafeProp(n,"method")||nq.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=s&&nq.merge(s.common,s[n.method]);s&&nq.forEach(iS.concat("common"),t=>{delete s[t]}),n.headers=n4.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||ib;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,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?t(m):m}catch(t){if(!n){i=Promise.reject(t);break}try{let r=n.call(this,t);nq.isThenable(r)&&(i=Promise.resolve(r).then(()=>rh.call(this,m)))}catch(t){i=Promise.reject(t)}break}}if(!i)try{i=rh.call(this,m)}catch(t){i=Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return id(iG((t=iX(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}nq.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(n,i){return this.request(iX(i||{},{method:t,url:n,data:i&&nq.hasOwnProp(i,"data")?i.data:void 0}))}}),nq.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(iX(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rg.prototype[t]=n(),"query"!==t&&(rg.prototype[t+"Form"]=n(!0))});let rb=class t{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 iR(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 n;return{token:new t(function(t){n=t}),cancel:n}}},r_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r_).forEach(([t,n])=>{void 0===r_[n]&&(r_[n]=t)});let ry=function t(n){let i=new rg(n),r=nt(rg.prototype.request,i);return nq.extend(r,rg.prototype,i,{allOwnKeys:!0}),nq.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iX(n,i))},r}(iD);ry.Axios=rg,ry.CanceledError=iR,ry.CancelToken=rb,ry.isCancel=iI,ry.VERSION="1.20.0",ry.toFormData=io,ry.AxiosError=n9,ry.Cancel=ry.CanceledError,ry.all=function(t){return Promise.all(t)},ry.spread=function(t){return function(n){return t.apply(null,n)}},ry.isAxiosError=function(t){return nq.isObject(t)&&!0===t.isAxiosError},ry.mergeConfig=iX,ry.AxiosHeaders=n4,ry.formToJSON=t=>iA(nq.isHTMLForm(t)?new FormData(t):t),ry.getAdapter=rd,ry.HttpStatusCode=r_,ry.default=ry;class rv{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rY`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rY`info`,options:t})}}class rx{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rY`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rY`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rY`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rY`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rY`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rY`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rY`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rY`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rY`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rY`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rY`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/${n}`,options:i})}}class rw{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rY`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rY`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rY`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rY`provisioning/${t}`,data:n,options:i})}}class rF{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`asset/predicted/${t}/${n}`,data:i,options:r})}}class rk{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rY`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rY`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rY`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rY`dashboard/${t}/${n}`,options:i})}}class rE{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rY`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rY`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rY`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rY`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rY`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rY`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rY`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rY`alarm/${t}/assets`,queryParams:n,options:i})}}class rC{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rY`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rY`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/status/${t}`,options:n})}}class rT{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rY`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rY`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rY`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rY`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rY`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rY`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rY`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rY`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rY`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rY`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rY`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rY`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rY`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rY`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`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:rY`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rY`asset/${t}/child`,queryParams:n,options:i})}}class rA{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rY`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rY`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rY`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rY`configuration/manager/image/${t}`,options:n})}}class rS{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rY`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rY`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rY`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rY`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rY`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rY`service/${t}/${n}`,options:i})}}class rM{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rY`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rY`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rY`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rY`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rY`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rY`map/upload`,queryParams:t,options:n})}}class rD{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rY`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rY`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rL{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rY`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rY`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rY`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rY`syslog/event`,queryParams:t,options:n})}}class rI{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rY`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rY`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rY`flow/${t}`,options:n})}}class rR{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rY`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rY`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rY`notification/alert`,data:t,options:n})}getNotificationsCount(t,n){return this.httpClient.request({method:"GET",url:rY`notification/count`,queryParams:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rY`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rY`notification/${t}/delivered`,queryParams:n,options:i})}}class rO{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rY`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rY`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rY`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rY`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rY`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rY`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rY`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/${t}`,data:n,options:i})}}class rP{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rY`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rY`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rY`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/valueDescriptors`,queryParams:t,options:n})}}class r${constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rY`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rB{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rY`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rY`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rY`apps/info`,options:t})}}class rN{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rY`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rY`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rY`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rY`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`realm/${t}`,data:n,options:i})}}class rz{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rY`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rY`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rj{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rY`console/register`,data:t,options:n})}}function rY(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 rH{constructor(t,n=ry.create()){this._statusResource=new rV(t,n),this._userResource=new rW(t,n),this._provisioningResource=new rq(t,n),this._assetPredictedDatapointResource=new rG(t,n),this._dashboardResource=new rK(t,n),this._alarmResource=new rX(t,n),this._gatewayClientResource=new rZ(t,n),this._assetResource=new rJ(t,n),this._configurationResource=new rQ(t,n),this._externalServiceResource=new r0(t,n),this._mapResource=new r1(t,n),this._assetDatapointResource=new r2(t,n),this._syslogResource=new r3(t,n),this._flowResource=new r5(t,n),this._notificationResource=new r4(t,n),this._rulesResource=new r6(t,n),this._assetModelResource=new r8(t,n),this._gatewayServiceResource=new r7(t,n),this._appResource=new r9(t,n),this._realmResource=new oe(t,n),this._agentResource=new ot(t,n),this._consoleResource=new on(t,n),this._assetResource=new rJ(t,n)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class rU{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 rV extends rv{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rW extends rx{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rq extends rw{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rG extends rF{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rK extends rk{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rX extends rE{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rZ extends rC{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rJ extends rT{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rQ extends rA{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r0 extends rS{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r1 extends rM{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r2 extends rD{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r3 extends rL{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r5 extends rI{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r4 extends rR{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r6 extends rO{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r8 extends rP{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r7 extends r${constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r9 extends rB{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class oe extends rN{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class ot extends rz{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class on extends rj{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}var oi=i(88183),or=i.n(oi);ry.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=ry.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rH(t,this._axiosInstance)}};var oa=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())})};(fs=gb||(gb={})).DISCONNECTED="DISCONNECTED",fs.CONNECTED="CONNECTED",fs.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=gb.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(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===gb.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(gb.CONNECTING),this._connectingDeferred=new tG,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(gb.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==gb.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new tG};return null!=this._pendingSubscription||this._status!==gb.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(console.error(t),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 oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===gb.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==gb.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let 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===o0.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 oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let 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===o0.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===gb.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===gb.CONNECTED&&this._onStatusChanged(gb.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(gb.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new tG,(o0.authenticated?o0.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(os)){let t=JSON.parse(n.substring(os.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(ol)){let t=JSON.parse(n.substring(ol.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(oc)){let t=JSON.parse(n.substring(oc.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(od)){let t=JSON.parse(n.substring(od.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 tG,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=od+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 tG;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(od+JSON.stringify(t)),n.promise}}oh._subscriptionCounter=1;let om=["__proto__","constructor","prototype"];function op(t){return!("string"!=typeof t||0===t.length||t.length>128||om.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%:\s]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!op(t)||t.indexOf("/")>-1||t.indexOf("@")>-1)}let og={lng:of,ns:function(t){return!(!op(t)||t.indexOf("//")>-1)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function o_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let oy=/\{\{(.+?)\}\}/g;function ov(t,n){let i=!1,r=t.replace(oy,(t,r)=>{let o=r.trim();if(om.indexOf(o)>-1)return t;let a=n[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let n of l)if(!s(n))return i=!0,t;return l.join("+")});return i?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=o_()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,ok=["__proto__","constructor","prototype"],oE=(t,n)=>{if(n&&"object"==typeof n){let i="";for(let t of Object.keys(n))ok.indexOf(t)>-1||(i+="&"+encodeURIComponent(t)+"="+encodeURIComponent(n[t]));if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oC=(n,i,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(n=>{r(null,{status:t.status,data:n})}).catch(r)};if(o){let t=o(n,i);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(n,i).then(a).catch(r):t(n,i).then(a).catch(r)},oT=(n,i,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==i.indexOf("file:")){var a=i,s=r,l=o;n.queryStringParams&&(a=oE(a,n.queryStringParams));let t={..."function"==typeof n.customHeaders?n.customHeaders():n.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof n.requestOptions?n.requestOptions(s):n.requestOptions,d={method:s?"POST":"GET",body:s?n.stringify(s):void 0,headers:t,...n._omitFetchOptions?{}:c},u="function"==typeof n.alternateFetch&&n.alternateFetch.length>=1?n.alternateFetch:void 0;try{oC(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),oC(a,d,l,u),n._omitFetchOptions=!0}catch(t){l(t)}}return}if(o_()||"function"==typeof ActiveXObject){var c=i,d=r,u=o;d&&"object"==typeof d&&(d=oE("",d).slice(1)),n.queryStringParams&&(c=oE(c,n.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),n.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!n.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let i=n.customHeaders;if(i="function"==typeof i?i():i)for(let n of Object.keys(i))ok.indexOf(n)>-1||t.setRequestHeader(n,i[n]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oA=class{constructor(t,n={},i={}){this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)}init(t,n={},i={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,n,i)=>({[n]:i||""}),parseLoadPayload:(t,n)=>void 0,request:oT,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...n},this.allOptions=i,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,n,i){this._readAny(t,t,n,n,i)}read(t,n,i){this._readAny([t],t,[n],n,i)}_readAny(t,n,i,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,i)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=ov(a,{lng:t.join("+"),ns:i.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+i.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,n,r)})}loadUrl(t,n,i,r){let o=this.options.parseLoadPayload("string"==typeof i?[i]:i,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let n=new URL(t);if(n.username||n.password)return n.username="",n.password="",n.toString();return t}catch(n){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return n("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return n("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let i=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>i.indexOf(t)>-1))return n("failed loading "+a+": "+ob(t.message),!0)}if(t)return n(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,i,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return n(l,!1);n(null,s)})}create(t,n,i,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(n,i,r),s=0,l=[],c=[];t.forEach(i=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(i,n));let d=ov(r,{lng:i,ns:n});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(n,i)=>{s+=1,l.push(n),c.push(i),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:n,logger:i}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{n.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(n=>{this.allOptions.ns.forEach(r=>{t.read(n,r,"read",null,null,(o,a)=>{o&&i.warn(`loading namespace ${r} for language ${n} failed`,o),!o&&a&&i.log(`loaded namespace ${r} for language ${n}`,a),t.loaded(`${n}|${r}`,o,a)})})})}};oA.type="backend";class oS extends eG{constructor(t){if(super(t),this.it=ey,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ey||null==t)return this._t=void 0,this.it=t;if(t===e_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eq(oS);class oM extends oS{}oM.directiveName="unsafeSVG",oM.resultType=2;let oD=eq(oM),oL={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oI=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 oR extends CustomEvent{constructor(){super(oR.NAME,{bubbles:!0,composed:!0})}}oR.NAME="or-iconset-added";let oO=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oR)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[L`
840
+ `,tH([eY({type:String})],tU.prototype,"value",void 0),tH([eY({type:Object})],tU.prototype,"options",void 0),tU=tH([ez("or-translate")],tU),(pc=f_||(f_={})).CREATE="CREATE",pc.UPDATE="UPDATE",pc.DELETE="DELETE",pc.DELETE_FINISHED="DELETE_FINISHED",(pd=fy||(fy={})).LOW="LOW",pd.MEDIUM="MEDIUM",pd.HIGH="HIGH",(pu=fv||(fv={})).MANUAL="MANUAL",pu.CLIENT="CLIENT",pu.GLOBAL_RULESET="GLOBAL_RULESET",pu.REALM_RULESET="REALM_RULESET",pu.ASSET_RULESET="ASSET_RULESET",pu.AGENT="AGENT",(ph=fx||(fx={})).OPEN="OPEN",ph.ACKNOWLEDGED="ACKNOWLEDGED",ph.IN_PROGRESS="IN_PROGRESS",ph.RESOLVED="RESOLVED",ph.CLOSED="CLOSED",(pm=fw||(fw={})).BOTTOM_LEFT="BOTTOM_LEFT",pm.BOTTOM_RIGHT="BOTTOM_RIGHT",pm.TOP_LEFT="TOP_LEFT",pm.TOP_RIGHT="TOP_RIGHT",(pp=fF||(fF={})).CREATE="CREATE",pp.READ="READ",pp.UPDATE="UPDATE",pp.DELETE="DELETE",(pf=fk||(fk={})).NONE="NONE",pf.FORECAST="FORECAST",pf.SETPOINT="SETPOINT",(pg=fE||(fE={})).DISCONNECTED="DISCONNECTED",pg.CONNECTING="CONNECTING",pg.DISCONNECTING="DISCONNECTING",pg.CONNECTED="CONNECTED",pg.DISABLED="DISABLED",pg.WAITING="WAITING",pg.ERROR="ERROR",pg.STOPPED="STOPPED",(pb=fC||(fC={})).REQUEST_START="REQUEST_START",pb.REQUEST_REPEATING="REQUEST_REPEATING",pb.REQUEST_CANCEL="REQUEST_CANCEL",pb.READY="READY",pb.COMPLETED="COMPLETED",pb.RUNNING="RUNNING",pb.CANCELLED="CANCELLED",(p_=fT||(fT={})).TOGGLE="TOGGLE",p_.INCREMENT="INCREMENT",p_.DECREMENT="DECREMENT",p_.NEGATE="NEGATE",(py=fA||(fA={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",py.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",py.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",py.INVALID_VALUE="INVALID_VALUE",py.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",py.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",py.CANNOT_PROCESS="CANNOT_PROCESS",py.QUEUE_FULL="QUEUE_FULL",py.UNKNOWN="UNKNOWN",py.ASSET_ID_MISSING="ASSET_ID_MISSING",py.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(pv=fS||(fS={})).PUBLIC="PUBLIC",pv.SHARED="SHARED",pv.PRIVATE="PRIVATE",(px=fM||(fM={})).OFF="OFF",px.ONE_MIN="ONE_MIN",px.FIVE_MIN="FIVE_MIN",px.QUARTER="QUARTER",px.ONE_HOUR="ONE_HOUR",(pw=fD||(fD={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",pw.KEEP_LAYOUT="KEEP_LAYOUT",pw.REDIRECT="REDIRECT",pw.BLOCK_DEVICE="BLOCK_DEVICE",(pF=fL||(fL={})).CSV="CSV",pF.CSV_CROSSTAB="CSV_CROSSTAB",pF.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(pk=fI||(fI={})).MINUTE="MINUTE",pk.HOUR="HOUR",pk.DAY="DAY",pk.WEEK="WEEK",pk.MONTH="MONTH",pk.YEAR="YEAR",(pE=fR||(fR={})).MIN="MIN",pE.AVG="AVG",pE.MAX="MAX",pE.DIFFERENCE="DIFFERENCE",pE.COUNT="COUNT",pE.SUM="SUM",pE.MODE="MODE",pE.MEDIAN="MEDIAN",(pC=fO||(fO={})).TERMINATING="TERMINATING",pC.DISABLED="DISABLED",pC.ALREADY_CONNECTED="ALREADY_CONNECTED",pC.UNRECOGNISED="UNRECOGNISED",pC.PERMANENT_ERROR="PERMANENT_ERROR",pC.SYNC_ERROR="SYNC_ERROR",(pT=fP||(fP={})).HTTPS="HTTPS",pT.HTTP="HTTP",pT.TCP="TCP",(pA=f$||(f$={})).GET="GET",pA.POST="POST",pA.PUT="PUT",pA.DELETE="DELETE",pA.OPTIONS="OPTIONS",pA.PATCH="PATCH",(pS=fB||(fB={})).KEYCLOAK="KEYCLOAK",pS.NONE="NONE",(pM=fN||(fN={})).WEBSOCKET="WEBSOCKET",pM.POLLING="POLLING",(pD=fz||(fz={})).INTERNAL="INTERNAL",pD.CLIENT="CLIENT",pD.GLOBAL_RULESET="GLOBAL_RULESET",pD.REALM_RULESET="REALM_RULESET",pD.ASSET_RULESET="ASSET_RULESET",(pL=fj||(fj={})).REALM="REALM",pL.USER="USER",pL.ASSET="ASSET",pL.CUSTOM="CUSTOM",(pI=fY||(fY={})).NORMAL="NORMAL",pI.HIGH="HIGH",(pR=fH||(fH={})).DEVICE="DEVICE",pR.TOPIC="TOPIC",pR.CONDITION="CONDITION",(pO=fU||(fU={})).ALWAYS="ALWAYS",pO.ONCE="ONCE",pO.HOURLY="HOURLY",pO.DAILY="DAILY",pO.WEEKLY="WEEKLY",pO.MONTHLY="MONTHLY",pO.ANNUALLY="ANNUALLY",(pP=fV||(fV={})).TITLE="TITLE",pP.SOURCE="SOURCE",pP.STATUS="STATUS",pP.SENT_ON="SENT_ON",pP.DELIVERED_ON="DELIVERED_ON",(p$=fW||(fW={})).MESSAGE_INVALID="MESSAGE_INVALID",p$.CERTIFICATE_INVALID="CERTIFICATE_INVALID",p$.UNAUTHORIZED="UNAUTHORIZED",p$.FORBIDDEN="FORBIDDEN",p$.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",p$.CONFIG_DISABLED="CONFIG_DISABLED",p$.USER_DISABLED="USER_DISABLED",p$.SERVER_ERROR="SERVER_ERROR",p$.ASSET_ERROR="ASSET_ERROR",p$.SERVER_BUSY="SERVER_BUSY",(pB=fq||(fq={})).PRIVATE="PRIVATE",pB.PROTECTED="PROTECTED",pB.PUBLIC="PUBLIC",(pN=fG||(fG={})).EXACT="EXACT",pN.BEGIN="BEGIN",pN.END="END",pN.CONTAINS="CONTAINS",(pz=fK||(fK={})).EQUALS="EQUALS",pz.GREATER_THAN="GREATER_THAN",pz.GREATER_EQUALS="GREATER_EQUALS",pz.LESS_THAN="LESS_THAN",pz.LESS_EQUALS="LESS_EQUALS",pz.BETWEEN="BETWEEN",(pj=fX||(fX={})).CREATED_ON="CREATED_ON",pj.NAME="NAME",pj.ASSET_TYPE="ASSET_TYPE",pj.PARENT_ID="PARENT_ID",pj.REALM="REALM",(pY=fZ||(fZ={})).RESTRICTED="RESTRICTED",pY.LINKED="LINKED",pY.REALM="REALM",(pH=fJ||(fJ={})).AT_LEAST_ONE="AT_LEAST_ONE",pH.ALL="ALL",pH.NONE="NONE",(pU=fQ||(fQ={})).AND="AND",pU.OR="OR",(pV=f0||(f0={})).CREATED_ON="CREATED_ON",pV.FIRST_NAME="FIRST_NAME",pV.LAST_NAME="LAST_NAME",pV.USERNAME="USERNAME",pV.EMAIL="EMAIL",(pW=f1||(f1={})).STOPPED="STOPPED",pW.RUNNING="RUNNING",pW.ERROR="ERROR",(pq=f2||(f2={})).JAVASCRIPT="JAVASCRIPT",pq.GROOVY="GROOVY",pq.JSON="JSON",pq.FLOW="FLOW",(pG=f3||(f3={})).READY="READY",pG.DEPLOYED="DEPLOYED",pG.COMPILATION_ERROR="COMPILATION_ERROR",pG.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",pG.EXECUTION_ERROR="EXECUTION_ERROR",pG.LOOP_ERROR="LOOP_ERROR",pG.DISABLED="DISABLED",pG.PAUSED="PAUSED",pG.EXPIRED="EXPIRED",pG.REMOVED="REMOVED",pG.EMPTY="EMPTY",(pK=f5||(f5={})).SUNRISE="SUNRISE",pK.SUNSET="SUNSET",pK.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",pK.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",pK.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",pK.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",pK.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",pK.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",pK.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",pK.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",pK.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",pK.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",pK.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",pK.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",pK.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",pK.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",pK.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",pK.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",pK.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",pK.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(pX=f4||(f4={})).NUMBER="NUMBER",pX.NUMBER_ARRAY="NUMBER_ARRAY",pX.STRING="STRING",pX.BOOLEAN="BOOLEAN",pX.TRIGGER="TRIGGER",pX.COLOR="COLOR",pX.ANY="ANY",(pZ=f6||(f6={})).NEW_LINE="NEW_LINE",pZ.SPACER="SPACER",(pJ=f8||(f8={})).INPUT="INPUT",pJ.PROCESSOR="PROCESSOR",pJ.OUTPUT="OUTPUT",pJ.THEN="THEN",(pQ=f7||(f7={})).TEXT="TEXT",pQ.MULTILINE="MULTILINE",pQ.NUMBER="NUMBER",pQ.DROPDOWN="DROPDOWN",pQ.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",pQ.CHECKBOX="CHECKBOX",pQ.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",pQ.COLOR="COLOR",pQ.DATE="DATE",(p0=f9||(f9={})).ADD="ADD",p0.ADD_OR_REPLACE="ADD_OR_REPLACE",p0.REPLACE="REPLACE",p0.DELETE="DELETE",p0.CLEAR="CLEAR",(p1=ge||(ge={})).PER_ASSET="PER_ASSET",p1.GLOBAL="GLOBAL",(p2=gt||(gt={})).READ_ADMIN="read:admin",p2.READ_LOGS="read:logs",p2.READ_USERS="read:users",p2.READ_MAP="read:map",p2.READ_ASSETS="read:assets",p2.READ_RULES="read:rules",p2.READ_INSIGHTS="read:insights",p2.READ_ALARMS="read:alarms",p2.READ_NOTIFICATIONS="read:notifications",p2.READ_SERVICES="read:services",p2.READ_TUNNELS="read:tunnels",p2.WRITE_SERVICES="write:services",p2.WRITE_USER="write:user",p2.WRITE_ADMIN="write:admin",p2.WRITE_LOGS="write:logs",p2.WRITE_ASSETS="write:assets",p2.WRITE_ATTRIBUTES="write:attributes",p2.WRITE_RULES="write:rules",p2.WRITE_INSIGHTS="write:insights",p2.WRITE_ALARMS="write:alarms",p2.WRITE_NOTIFICATIONS="write:notifications",p2.WRITE_TUNNELS="write:tunnels",p2.READ="read",p2.WRITE="write",(p3=gn||(gn={})).REGISTER="REGISTER",p3.UPDATE="UPDATE",p3.DEREGISTER="DEREGISTER",(p5=gi||(gi={})).AVAILABLE="AVAILABLE",p5.UNAVAILABLE="UNAVAILABLE",(p4=gr||(gr={})).ASSET="ASSET",p4.AGENT="AGENT",p4.NOTIFICATION="NOTIFICATION",p4.ALARM="ALARM",p4.RULES="RULES",p4.PROTOCOL="PROTOCOL",p4.GATEWAY="GATEWAY",p4.MODEL_AND_VALUES="MODEL_AND_VALUES",p4.API="API",p4.DATA="DATA",(p6=go||(go={})).INFO="INFO",p6.WARN="WARN",p6.ERROR="ERROR",(p8=ga||(ga={})).NUMERIC="numeric",p8.DIGIT_2="2-digit",p8.FULL="full",p8.LONG="long",p8.MEDIUM="medium",p8.SHORT="short",p8.NARROW="narrow",(p7=gs||(gs={})).SECONDLY="SECONDLY",p7.MINUTELY="MINUTELY",p7.HOURLY="HOURLY",p7.DAILY="DAILY",p7.WEEKLY="WEEKLY",p7.MONTHLY="MONTHLY",p7.YEARLY="YEARLY",(p9=gl||(gl={})).OMIT="OMIT",p9.BACKWARD="BACKWARD",p9.FORWARD="FORWARD",(fe=gc||(gc={})).JAPANESE="JAPANESE",fe.BUDDHIST="BUDDHIST",fe.ROC="ROC",fe.ISLAMIC="ISLAMIC",fe.ISO8601="ISO8601",fe.CHINESE="CHINESE",fe.ETHIOPIC="ETHIOPIC",fe.HEBREW="HEBREW",fe.GREGORIAN="GREGORIAN",(ft=gd||(gd={})).SU="SU",ft.MO="MO",ft.TU="TU",ft.WE="WE",ft.TH="TH",ft.FR="FR",ft.SA="SA",(fn=gu||(gu={})).PEOPLECOUNTERASSET="PeopleCounterAsset",fn.MAILAGENT="MailAgent",fn.UDPAGENT="UDPAgent",fn.ROOMASSET="RoomAsset",fn.CITYASSET="CityAsset",fn.VENTILATIONASSET="VentilationAsset",fn.TRADFRILIGHTASSET="TradfriLightAsset",fn.CONSOLEASSET="ConsoleAsset",fn.PRESENCESENSORASSET="PresenceSensorAsset",fn.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",fn.LIGHTASSET="LightAsset",fn.KNXAGENT="KNXAgent",fn.THETHINGSSTACKAGENT="TheThingsStackAgent",fn.PLUGASSET="PlugAsset",fn.CHIRPSTACKAGENT="ChirpStackAgent",fn.WEATHERASSET="WeatherAsset",fn.THINGASSET="ThingAsset",fn.WEBSOCKETAGENT="WebsocketAgent",fn.TCPAGENT="TCPAgent",fn.GATEWAYASSET="GatewayAsset",fn.SERIALAGENT="SerialAgent",fn.BLUETOOTHMESHAGENT="BluetoothMeshAgent",fn.PARKINGASSET="ParkingAsset",fn.TRADFRIPLUGASSET="TradfriPlugAsset",fn.SIMULATORAGENT="SimulatorAgent",fn.SNMPAGENT="SNMPAgent",fn.GROUPASSET="GroupAsset",fn.BUILDINGASSET="BuildingAsset",fn.MODBUSSERIALAGENT="ModbusSerialAgent",fn.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",fn.MQTTAGENT="MQTTAgent",fn.VELBUSTCPAGENT="VelbusTCPAgent",fn.ARTNETLIGHTASSET="ArtnetLightAsset",fn.VELBUSSERIALAGENT="VelbusSerialAgent",fn.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",fn.MICROPHONEASSET="MicrophoneAsset",fn.MODBUSTCPAGENT="ModbusTcpAgent",fn.ZWAVEAGENT="ZWaveAgent",fn.HTTPAGENT="HTTPAgent",fn.DOORASSET="DoorAsset",fn.THERMOSTATASSET="ThermostatAsset",fn.SHIPASSET="ShipAsset",(fi=gh||(gh={})).COLOURRGB="colourRGB",fi.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",fi.PRICEHOURLY="priceHourly",fi.MQTTPORT="MQTTPort",fi.PINGDISABLED="pingDisabled",fi.FLOW="flow",fi.CHILDASSETTYPE="childAssetType",fi.LASTACCESS="lastAccess",fi.POSITION="position",fi.NETWORKKEY="networkKey",fi.UNIVERSE="universe",fi.ROUTINGMODE="routingMode",fi.MSSINUMBER="MSSINumber",fi.LASTWILLRETAIN="lastWillRetain",fi.LASTWILLTOPIC="lastWillTopic",fi.SERIALBAUDRATE="serialBaudrate",fi.SUBSCRIBEQOS="subscribeQos",fi.LEDCOUNT="lEDCount",fi.LOCKED="locked",fi.CLOUDCOVERAGE="cloudCoverage",fi.BASEURL="baseURL",fi.PROTOCOL="protocol",fi.REQUIREDVALUES="requiredValues",fi.REGION="region",fi.CONSOLEPLATFORM="consolePlatform",fi.GATEWAYSTATUS="gatewayStatus",fi.NO2LEVEL="NO2Level",fi.ATMOSPHERICPRESSURE="atmosphericPressure",fi.SERIALPORT="serialPort",fi.APPLICATIONID="applicationId",fi.TAGS="tags",fi.UNLOCK="unlock",fi.CHECKINTERVALSECONDS="checkIntervalSeconds",fi.LOCATION="location",fi.CLIENTSECRET="clientSecret",fi.WINDDIRECTION="windDirection",fi.WINDSPEED="windSpeed",fi.PARTICLESPM10="particlesPM10",fi.APPLICATIONKEY="applicationKey",fi.LENGTH="length",fi.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",fi.USERNAMEPASSWORD="usernamePassword",fi.WATERLEVEL="waterLevel",fi.CONNECTHEADERS="connectHeaders",fi.CONSOLENAME="consoleName",fi.WEBSOCKETQUERY="websocketQuery",fi.PREFERHTML="preferHTML",fi.PARITY="parity",fi.COOLING="cooling",fi.POLLINGMILLIS="pollingMillis",fi.SOILTEMPERATURE="soilTemperature",fi.SUNIRRADIANCE="sunIrradiance",fi.MESSAGEMAXLENGTH="messageMaxLength",fi.WINDGUSTSPEED="windGustSpeed",fi.LIGHTID="lightId",fi.PROXYADDRESS="proxyAddress",fi.REQUESTQUERYPARAMETERS="requestQueryParameters",fi.MQTTHOST="MQTTHost",fi.SECUREGRPC="secureGRPC",fi.MODEL="model",fi.STREET="street",fi.MANUFACTURER="manufacturer",fi.DELETEPROCESSEDMAIL="deleteProcessedMail",fi.RESUMESESSION="resumeSession",fi.ONOFF="onOff",fi.APIKEY="ApiKey",fi.CITY="city",fi.PRESENCE="presence",fi.SPACESOCCUPIED="spacesOccupied",fi.STARTTLS="startTLS",fi.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",fi.WEBSOCKETPATH="websocketPath",fi.AGENTSTATUS="agentStatus",fi.PRICEDAILY="priceDaily",fi.COUNTGROWTHMINUTE="countGrowthMinute",fi.IMONUMBER="IMONumber",fi.ATTRIBUTION="Attribution",fi.TENANTID="tenantId",fi.REQUESTHEADERS="requestHeaders",fi.HOST="host",fi.COUNTOUTMINUTE="countOutMinute",fi.MESSAGECHARSET="messageCharset",fi.CERTIFICATEALIAS="certificateAlias",fi.EMAIL="email",fi.BINDPORT="bindPort",fi.CONSOLEVERSION="consoleVersion",fi.PARTICLESPM1="particlesPM1",fi.MTU="mtu",fi.SPEED="speed",fi.MESSAGESTRIPDELIMITER="messageStripDelimiter",fi.AREA="area",fi.COUNTRY="country",fi.SHIPTYPE="shipType",fi.CONNECTSUBSCRIPTIONS="connectSubscriptions",fi.RELATIVEHUMIDITY="relativeHumidity",fi.SOURCEADDRESS="sourceAddress",fi.RAINFALL="rainfall",fi.OAUTHGRANT="oAuthGrant",fi.OZONELEVEL="ozoneLevel",fi.SEQUENCENUMBER="sequenceNumber",fi.COUNTINMINUTE="countInMinute",fi.PORT="port",fi.SUNALTITUDE="sunAltitude",fi.COUNTOUT="countOut",fi.ROOMNUMBER="roomNumber",fi.TUNNELINGSUPPORTED="tunnelingSupported",fi.ENINUMBER="ENINumber",fi.PARTICLESPM2_5="particlesPM2_5",fi.AGENTDISABLED="agentDisabled",fi.DISABLED="disabled",fi.COUNTIN="countIn",fi.MESSAGESOURCEADDRESS="messageSourceAddress",fi.PROVISIONWEATHERASSET="ProvisionWeatherAsset",fi.TIMEINJECTIONINTERVAL="timeInjectionInterval",fi.TEMPERATURESETPOINT="temperatureSetpoint",fi.CONSOLEPROVIDERS="consoleProviders",fi.COUNTTOTAL="countTotal",fi.SPACESBUFFER="spacesBuffer",fi.DEVICECONFIG="deviceConfig",fi.SPACESTOTAL="spacesTotal",fi.BINDHOST="bindHost",fi.FANSPEED="fanSpeed",fi.MESSAGECONVERTBINARY="messageConvertBinary",fi.NOTES="notes",fi.MAILFOLDERNAME="mailFolderName",fi.MESSAGEDELIMITERS="messageDelimiters",fi.TEMPERATURE="temperature",fi.SUNZENITH="sunZenith",fi.SNMPVERSIONVALUE="SNMPVersionValue",fi.BRIGHTNESS="brightness",fi.POSTALCODE="postalCode",fi.SPACESOPEN="spacesOpen",fi.HUMIDITY="humidity",fi.SOUNDLEVEL="soundLevel",fi.SECUREMODE="secureMode",fi.DIRECTION="direction",fi.STOPBITS="stopbits",fi.UVINDEX="uVIndex",fi.CONNECTURL="connectURL",fi.CLIENTID="clientId",fi.NATMODE="NATMode",fi.UPDATEONWRITE="updateOnWrite",fi.LASTWILLPAYLOAD="lastWillPayload",fi.GROUPID="groupId",fi.FOLLOWREDIRECTS="followRedirects",fi.SUNAZIMUTH="sunAzimuth",fi.MESSAGECONVERTHEX="messageConvertHex",fi.WEBSOCKETMODE="websocketMode",fi.COLOURTEMPERATURE="colourTemperature",fi.PUBLISHQOS="publishQos",fi.DATABITS="dataBits",(fr=gm||(gm={})).FORMAT="format",fr.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",fr.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",fr.SECRET="secret",fr.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",fr.ATTRIBUTELINKS="attributeLinks",fr.RULERESETIMMEDIATE="ruleResetImmediate",fr.RULESTATE="ruleState",fr.AGENTLINKCONFIG="agentLinkConfig",fr.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",fr.FORECAST="forecast",fr.STOREDATAPOINTS="storeDataPoints",fr.LABEL="label",fr.CONSTRAINTS="constraints",fr.UNITS="units",fr.USERCONNECTED="userConnected",fr.SHOWONDASHBOARD="showOnDashboard",fr.READONLY="readOnly",fr.MULTILINE="multiline",fr.ACCESSPUBLICWRITE="accessPublicWrite",fr.MOMENTARY="momentary",fr.AGENTLINK="agentLink",fr.ACCESSRESTRICTEDREAD="accessRestrictedRead",fr.ACCESSPUBLICREAD="accessPublicRead",(fo=gp||(gp={})).ASSETQUERY="assetQuery",fo.WSURL="WS_URL",fo.COLOURRGB="colourRGB",fo.VALUEFORMAT="valueFormat",fo.TEXT="text",fo.BYTE="byte",fo.USERNAMEANDPASSWORD="usernameAndPassword",fo.HTTPURL="HTTP_URL",fo.ATTRIBUTELINK="attributeLink",fo.ASSETID="assetID",fo.NUMBERMAP="numberMap",fo.HTTPMETHOD="HTTPMethod",fo.ATTRIBUTESTATE="attributeState",fo.POSITIVENUMBER="positiveNumber",fo.POSITIVEINTEGER="positiveInteger",fo.EXECUTIONSTATUS="executionStatus",fo.BIGINTEGER="bigInteger",fo.VALUEDESCRIPTOR="valueDescriptor",fo.PERIODDURATIONISO8601="periodDurationISO8601",fo.LONG="long",fo.DATEANDTIME="dateAndTime",fo.BOOLEANMAP="booleanMap",fo.MQTTQOS="MQTTQos",fo.NEGATIVEINTEGER="negativeInteger",fo.TCPIPPORTNUMBER="TCP_IPPortNumber",fo.GEOJSONPOINT="GEO_JSONPoint",fo.SNMPVERSION="SNMPVersion",fo.ASSETTYPE="assetType",fo.JSONOBJECT="JSONObject",fo.INTEGERMAP="integerMap",fo.BIGNUMBER="bigNumber",fo.IPADDRESS="IPAddress",fo.EMAIL="email",fo.TIMESTAMP="timestamp",fo.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",fo.ATTRIBUTEREFERENCE="attributeReference",fo.UUID="UUID",fo.INTEGER="integer",fo.OAUTHGRANT="oAuthGrant",fo.NUMBER="number",fo.DEVICECONFIGMAP="DeviceConfigMap",fo.TEXTMAP="textMap",fo.WEBSOCKETSUBSCRIPTION="websocketSubscription",fo.BOOLEAN="boolean",fo.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",fo.FORECASTCONFIGURATION="forecastConfiguration",fo.TIMEDURATIONISO8601="timeDurationISO8601",fo.TIMESTAMPISO8601="timestampISO8601",fo.CONSOLEPROVIDERS="consoleProviders",fo.MULTIVALUEDTEXTMAP="multivaluedTextMap",fo.NEGATIVENUMBER="negativeNumber",fo.PARITYBIT="Paritybit",fo.JSON="JSON",fo.CRONEXPRESSION="CRONExpression",fo.INTEGERBYTE="integerByte",fo.AGENTLINK="agentLink",fo.DIRECTION="direction",fo.HOSTORIPADDRESS="hostOrIPAddress",fo.STOPBITS="Stopbits",fo.CALENDAREVENT="calendarEvent",fo.CONNECTIONSTATUS="connectionStatus",fo.VALUECONSTRAINT="valueConstraint",(fa=gf||(gf={})).MONTH="month",fa.MILE_SCANDINAVIAN="mile_scandinavian",fa.VAR="var",fa.OUNCE="ounce",fa.HECTARE="hectare",fa.YARD="yard",fa.YEAR="year",fa.GIGA="giga",fa.JOULE="joule",fa.VOLT="volt",fa.HERTZ="hertz",fa.MILE="mile",fa.DEGREE="degree",fa.KILO="kilo",fa.BTU="btu",fa.TERA="tera",fa.FOOT="foot",fa.MEGA="mega",fa.KELVIN="kelvin",fa.CARBON="carbon",fa.DECIBEL_ATTENUATED="decibel_attenuated",fa.INCH="inch",fa.SQUARED="squared",fa.PERCENTAGE="percentage",fa.IN_HG="inch_mercury",fa.CENTI="centi",fa.GRAM="gram",fa.CUBED="cubed",fa.DAY="day",fa.RADIAN="radian",fa.OHM="ohm",fa.MINUTE="minute",fa.PART_PER_MILLION="ppm",fa.AMP="amp",fa.MASS_POUND="pound",fa.KNOT="knot",fa.METRE="metre",fa.LITRE="litre",fa.FLUID_OUNCE="fluid_ounce",fa.HOUR="hour",fa.ACRE="acre",fa.CELSIUS="celsius",fa.RPM="rpm",fa.PASCAL="pascal",fa.DECIBEL="decibel",fa.LUMEN="lumen",fa.WEEK="week",fa.FAHRENHEIT="fahrenheit",fa.WATT="watt",fa.GALLON="gallon",fa.LUX="lux",fa.MILLI="milli",fa.BAR="bar",fa.HECTO="hecto",fa.PEAK="peak",fa.SECOND="second",fa.MICRO="micro",fa.PER="per",fa.STONE="stone",gg||(gg={});class tV{static getAssetDescriptors(){return tV._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=tV.getValueDescriptor(n)),i=n.jsonType?n:tV.getValueDescriptor(n.type)),!i&&t&&(i=tV.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}}tV._assetTypeInfos=[],tV._metaItemDescriptors=[],tV._valueDescriptors=[],i(44532);var tW=i(14867),tq=i.n(tW);i(83472);class tG{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 tK(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){if(Array.isArray(t))return t.every((t,i)=>tK(t,n[i]));let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>tK(t[i],n[i]))}return!1}function tX(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 tZ(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 tJ(t){return("string"==typeof t&&(t=tV.getAssetDescriptor(t)),t)?tY.t("label.asset."+t.name,{defaultValue:tX(t.name)}):""}function tQ(t,n){let i="string"==typeof t?tV.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:tV.resolveValueTypeFromValue(n),value:n}}function t0(t,n,i,r,o,a){let s=t4("label",t,n,i,o),l="";if(s||(s=tZ("label",t,n&&n.meta?n:void 0)),r&&(l=t3(t5("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?tX(i):void 0)}return s?s+(l?" ("+l+")":""):l}function t1(t,n,i,r,o,a){let s=t2(t?t.value:void 0,()=>t5("format",t,n,i,o),void 0,a),l=t5("units",t,n,i,!0);return r&&l&&l.length&&(s=t3(t5("units",t,n,i,o),s)),s}function t2(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||tY.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?tY.t("on"):tY.t("off")),r.asOpenClosed&&(o=t?tY.t("open"):tY.t("closed")),r.asPressedReleased&&(o=t?tY.t("pressed"):tY.t("released"));break;case"object":if(r.momentJsFormat)o=tq()(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||tY.language,r).format(t)}else o=Object(t).toString()}return o}function t3(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return tY.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(tY.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 t5(t,n,i,r,o){let a,s=[],l=t4(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=tZ(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=tV.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 t4(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 tY.t(l,{defaultValue:a||""})}function t6(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)}class t8{constructor(t){t&&Object.assign(this,t)}matches(t){var n,i,r,o,a,s,l;if((null==(n=this.ids)?void 0:n.length)&&(!t.id||!this.ids.includes(t.id))||(null==(i=this.types)?void 0:i.length)&&(!t.type||!this.types.includes(t.type))||(null==(r=this.realm)?void 0:r.name)&&t.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(n=>!n.id||t.parentId===n.id))return!1;if(null==(a=this.paths)?void 0:a.length){let n=null!=(s=t.path)?s:[];if(!this.paths.some(t=>{var i;return(null!=(i=t.path)?i:[]).every((t,i)=>n[i]===t)}))return!1}return(null==(l=this.names)||!l.length||!!this.names.every(n=>t8._evalValuePredicate(t.name,n)))&&(!this.attributes||t8._evalGroup(t,this.attributes))}static getUnsupportedFields(t){return Object.keys(t).filter(t=>!t8._SUPPORTED_FIELDS.has(t))}collectAttributeNames(){return this.attributes?t8._collectNames(this.attributes):[]}static _evalValuePredicate(t,n){var i;switch(n.predicateType){case"string":{let r;if(null==t)return!1;let o=!1!==n.caseSensitive?String(t):String(t).toLowerCase(),a=!1!==n.caseSensitive?n.value:null==(i=n.value)?void 0:i.toLowerCase();switch(n.match){case"BEGIN":r=o.startsWith(a);break;case"END":r=o.endsWith(a);break;case"CONTAINS":r=o.includes(a);break;default:r=o===a}return n.negate?!r:r}case"boolean":return t===n.value;case"number":{let i;if("number"!=typeof t)return!1;switch(n.operator){case"GREATER_THAN":i=t>n.value;break;case"GREATER_EQUALS":i=t>=n.value;break;case"LESS_THAN":i=t<n.value;break;case"LESS_EQUALS":i=t<=n.value;break;case"BETWEEN":i=t>=n.value&&t<=n.rangeValue;break;default:i=t===n.value}return n.negate?!i:i}}return!1}static _evalPredicate(t,n){var i,r;let o=null==(i=n.name)?void 0:i.value;if(!o)return!0;let a=null==(r=t.attributes)?void 0:r[o];if(!a)return!!n.negated;let s=!n.value||t8._evalValuePredicate(a.value,n.value);return n.negated?!s:s}static _evalGroup(t,n){var i,r,o;let a=null!=(i=n.operator)?i:"AND",s=[...(null!=(r=n.items)?r:[]).map(n=>t8._evalPredicate(t,n)),...(null!=(o=n.groups)?o:[]).map(n=>t8._evalGroup(t,n))];return!s.length||("OR"===a?s.some(Boolean):s.every(Boolean))}static _collectNames(t){var n,i;return[...(null!=(n=t.items)?n:[]).map(t=>{var n;return null==(n=t.name)?void 0:n.value}).filter(t=>!!t),...(null!=(i=t.groups)?i:[]).flatMap(t=>t8._collectNames(t))]}}t8._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var t7=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 t9=i(74461);class ne{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=ne._createConsoleRegistration(),h=window.localStorage.getItem(this._storageKey);if(h)try{let t=JSON.parse(h);t.id&&(u.id=t.id),t.name&&(u.name=t.name),t.providers&&(u.providers=t.providers),t.apps&&(u.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let 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=o0.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 t7(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return t7(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 t7(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().catch(()=>void 0),this._callCompletedCallback())),r})}disableProvider(t){return t7(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 t7(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 tG,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(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>t7(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),t()}catch(t){console.error("Failed to register console",t),n(t)}}))})}_sendRegistration(t){return t7(this,void 0,void 0,function*(){this._normaliseRegistration();let n=!!this._registration.id;try{let t=yield o0.rest.api.ConsoleResource.register(this._registration);if(200!==t.status)throw Error("Failed to register console");this._registration=t.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(i){if(t&&n&&ne._isStaleRegistrationResponse(i)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw i}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(t){let n=t&&t.response?t.response.status:void 0;return 403===n||409===n}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return t7(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:t9.name,version:t9.version,platform:t9.os.toString(),apps:[],model:((t9.manufacturer?t9.manufacturer+" ":"")+(t9.product?t9.product:"")).trim()}}_initialiseProvider(t){return t7(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 nt(t,n){return function(){return t.apply(n,arguments)}}let{toString:nn}=Object.prototype,{getPrototypeOf:ni}=Object,{iterator:nr,toStringTag:no}=Symbol,na=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),ns=t=>"string"==typeof t&&("__proto__"===t||"constructor"===t||"prototype"===t),nl=(t,n,i)=>t===Object.prototype||!i&&null===n,nc=(t,n)=>{let i=t,r=[];for(;null!=i&&-1===r.indexOf(i);){r.push(i);let o=ni(i);if(nl(i,o,i===t))break;if(na(i,n))return!0;i=o}return!1},nd=(u=Object.create(null),t=>{let n=nn.call(t);return u[n]||(u[n]=n.slice(8,-1).toLowerCase())}),nu=t=>(t=t.toLowerCase(),n=>nd(n)===t),nh=t=>n=>typeof n===t,{isArray:nm}=Array,np=nh("undefined");function nf(t){return null!==t&&!np(t)&&null!==t.constructor&&!np(t.constructor)&&n_(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let ng=nu("ArrayBuffer"),nb=nh("string"),n_=nh("function"),ny=nh("number"),nv=t=>null!==t&&"object"==typeof t,nx=t=>{if(!nv(t))return!1;let n=ni(t);return(null===n||n===Object.prototype||null===ni(n))&&!nc(t,no)&&!nc(t,nr)},nw=nu("Date"),nF=nu("File"),nk=nu("Blob"),nE=nu("FileList"),nC=nu("Set"),nT="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nA=void 0!==nT.FormData?nT.FormData:void 0,nS=nu("URLSearchParams"),[nM,nD,nL,nI]=["ReadableStream","Request","Response","Headers"].map(nu);function nR(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nm(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nf(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 nO(t,n){let i;if(nf(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 nP="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,n$=t=>!np(t)&&t!==nP,nB=(h="u">typeof Uint8Array&&ni(Uint8Array),t=>h&&t instanceof h),nN=nu("HTMLFormElement"),{propertyIsEnumerable:nz}=Object.prototype,nj=nu("RegExp"),nY=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nR(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},nH=nu("AsyncFunction"),nU=(po="function"==typeof setImmediate,pa=n_(nP.postMessage),po?setImmediate:pa?(ps=`axios@${Math.random()}`,pl=[],nP.addEventListener("message",({source:t,data:n})=>{t===nP&&n===ps&&pl.length&&pl.shift()()},!1),t=>{pl.push(t),nP.postMessage(ps,"*")}):t=>setTimeout(t)),nV="u">typeof queueMicrotask?queueMicrotask.bind(nP):"u">typeof process&&process.nextTick||nU,nW=t=>null!=t&&n_(t[nr]),nq={isArray:nm,isArrayBuffer:ng,isBuffer:nf,isFormData:t=>{if(!t)return!1;if(nA&&t instanceof nA)return!0;let n=ni(t);if(!n||n===Object.prototype||!n_(t.append))return!1;let i=nd(t);return"formdata"===i||"object"===i&&n_(t.toString)&&"[object FormData]"===t.toString()},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&ng(t.buffer)},isString:nb,isNumber:ny,isBoolean:t=>!0===t||!1===t,isObject:nv,isPlainObject:nx,isEmptyObject:t=>{if(!nv(t)||nf(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nM,isRequest:nD,isResponse:nL,isHeaders:nI,isUndefined:np,isDate:nw,isFile:nF,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nk,isRegExp:nj,isFunction:n_,isStream:t=>nv(t)&&n_(t.pipe),isURLSearchParams:nS,isTypedArray:nB,isFileList:nE,forEach:nR,merge:function t(...n){let{caseless:i,skipUndefined:r}=n$(this)&&this||{},o={},a=(n,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=i&&"string"==typeof a&&nO(o,a)||a,l=na(o,s)?o[s]:void 0;nx(l)&&nx(n)?o[s]=t(l,n):nx(n)?o[s]=t({},n):nm(n)?o[s]=n.slice():r&&np(n)||(o[s]=n)};for(let t=0,i=n.length;t<i;t++){let i=n[t];if(!i||nf(i)||(nR(i,a),"object"!=typeof i||nm(i)))continue;let r=Object.getOwnPropertySymbols(i);for(let t=0;t<r.length;t++){let n=r[t];nz.call(i,n)&&a(i[n],n)}}return o},extend:(t,n,i,{allOwnKeys:r}={})=>(nR(n,(n,r)=>{i&&n_(n)?Object.defineProperty(t,r,{__proto__:null,value:nt(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{__proto__:null,value:n,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,i,r)=>{t.prototype=Object.create(n.prototype,r),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,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&&ni(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nd,kindOfTest:nu,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(nm(t))return t;let n=t.length;if(!ny(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nr]).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:nN,hasOwnProperty:na,hasOwnProp:na,hasOwnInPrototypeChain:nc,getSafeProp:(t,n)=>null!=t&&nc(t,n)?t[n]:void 0,toSafeFlatObject:t=>{if(null==t||"object"!=typeof t&&"function"!=typeof t)return t;let n=ni(t);if(null===n&&(t=>{if(!Object.isExtensible(t))return!1;let n=Object.getOwnPropertyNames(t);return Object.getOwnPropertySymbols&&n.push(...Object.getOwnPropertySymbols(t)),n.every(n=>{if(ns(n))return!1;let i=Object.getOwnPropertyDescriptor(t,n);return!!i&&i.configurable&&!0===i.writable})})(t))return t;let i=Object.create(null),r=Object.create(null),o=[],a=t;for(;null!=a&&-1===o.indexOf(a);){o.push(a);let s=a===t?n:ni(a);if(nl(a,s,a===t))break;let l=Object.getOwnPropertyNames(a);for(let n of(Object.getOwnPropertySymbols&&l.push(...Object.getOwnPropertySymbols(a)),l))!ns(n)&&(na(r,n)||(i[n]=t[n],r[n]=!0));a=s}return i},reduceDescriptors:nY,freezeMethods:t=>{nY(t,(n,i)=>{if(n_(t)&&["arguments","caller","callee"].includes(i))return!1;if(n_(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(nm(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:nO,global:nP,isContextDefined:n$,isSpecCompliantForm:function(t){return!!(t&&n_(t.append)&&"FormData"===t[no]&&t[nr])},toJSONObject:t=>{let n=new WeakSet,i=t=>{if(nv(t)){if(n.has(t))return;if(nf(t))return t;if(!("toJSON"in t)){let r;if(n.add(t),nC(t))for(let n of(r=[],t)){let t=i(n);np(t)||r.push(t)}else r=nm(t)?[]:{},nR(t,(t,n)=>{let o=i(t);np(o)||(r[n]=o)});return n.delete(t),r}}return t};return i(t)},isAsyncFn:nH,isThenable:t=>t&&(nv(t)||n_(t))&&n_(t.then)&&n_(t.catch),setImmediate:nU,asap:nV,isIterable:nW,isSafeIterable:t=>null!=t&&nc(t,nr)&&nW(t)},nG=nq.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"]),nK=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),nX=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function nZ(t,n){return nq.isArray(t)?t.map(t=>nZ(t,n)):function(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}(String(t).replace(n,""))}function nJ(t){let n=Object.create(null);return nq.forEach(t.toJSON(),(t,i)=>{n[i]=nZ(t,nX)}),n}let nQ=Symbol("internals");function n0(t){return t&&String(t).trim().toLowerCase()}function n1(t){return!1===t||null==t?t:nq.isArray(t)?t.map(n1):nZ(String(t),nK)}let n2=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function n3(t){let n=0,i=t.length;for(;n<i;){let i=t.charCodeAt(n);if(9!==i&&32!==i)break;n+=1}for(;i>n;){let n=t.charCodeAt(i-1);if(9!==n&&32!==n)break;i-=1}return 0===n&&i===t.length?t:t.slice(n,i)}function n5(t,n,i,r,o){if(nq.isFunction(r))return r.call(this,n,i);if(o&&(n=i),nq.isString(n)){if(nq.isString(r))return -1!==n.indexOf(r);if(nq.isRegExp(r))return r.test(n)}}class n4{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=n0(n);if(!o)return;let a=nq.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=n1(t))}let a=(t,n)=>nq.forEach(t,(t,i)=>o(t,i,n));if(nq.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(nq.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();let n=nq.hasOwnProp(l,i);!i||n&&nq.hasOwnProp(nG,i)||("set-cookie"===i?n?l[i].push(r):l[i]=[r]:l[i]=n?l[i]+", "+r:r)}),l),n)}else if(nq.isObject(t)&&nq.isSafeIterable(t)){let i=Object.create(null),r,o;for(let n of t){if(!nq.isArray(n))throw TypeError("Object iterator must return a key-value pair");o=n[0],nq.hasOwnProp(i,o)?(r=i[o],i[o]=nq.isArray(r)?[...r,n[1]]:[r,n[1]]):i[o]=n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=n0(t)){let i=nq.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(nq.isFunction(n))return n.call(this,t,i);if(nq.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=n0(t)){let i=nq.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||n5(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=n0(t)){let o=nq.findKey(i,t);o&&(!n||n5(i,i[o],o,n))&&(delete i[o],r=!0)}}return nq.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||n5(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return nq.forEach(this,(r,o)=>{let a=nq.findKey(i,o);if(a){n[a]=n1(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]=n1(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return nq.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&nq.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(){let t=this.get("set-cookie");return nq.isArray(t)?t:null==t||!1===t?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return function(t){let n=Object.create(null),i=String(t),r=0,o=!1,a=!1;function s(t){let o=n3(i.slice(r,t)),a=o.indexOf("=");if(a<1)return;let s=n3(o.slice(0,a));if(!n2.test(s))return;let l=s.toLowerCase();if("__proto__"===l||"constructor"===l||"prototype"===l)return;let c=n3(o.slice(a+1));n[l]=function(t){let n=t.length-1;if(n<1||34!==t.charCodeAt(0)||34!==t.charCodeAt(n))return t;let i="";for(let r=1;r<n;r++){let o=t.charCodeAt(r);if(34===o||92===o&&(r+=1)>=n)return t;i+=t[r]}return i}(c)}for(let t=0;t<i.length;t++){let n=i.charCodeAt(t);o?a?a=!1:92===n?a=!0:34===n&&(o=!1):34===n?o=!0:(44===n||59===n)&&(s(t),r=t+1)}return s(i.length),n}(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[nQ]=this[nQ]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=n0(t);if(!n[r]){let o;o=nq.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{__proto__:null,value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return nq.isArray(t)?t.forEach(r):r(t),this}}n4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),nq.reduceDescriptors(n4.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),nq.freezeMethods(n4);let n6="[REDACTED ****]";function n8(t){try{return String(t)}catch(t){return""}}class n7 extends Error{static from(t,n,i,r,o,a){let s=t.message;!s&&nq.isArray(t.errors)&&t.errors.length&&(s=t.errors.map(t=>{try{return t&&t.message?n8(t.message):n8(t)}catch(t){return""}}).filter(Boolean).join("; ")||t.name||"AggregateError");let l=new n7(s,n||t.code,i,r,o);return Object.defineProperty(l,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),l.name=t.name,null!=t.status&&null==l.status&&(l.status=t.status),a&&Object.assign(l,a),l}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),i&&(this.config=i),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){let t,n,i,r=this.config,o=r&&nq.hasOwnProp(r,"redact")?r.redact:void 0,a=nq.isArray(o)&&o.length>0?(t=new Set(o.map(t=>String(t).toLowerCase())),n=[],(i=r=>{let o;if(null===r||"object"!=typeof r||nq.isBuffer(r))return r;if(-1===n.indexOf(r)){if(r instanceof n4&&(r=r.toJSON()),n.push(r),nq.isArray(r))o=[],r.forEach((t,n)=>{let r=i(t);nq.isUndefined(r)||(o[n]=r)});else{if(!nq.isPlainObject(r)&&function(t){if(nq.hasOwnProp(t,"toJSON"))return!0;let n=Object.getPrototypeOf(t);for(;n&&n!==Object.prototype;){if(nq.hasOwnProp(n,"toJSON"))return!0;n=Object.getPrototypeOf(n)}return!1}(r))return n.pop(),r;for(let[n,a]of(o=Object.create(null),Object.entries(r))){let r=t.has(n.toLowerCase())?n6:i(a);nq.isUndefined(r)||(o[n]=r)}}return n.pop(),o}})(r)):nq.toJSONObject(r);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a,code:this.code,status:this.status}}}n7.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",n7.ERR_BAD_OPTION="ERR_BAD_OPTION",n7.ECONNABORTED="ECONNABORTED",n7.ETIMEDOUT="ETIMEDOUT",n7.ECONNREFUSED="ECONNREFUSED",n7.ERR_NETWORK="ERR_NETWORK",n7.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",n7.ERR_DEPRECATED="ERR_DEPRECATED",n7.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",n7.ERR_BAD_REQUEST="ERR_BAD_REQUEST",n7.ERR_CANCELED="ERR_CANCELED",n7.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",n7.ERR_INVALID_URL="ERR_INVALID_URL",n7.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let n9=n7;function ie(t){return nq.isPlainObject(t)||nq.isArray(t)}function it(t){return nq.endsWith(t,"[]")?t.slice(0,-2):t}function ii(t,n,i){return t?t.concat(n).map(function(t,n){return t=it(t),!i&&n?"["+t+"]":t}).join(i?".":""):n}let ir=nq.toFlatObject(nq,{},null,function(t){return/^is[A-Z]/.test(t)}),io=function(t,n,i){if(!nq.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(t,n)=>{let r=nq.getSafeProp(i,t);return nq.isUndefined(r)?n:r},o=r("metaTokens",!0),a=r("visitor")||f,s=r("dots",!1),l=r("indexes",!1),c=r("Blob")||"u">typeof Blob&&Blob,d=r("maxDepth",100),u=c&&nq.isSpecCompliantForm(n),h=[];if(!nq.isFunction(a))throw TypeError("visitor must be a function");function m(t){if(null===t)return"";if(nq.isDate(t))return t.toISOString();if(nq.isBoolean(t))return t.toString();if(!u&&nq.isBlob(t))throw new n9("Blob is not supported. Use a Buffer instead.");if(nq.isArrayBuffer(t)||nq.isTypedArray(t)){if(u&&"function"==typeof c)return new c([t]);throw new n9("Blob is not supported. Use a Buffer instead.",n9.ERR_NOT_SUPPORT)}return t}function p(t){if(t>d)throw new n9("Object is too deeply nested ("+t+" levels). Max depth: "+d,n9.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(t,i,r){let a=t;if(nq.isReactNative(n)&&nq.isReactNativeBlob(t))return n.append(ii(r,i,s),m(t)),!1;if(t&&!r&&"object"==typeof t)if(nq.endsWith(i,"{}"))i=o?i:i.slice(0,-2),t=function(t){if(1/0===d)return JSON.stringify(t);let n=[];return JSON.stringify(t,function(t,i){if(!nq.isObject(i))return i;for(;n.length&&n[n.length-1]!==this;)n.pop();return n.push(i),p(1+n.length-1),i})}(t);else{var c;if(nq.isArray(t)&&(c=t,nq.isArray(c)&&!c.some(ie))||(nq.isFileList(t)||nq.endsWith(i,"[]"))&&(a=nq.toArray(t)))return i=it(i),a.forEach(function(t,r){nq.isUndefined(t)||null===t||n.append(!0===l?ii([i],r,s):null===l?i:i+"[]",m(t))}),!1}return!!ie(t)||(n.append(ii(r,i,s),m(t)),!1)}let g=Object.assign(ir,{defaultVisitor:f,convertValue:m,isVisitable:ie});if(!nq.isObject(t))throw TypeError("data must be an object");return!function t(i,r,o=0){if(!nq.isUndefined(i)){if(p(o),-1!==h.indexOf(i))throw Error("Circular reference detected in "+r.join("."));h.push(i),nq.forEach(i,function(i,s){!0===(!(nq.isUndefined(i)||null===i)&&a.call(n,i,nq.isString(s)?s.trim():s,r,g))&&t(i,r?r.concat(s):[s],o+1)}),h.pop()}}(t),n};function ia(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(t){return n[t]})}function is(t,n){this._pairs=[],t&&io(t,this,n)}let il=is.prototype;function ic(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function id(t,n,i){let r;if(!n)return t;t=t||"";let o=nq.isFunction(i)?{serialize:i}:i,a=nq.getSafeProp(o,"encode")||ic,s=nq.getSafeProp(o,"serialize");if(r=s?s(n,o):nq.isURLSearchParams(n)?n.toString():new is(n,o).toString(a)){let n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}il.append=function(t,n){this._pairs.push([t,n])},il.toString=function(t){let n=t?n=>t.call(this,n,ia):ia;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let iu=Symbol("internals");function ih(t){return t?t.length:0}function im(t){if(t)for(;t.length&&null===t[t.length-1];)t.pop()}function ip(t,n){let i=t.handlers,r=ih(i);i!==n.handlersRef?(n.handlersRef=i,n.handlerEntries.clear()):r!==n.handlersLength&&(r?n.handlerEntries.forEach(function(t,r){i[t.index]!==t.handler&&n.handlerEntries.delete(r)}):n.handlerEntries.clear()),n.handlersLength=r}let ig=class{constructor(){this.handlers=[],this[iu]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(t,n,i){let r={fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null},o=this[iu];null==this.handlers&&(this.handlers=[]),ip(this,o);let a=o.nextId++;return this.handlers.push(r),o.handlerEntries.set(a,{handler:r,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,a}eject(t){let n=this[iu];ip(this,n);let i=n.handlerEntries.get(t);if(i){if(n.handlerEntries.delete(t),this.handlers[i.index]!==i.handler)return;this.handlers[i.index]=null,n.iterationDepth||(im(this.handlers),n.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],ip(this,this[iu]))}forEach(t){let n=this[iu];ip(this,n),n.iterationDepth++;try{nq.forEach(this.handlers,function(n){null!==n&&t(n)})}finally{--n.iterationDepth||(ip(this,n),im(this.handlers),n.handlersLength=ih(this.handlers))}}},ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},i_="u">typeof URLSearchParams?URLSearchParams:is,iy="u">typeof FormData?FormData:null,iv="u">typeof Blob?Blob:null,ix="u">typeof window&&"u">typeof document,iw="object"==typeof navigator&&navigator||void 0,iF=ix&&(!iw||0>["ReactNative","NativeScript","NS"].indexOf(iw.product)),ik="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,iE=ix&&window.location.href||"http://localhost",iC={...E,isBrowser:!0,classes:{URLSearchParams:i_,FormData:iy,Blob:iv},protocols:["http","https","file","blob","url","data"]};function iT(t){if(t>100)throw new n9("FormData field is too deeply nested ("+t+" levels). Max depth: 100",n9.ERR_FORM_DATA_DEPTH_EXCEEDED)}let iA=function(t){if(nq.isFormData(t)&&nq.isFunction(t.entries)){let n={};return nq.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){iT(o);let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&nq.isArray(r)?r.length:a,l)?nq.hasOwnProp(r,a)?r[a]=nq.isArray(r[a])?r[a].concat(i):[r[a],i]:r[a]=i:(nq.hasOwnProp(r,a)&&nq.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&nq.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}(function(t){let n,i=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(n=r.exec(t));)iT(i.length),i.push("[]"===n[0]?"":n[1]||n[0]);return i}(t),i,n,0)}),n}return null},iS=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),iM=(t,n)=>null!=t&&nq.hasOwnProp(t,n)?t[n]:void 0,iD={transitional:ib,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=nq.isObject(t);if(a&&nq.isHTMLForm(t)&&(t=new FormData(t)),nq.isFormData(t))return o?JSON.stringify(iA(t)):t;if(nq.isArrayBuffer(t)||nq.isBuffer(t)||nq.isStream(t)||nq.isFile(t)||nq.isBlob(t)||nq.isReadableStream(t))return t;if(nq.isArrayBufferView(t))return t.buffer;if(nq.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){let n=iM(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return io(t,new iC.classes.URLSearchParams,{visitor:function(t,n,i,r){return iC.isNode&&nq.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...n}).toString();if((i=nq.isFileList(t))||r.indexOf("multipart/form-data")>-1){let r=iM(this,"env"),o=r&&r.FormData;return io(i?{"files[]":t}:t,o&&new o,n)}}if(a||o){n.setContentType("application/json",!1);var s=t;if(nq.isString(s))try{return(0,JSON.parse)(s),nq.trim(s)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(s)}return t}],transformResponse:[function(t){let n=iM(this,"transitional")||iD.transitional,i=n&&n.forcedJSONParsing,r=iM(this,"responseType"),o="json"===r;if(nq.isResponse(t)||nq.isReadableStream(t))return t;if(t&&nq.isString(t)&&(i&&!r||o)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,iM(this,"parseReviver"))}catch(t){if(!i&&o){if("SyntaxError"===t.name)throw n9.from(t,n9.ERR_BAD_RESPONSE,this,null,iM(this,"response"));throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iC.classes.FormData,Blob:iC.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function iL(t,n){let i=this||iD,r=n||i,o=n4.from(r.headers),a=r.data;return nq.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iI(t){return!!(t&&t.__CANCEL__)}nq.forEach(iS,t=>{iD.headers[t]={}});let iR=class extends n9{constructor(t,n,i){super(null==t?"canceled":t,n9.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iO(t,n,i){let r=i.config.validateStatus;!i.status||!r||r(i.status)?t(i):n(new n9("Request failed with status code "+i.status,i.status>=400&&i.status<500?n9.ERR_BAD_REQUEST:n9.ERR_BAD_RESPONSE,i.config,i.request,i))}let iP=/[\t\n\r]/g;function i$(t){if("string"!=typeof t)return t;let n=0;for(;n<t.length&&32>=t.charCodeAt(n);)n++;return t.slice(n).replace(iP,"")}function iB(t){let n=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return n&&n[1]||""}let iN=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}},iz=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),(...t)=>s(t)]},ij=(t,n,i=3)=>{let r=0,o=iN(50,250);return iz(i=>{if(!i||!nq.isNumber(i.loaded))return;let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=Math.max(0,null!=s?Math.min(a,s):a),c=Math.max(0,l-r),d=o(c);r=Math.max(r,l),t({loaded:l,total:s,progress:s?l/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-l)/d:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},iY=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iH=(t,n=nq.asap)=>(...i)=>n(()=>t(...i)),iU=iC.hasStandardBrowserEnv?(m=new URL(iC.origin),p=iC.navigator&&/(msie|trident)/i.test(iC.navigator.userAgent),t=>(t=new URL(t,iC.origin),m.protocol===t.protocol&&m.host===t.host&&(p||m.port===t.port))):()=>!0,iV=iC.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];nq.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),nq.isString(r)&&l.push(`path=${r}`),nq.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),nq.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.split(";");for(let i=0;i<n.length;i++){let r=n[i].replace(/^\s+/,""),o=r.indexOf("=");if(-1!==o&&r.slice(0,o)===t)try{return decodeURIComponent(r.slice(o+1))}catch(t){return r.slice(o+1)}}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},iW=/^https?:(?!\/\/)/i;function iq(t,n){if("string"==typeof t){let r=i$(t);if(iW.test(r)){var i;let t,o,a;throw new n9(`Invalid URL ${JSON.stringify((a=(-1===(o=(t=r.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${n6}@`)).indexOf("#"))?t:t.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${n6}`),-1===o?a:`${a}#${!(i=t.slice(o+1))?i:i.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,n,i="")=>`${n}${i}${n6}`)}`))}: missing "//" after protocol`,n9.ERR_INVALID_URL,n)}}}function iG(t,n,i,r){iq(n,r);let o=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));if(t&&(o||!1===i)){iq(t,r);if(!n)return t;let i=t.length;for(;i>0&&47===t.charCodeAt(i-1);)i--;return t.slice(0,i)+"/"+n.replace(/^\/+/,"")}return n}let iK=t=>t instanceof n4?{...t}:t;function iX(t,n){var i;t=t||{},n=n||{};let r=Object.create(null);function o(t,n,i,r){return nq.isPlainObject(t)&&nq.isPlainObject(n)?nq.merge.call({caseless:r},t,n):nq.isPlainObject(n)?nq.merge({},n):nq.isArray(n)?n.slice():n}function a(t,n,i,r){return nq.isUndefined(n)?nq.isUndefined(t)?void 0:o(void 0,t,i,r):o(t,n,i,r)}function s(t,n){if(!nq.isUndefined(n))return o(void 0,n)}function l(t,n){return nq.isUndefined(n)?nq.isUndefined(t)?void 0:o(void 0,t):o(void 0,n)}function c(i,r,a){return nq.hasOwnProp(n,a)?o(i,r):nq.hasOwnProp(t,a)?o(void 0,i):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let d={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutErrorMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,allowedSocketPaths:l,responseEncoding:l,validateStatus:c,headers:(t,n,i)=>a(iK(t),iK(n),i,!0)};return nq.forEach((i={...t,...n},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(i).concat(Object.getOwnPropertySymbols(i).filter(t=>Object.getOwnPropertyDescriptor(i,t).enumerable)):Object.keys(i)),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let o=nq.hasOwnProp(d,i)?d[i]:a,s=o(nq.hasOwnProp(t,i)?t[i]:void 0,nq.hasOwnProp(n,i)?n[i]:void 0,i);nq.isUndefined(s)&&o!==c||(r[i]=s)}),nq.hasOwnProp(n,"validateStatus")&&nq.isUndefined(n.validateStatus)&&!1===function(i){let r=nq.hasOwnProp(n,"transitional")?n.transitional:void 0;if(!nq.isUndefined(r)){if(!nq.isPlainObject(r))return;else if(nq.hasOwnProp(r,i))return r[i]}let o=nq.hasOwnProp(t,"transitional")?t.transitional:void 0;if(nq.isPlainObject(o)&&nq.hasOwnProp(o,i))return o[i]}("validateStatusUndefinedResolves")&&(nq.hasOwnProp(t,"validateStatus")?r.validateStatus=o(void 0,t.validateStatus):delete r.validateStatus),r}let iZ=["content-type","content-length"],iJ=function(t){let n=iX({},t),i=t=>nq.hasOwnProp(n,t)?n[t]:void 0,r=i("data"),o=i("withXSRFToken"),a=i("xsrfHeaderName"),s=i("xsrfCookieName"),l=i("headers"),c=i("auth"),d=i("baseURL"),u=i("allowAbsoluteUrls"),h=i("url");if(n.headers=l=n4.from(l),n.url=id(iG(d,h,u,n),i("params"),i("paramsSerializer")),c){let n=nq.getSafeProp(c,"username")||"",i=nq.getSafeProp(c,"password")||"";try{l.set("Authorization","Basic "+btoa(n+":"+(i?encodeURIComponent(i).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))):"")))}catch(n){throw n9.from(n,n9.ERR_BAD_OPTION_VALUE,t)}}if(nq.isFormData(r)){let t=nq.getSafeProp(r,"getHeaders");if(iC.hasStandardBrowserEnv||iC.hasStandardBrowserWebWorkerEnv||nq.isReactNative(r))l.setContentType(void 0);else{var m,p;nq.isFunction(t)&&(m=l,p=t.call(r),"content-only"!==i("formDataHeaderPolicy")?m.set(p):Object.entries(p||{}).forEach(([t,n])=>{iZ.includes(t.toLowerCase())&&m.set(t,n)}))}}if(iC.hasStandardBrowserEnv&&(nq.isFunction(o)&&(o=o(n)),!0===o||null==o&&iU(n.url))){let t=a&&s&&iV.read(s);t&&l.set(a,t)}return n},iQ="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){let r,o,a,s,l,c,d=iJ(t),u=d.data,h=n4.from(d.headers).normalize(),{responseType:m,onUploadProgress:p,onDownloadProgress:f}=d;function g(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let b=new XMLHttpRequest;function _(r){if(!b)return;if(0===b.status&&"file"!==(iB(i$(d.url))||iB(iC.origin))&&!(b.responseURL&&b.responseURL.startsWith("file:"))){i(new n9("Request aborted",n9.ECONNABORTED,t,b)),g(),b=null;return}try{r?c&&c(r):l&&l()}catch(t){setTimeout(()=>{throw t})}if(!b)return;let o=n4.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());iO(function(t){n(t),g()},function(t){i(t),g()},{data:m&&"text"!==m&&"json"!==m?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:o,config:t,request:b}),b=null}b.open(d.method.toUpperCase(),d.url,!0),b.timeout=d.timeout,"onloadend"in b?b.onloadend=_:b.onreadystatechange=function(){!b||4!==b.readyState||(0!==b.status||b.responseURL&&b.responseURL.startsWith("file:"))&&setTimeout(_)},b.onabort=function(){b&&(i(new n9("Request aborted",n9.ECONNABORTED,t,b)),g(),b=null)},b.onerror=function(n){let r=new n9(n&&n.message?n.message:"Network Error",n9.ERR_NETWORK,t,b);r.event=n||null,i(r),g(),b=null},b.ontimeout=function(){let n=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",r=d.transitional||ib;d.timeoutErrorMessage&&(n=d.timeoutErrorMessage),i(new n9(n,r.clarifyTimeoutError?n9.ETIMEDOUT:n9.ECONNABORTED,t,b)),g(),b=null},void 0===u&&h.setContentType(null),"setRequestHeader"in b&&nq.forEach(nJ(h),function(t,n){b.setRequestHeader(n,t)}),nq.isUndefined(d.withCredentials)||(b.withCredentials=!!d.withCredentials),m&&"json"!==m&&(b.responseType=d.responseType),f&&([a,l,c]=ij(f,!0),b.addEventListener("progress",a)),p&&b.upload&&([o,s]=ij(p),b.upload.addEventListener("progress",o),b.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(r=n=>{b&&(i(!n||n.type?new iR(null,t,b):n),b.abort(),g(),b=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=iB(d.url);if(y&&!iC.protocols.includes(y)){i(new n9("Unsupported protocol "+y+":",n9.ERR_BAD_REQUEST,t)),g();return}b.send(u||null)})},i0=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},i1=async function*(t,n){for await(let i of i2(t))yield*i0(i,n)},i2=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()}},i3=(t,n,i,r)=>{let o,a=i1(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})},i5=t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102,i4=(t,n,i)=>n+2<i&&i5(t.charCodeAt(n+1))&&i5(t.charCodeAt(n+2)),i6=t=>t<=57?t-48:(223&t)-55,i8=t=>t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||43===t||47===t||45===t||95===t,i7=t=>9===t||10===t||12===t||13===t||32===t,i9=t=>{var n;let i,r,o=t.length,a=0,s=0,l=!1;for(let n=0;n<o;n++){let i=t.charCodeAt(n);if(37===i&&i4(t,n,o)&&(i=16*i6(t.charCodeAt(n+1))+i6(t.charCodeAt(n+2)),n+=2),!i7(i)){if(61===i){s++;continue}if(!i8(i)||s>0){l=!0;continue}a++}}if(l||s>2||s>0&&(a+s)%4!=0||a%4==1){let n,i;return n=t.length,i=0,n>0&&61===t.charCodeAt(n-1)&&(i++,n>1&&61===t.charCodeAt(n-2)&&i++),Math.floor((n-i)*3/4)}return i=Math.floor((n=a)/4),3*i+(2==(r=n%4)?1:2*(3===r))},re={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:rt}=nq,rn=t=>{if(!nq.isString(t))return t;try{return decodeURIComponent(t)}catch(n){return t}},ri=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},rr=t=>{let n,i=void 0!==nq.global&&null!==nq.global?nq.global:globalThis,{ReadableStream:r,TextEncoder:o}=i,{fetch:a,Request:s,Response:l}=t=nq.merge.call({skipUndefined:!0},{Request:i.Request,Response:i.Response},t),c=a?rt(a):"function"==typeof fetch,d=rt(s),u=rt(l);if(!c)return!1;let h=c&&rt(r),m=c&&("function"==typeof o?(n=new o,t=>n.encode(t)):async t=>new Uint8Array(await new s(t).arrayBuffer())),p=d&&h&&ri(()=>{let t=!1,n=new s(iC.origin,{body:new r,method:"POST",get duplex(){return t=!0,"half"}}),i=n.headers.has("Content-Type");return null!=n.body&&n.body.cancel(),t&&!i}),f=u&&h&&ri(()=>nq.isReadableStream(new l("").body)),g={stream:f&&(t=>t.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{g[t]||(g[t]=(n,i)=>{let r=n&&n[t];if(r)return r.call(n);throw new n9(`Response type '${t}' is not supported`,n9.ERR_NOT_SUPPORT,i)})});let b=async t=>{if(null==t)return 0;if(nq.isBlob(t))return t.size;if(nq.isSpecCompliantForm(t)){let n=new s(iC.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return nq.isArrayBufferView(t)||nq.isArrayBuffer(t)?t.byteLength:(nq.isURLSearchParams(t)&&(t+=""),nq.isString(t))?(await m(t)).byteLength:void 0},_=async(t,n)=>{let i=nq.toFiniteNumber(t.getContentLength());return null==i?b(n):i};return async t=>{let n,{url:i,method:r,data:c,signal:u,cancelToken:m,timeout:y,onDownloadProgress:v,onUploadProgress:x,responseType:w,headers:F,withCredentials:k="same-origin",fetchOptions:E,maxContentLength:C,maxBodyLength:T,maxRedirects:A}=iJ(t),S=nq.isNumber(C)&&C>-1,M=nq.isNumber(T)&&T>-1,D=a||fetch;w=w?(w+"").toLowerCase():"text";let L=((t,n)=>{if(t=t?t.filter(Boolean):[],!n&&!t.length)return;let i=new AbortController,r=!1,o=function(t){if(!r){r=!0,s();let n=t instanceof Error?t:this.reason;i.abort(n instanceof n9?n:new iR(n instanceof Error?n.message:n))}},a=n&&setTimeout(()=>{a=null,o(new n9(`timeout of ${n}ms exceeded`,n9.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=>{if(!r){if(t.aborted)return void o.call(t);t.addEventListener("abort",o,{once:!0})}});let{signal:l}=i;return l.unsubscribe=()=>nq.asap(s),l})([u,m&&m.toAbortSignal()],y),I=null,R=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),O=null,P=()=>new n9("Request body larger than maxBodyLength limit",n9.ERR_BAD_REQUEST,t,I);try{var $,B;let a,u,m,y,N=(u="auth",nq.hasOwnProp(t,u)?t[u]:void 0);if(N){let t=nq.getSafeProp(N,"username")||"",n=nq.getSafeProp(N,"password")||"";a={username:t,password:n}}if(m=($=i).indexOf("://"),y=$,-1!==m&&(y=y.slice(m+3)),y.includes("@")||y.includes(":")){let t=new URL(i,iC.origin);if(!a&&(t.username||t.password)){let n=rn(t.username),i=rn(t.password);a={username:n,password:i}}(t.username||t.password)&&(t.username="",t.password="",i=t.href)}if(a){let t;F.delete("authorization"),F.set("Authorization","Basic "+btoa((t=(a.username||"")+":"+(a.password||""),encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))))))}if(S&&"string"==typeof i&&i.startsWith("data:")){let n;if(B=i,n="string"==typeof B?B.indexOf("#"):-1,((t,n)=>{if(!t||"string"!=typeof t||!t.startsWith("data:"))return 0;let i=t.indexOf(",");if(i<0)return 0;let r=t.slice(5,i),o=t.slice(i+1);if(/;base64/i.test(r))return n(o);let a=0;for(let t=0,n=o.length;t<n;t++){let i=o.charCodeAt(t);if(37===i&&i4(o,t,n))a+=1,t+=2;else if(i<128)a+=1;else if(i<2048)a+=2;else if(i>=55296&&i<=56319&&t+1<n){let n=o.charCodeAt(t+1);n>=56320&&n<=57343?(a+=4,t++):a+=3}else a+=3}return a})(-1===n?B:B.slice(0,n),i9)>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}if(M&&"get"!==r&&"head"!==r){let t=await b(c);if("number"==typeof t&&isFinite(t)&&(n=t,t>T))throw P()}let z=M&&(nq.isReadableStream(c)||nq.isStream(c)),j=(t,n,i)=>i3(t,65536,t=>{if(M&&t>T)throw O=P();n&&n(t)},i);if(p&&"get"!==r&&"head"!==r&&(x||z)){if(n=null==n?await _(F,c):n,0!==n||z){let t,r=new s(i,{method:"POST",body:c,duplex:"half"});if(nq.isFormData(c)&&(t=r.headers.get("content-type"))&&F.setContentType(t),r.body){let[t,i]=x&&iY(n,ij(iH(x)))||[];c=j(r.body,t,i)}}}else if(z&&!d&&h&&"get"!==r&&"head"!==r)c=j(c);else if(z&&d&&!p&&"get"!==r&&"head"!==r)throw new n9("Stream request bodies are not supported by the current fetch implementation",n9.ERR_NOT_SUPPORT,t,I);nq.isString(k)||(k=k?"include":"omit");let Y=d&&"credentials"in s.prototype;if(nq.isFormData(c)){let t=F.getContentType();t&&/^multipart\/form-data/i.test(t)&&!/boundary=/i.test(t)&&F.delete("content-type")}F.set("User-Agent","axios/1.20.0",!1);let H=null==E?E:Object.assign(Object.create(null),E);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let U=Object.assign(Object.create(null),H,{signal:L,method:r.toUpperCase(),headers:nJ(F.normalize()),body:c,duplex:"half",credentials:Y?k:void 0});d&&(nq.forEach(re,(t,n)=>{void 0===U[n]&&(U[n]=t)}),void 0===U.signal&&(U.signal=null),void 0===U.body&&(U.body=null)),0===A&&(U.redirect="manual",H&&(H.redirect="manual")),I=d&&new s(i,U);let V=await (d?D(I,H):D(i,U)),W=n4.from(V.headers);if(S){let n=nq.toFiniteNumber(W.getContentLength());if(null!=n&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}let q=f&&("stream"===w||"response"===w);if(f&&V.body&&(v||S||q&&R)){let n={};["status","statusText","headers"].forEach(t=>{n[t]=V[t]});let i=nq.toFiniteNumber(W.getContentLength()),[r,o]=v&&iY(i,ij(iH(v),!0))||[];V=new l(i3(V.body,65536,n=>{if(S&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I);r&&r(n)},()=>{o&&o(),R&&R()}),n)}w=w||"text";let G=await g[nq.findKey(g,w)||"text"](V,t);if(S&&!f&&!q){let n;if(null!=G&&("number"==typeof G.byteLength?n=G.byteLength:"number"==typeof G.size?n=G.size:"string"==typeof G&&(n="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof n&&n>C)throw new n9("maxContentLength size of "+C+" exceeded",n9.ERR_BAD_RESPONSE,t,I)}return!q&&R&&R(),await new Promise((n,i)=>{iO(n,i,{data:G,headers:n4.from(V.headers),status:V.status,statusText:V.statusText,config:t,request:I})})}catch(n){if(R&&R(),L&&L.aborted&&L.reason instanceof n9){let i=L.reason;throw i.config=t,I&&(i.request=I),n!==i&&Object.defineProperty(i,"cause",{__proto__:null,value:n,writable:!0,enumerable:!1,configurable:!0}),i}if(O)throw I&&!O.request&&(O.request=I),O;if(n instanceof n9)throw I&&!n.request&&(n.request=I),n;if(n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message)){let i=new n9("Network Error",n9.ERR_NETWORK,t,I,n&&n.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:n.cause||n,writable:!0,enumerable:!1,configurable:!0}),i}throw n9.from(n,n&&n.code,t,I,n&&n.response)}}},ro=new Map,ra=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=ro;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:rr(n)),d=c;return c};ra();let rs={http:null,xhr:iQ,fetch:{get:ra}};nq.forEach(rs,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:n})}catch(t){}Object.defineProperty(t,"adapterName",{__proto__:null,value:n})}});let rl=t=>`- ${t}`,rc=t=>nq.isFunction(t)||null===t||!1===t,rd=function(t,n){let i,r,{length:o}=t=nq.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!rc(i)&&void 0===(r=rs[(o=String(i)).toLowerCase()]))throw new n9(`Unknown adapter '${o}'`);if(r&&(nq.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 n9("There is no suitable adapter to dispatch the request "+(o?t.length>1?"since :\n"+t.map(rl).join("\n"):" "+rl(t[0]):"as no adapter specified"),n9.ERR_NOT_SUPPORT)}return r};function ru(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iR(null,t)}function rh(t){let n=nq.toSafeFlatObject(t);return ru(n),n.headers=n4.from(nq.getSafeProp(n,"headers")),n.data=iL.call(n,n.transformRequest),-1!==["post","put","patch"].indexOf(n.method)&&n.headers.setContentType("application/x-www-form-urlencoded",!1),rd(n.adapter||iD.adapter,n)(n).then(function(t){ru(n),n.response=t;try{t.data=iL.call(n,n.transformResponse,t)}finally{delete n.response}return t.headers=n4.from(t.headers),t},function(t){if(!iI(t)&&(ru(n),t&&t.response)){n.response=t.response;try{t.response.data=iL.call(n,n.transformResponse,t.response)}finally{delete n.response}t.response.headers=n4.from(t.response.headers)}return Promise.reject(t)})}let rm={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rm[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rp={};rm.transitional=function(t,n,i){function r(t,n){return"[Axios v1.20.0] Transitional option '"+t+"'"+n+(i?". "+i:"")}return(i,o,a)=>{if(!1===t)throw new n9(r(o," has been removed"+(n?" in "+n:"")),n9.ERR_DEPRECATED);return n&&!rp[o]&&(rp[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)}},rm.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let rf=function(t,n,i){if("object"!=typeof t||null===t)throw new n9("options must be an object",n9.ERR_BAD_OPTION_VALUE);let r=Object.keys(t),o=r.length;for(;o-- >0;){let a=r[o],s=Object.prototype.hasOwnProperty.call(n,a)?n[a]:void 0;if(s){let n=t[a],i=void 0===n||s(n,a,t);if(!0!==i)throw new n9("option "+a+" must be "+i,n9.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new n9("Unknown option "+a,n9.ERR_BAD_OPTION)}};class rg{constructor(t){this.defaults=t||{},this.interceptors={request:new ig,response:new ig}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error)try{let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack,r="";if("string"==typeof i){let t=i.indexOf("\n");r=-1===t?"":i.slice(t+1)}if(t.stack){if(r){let n=r.indexOf("\n"),i=-1===n?-1:r.indexOf("\n",n+1),o=-1===i?"":r.slice(i+1);String(t.stack).endsWith(o)||(t.stack+="\n"+r)}}else t.stack=r}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=iX(this.defaults,n);void 0!==o&&rf(o,{silentJSONParsing:rm.transitional(rm.boolean),forcedJSONParsing:rm.transitional(rm.boolean),clarifyTimeoutError:rm.transitional(rm.boolean),legacyInterceptorReqResOrdering:rm.transitional(rm.boolean),advertiseZstdAcceptEncoding:rm.transitional(rm.boolean),validateStatusUndefinedResolves:rm.transitional(rm.boolean)},!1),null!=a&&(nq.isFunction(a)?n.paramsSerializer={serialize:a}:rf(a,{encode:rm.function,serialize:rm.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),rf(n,{baseUrl:rm.spelling("baseURL"),withXsrfToken:rm.spelling("withXSRFToken")},!0),n.method=(nq.getSafeProp(n,"method")||nq.getSafeProp(this.defaults,"method")||"get").toLowerCase();let l=s&&nq.merge(s.common,s[n.method]);s&&nq.forEach(iS.concat("common"),t=>{delete s[t]}),n.headers=n4.concat(l,s);let c=[],d=!0;this.interceptors.request.forEach(function(t){if("function"==typeof t.runWhen&&!1===t.runWhen(n))return;d=d&&t.synchronous;let i=n.transitional||ib;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let u=[];this.interceptors.response.forEach(function(t){u.push(t.fulfilled,t.rejected)});let h=0;if(!d){let t=[rh.bind(this),void 0];for(t.unshift(...c),t.push(...u),r=t.length,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?t(m):m}catch(t){if(!n){i=Promise.reject(t);break}try{let r=n.call(this,t);nq.isThenable(r)&&(i=Promise.resolve(r).then(()=>rh.call(this,m)))}catch(t){i=Promise.reject(t)}break}}if(!i)try{i=rh.call(this,m)}catch(t){i=Promise.reject(t)}for(h=0,r=u.length;h<r;)i=i.then(u[h++],u[h++]);return i}getUri(t){return id(iG((t=iX(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls,t),t.params,t.paramsSerializer)}}nq.forEach(["delete","get","head","options"],function(t){rg.prototype[t]=function(n,i){return this.request(iX(i||{},{method:t,url:n,data:i&&nq.hasOwnProp(i,"data")?i.data:void 0}))}}),nq.forEach(["post","put","patch","query"],function(t){function n(n){return function(i,r,o){return this.request(iX(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rg.prototype[t]=n(),"query"!==t&&(rg.prototype[t+"Form"]=n(!0))});let rb=class t{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 iR(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 n;return{token:new t(function(t){n=t}),cancel:n}}},r_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent: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,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(r_).forEach(([t,n])=>{void 0===r_[n]&&(r_[n]=t)});let ry=function t(n){let i=new rg(n),r=nt(rg.prototype.request,i);return nq.extend(r,rg.prototype,i,{allOwnKeys:!0}),nq.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iX(n,i))},r}(iD);ry.Axios=rg,ry.CanceledError=iR,ry.CancelToken=rb,ry.isCancel=iI,ry.VERSION="1.20.0",ry.toFormData=io,ry.AxiosError=n9,ry.Cancel=ry.CanceledError,ry.all=function(t){return Promise.all(t)},ry.spread=function(t){return function(n){return t.apply(null,n)}},ry.isAxiosError=function(t){return nq.isObject(t)&&!0===t.isAxiosError},ry.mergeConfig=iX,ry.AxiosHeaders=n4,ry.formToJSON=t=>iA(nq.isHTMLForm(t)?new FormData(t):t),ry.getAdapter=rd,ry.HttpStatusCode=r_,ry.default=ry;class rv{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rY`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rY`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rY`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rY`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rY`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rY`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rY`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rY`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rY`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rY`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`rules/${t}`,data:n,options:i})}}class rx{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rY`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rY`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rw{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rY`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rY`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rY`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rY`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rY`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rY`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rY`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rY`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rY`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rY`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rY`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rY`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rY`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rY`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`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:rY`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rY`asset/${t}/child`,queryParams:n,options:i})}}class rF{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rY`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rY`info`,options:t})}}class rk{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rY`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rY`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rY`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rY`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rY`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rY`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rY`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rY`alarm/${t}/assets`,queryParams:n,options:i})}}class rE{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rY`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rY`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rY`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rY`provisioning/${t}`,data:n,options:i})}}class rC{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rY`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rY`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rY`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rY`configuration/manager/image/${t}`,options:n})}}class rT{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`asset/predicted/${t}/${n}`,data:i,options:r})}}class rA{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rY`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rY`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rS{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rY`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rY`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rY`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rY`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rY`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rY`service/${t}/${n}`,options:i})}}class rM{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rY`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rY`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rY`notification/alert`,data:t,options:n})}getNotificationsCount(t,n){return this.httpClient.request({method:"GET",url:rY`notification/count`,queryParams:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rY`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rY`notification/${t}/delivered`,queryParams:n,options:i})}}class rD{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rY`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rY`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rY`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rY`model/valueDescriptors`,queryParams:t,options:n})}}class rL{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rY`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rY`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rY`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rY`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rY`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rY`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rY`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rY`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rY`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rY`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rY`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rY`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rY`user/${t}/${n}`,options:i})}}class rI{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rY`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rY`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rY`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rY`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rY`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rY`map/upload`,queryParams:t,options:n})}}class rR{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rY`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rY`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rY`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rY`gateway/status/${t}`,options:n})}}class rO{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rY`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rY`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rY`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rY`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rY`realm/${t}`,data:n,options:i})}}class rP{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rY`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rY`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rY`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rY`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rY`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rY`dashboard/${t}/${n}`,options:i})}}class r${constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rY`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rY`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rY`apps/info`,options:t})}}class rB{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rY`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rY`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rY`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class rN{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rY`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rY`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rY`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rY`syslog/event`,queryParams:t,options:n})}}class rz{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rY`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rY`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rY`flow/${t}`,options:n})}}class rj{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rY`console/register`,data:t,options:n})}}function rY(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 rH{constructor(t,n=ry.create()){this._rulesResource=new rV(t,n),this._assetDatapointResource=new rW(t,n),this._assetResource=new rq(t,n),this._statusResource=new rG(t,n),this._alarmResource=new rK(t,n),this._provisioningResource=new rX(t,n),this._configurationResource=new rZ(t,n),this._assetPredictedDatapointResource=new rJ(t,n),this._gatewayServiceResource=new rQ(t,n),this._externalServiceResource=new r0(t,n),this._notificationResource=new r1(t,n),this._assetModelResource=new r2(t,n),this._userResource=new r3(t,n),this._mapResource=new r5(t,n),this._gatewayClientResource=new r4(t,n),this._realmResource=new r6(t,n),this._dashboardResource=new r8(t,n),this._appResource=new r7(t,n),this._agentResource=new r9(t,n),this._syslogResource=new oe(t,n),this._flowResource=new ot(t,n),this._consoleResource=new on(t,n),this._assetResource=new rq(t,n)}get RulesResource(){return this._rulesResource}get AssetDatapointResource(){return this._assetDatapointResource}get AssetResource(){return this._assetResource}get StatusResource(){return this._statusResource}get AlarmResource(){return this._alarmResource}get ProvisioningResource(){return this._provisioningResource}get ConfigurationResource(){return this._configurationResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get ExternalServiceResource(){return this._externalServiceResource}get NotificationResource(){return this._notificationResource}get AssetModelResource(){return this._assetModelResource}get UserResource(){return this._userResource}get MapResource(){return this._mapResource}get GatewayClientResource(){return this._gatewayClientResource}get RealmResource(){return this._realmResource}get DashboardResource(){return this._dashboardResource}get AppResource(){return this._appResource}get AgentResource(){return this._agentResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get ConsoleResource(){return this._consoleResource}}class rU{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 rV extends rv{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rW extends rx{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rq extends rw{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rG extends rF{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rK extends rk{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rX extends rE{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rZ extends rC{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rJ extends rT{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class rQ extends rA{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r0 extends rS{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r1 extends rM{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r2 extends rD{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r3 extends rL{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r5 extends rI{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r4 extends rR{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r6 extends rO{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r8 extends rP{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r7 extends r${constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class r9 extends rB{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class oe extends rN{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class ot extends rz{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}class on extends rj{constructor(t,n=ry.create()){n.defaults.baseURL=t,super(new rU(n))}}var oi=i(88183),or=i.n(oi);ry.isAxiosError;let oo=new class{get api(){return this._client}constructor(){this._axiosInstance=ry.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>or().stringify(t,{arrayFormat:"repeat"}),t))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(t){this._axiosInstance.defaults.timeout=t}addRequestInterceptor(t){this._axiosInstance.interceptors.request.use(t)}initialise(t){this._baseUrl=t,this._client=new rH(t,this._axiosInstance)}};var oa=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())})};(fs=gb||(gb={})).DISCONNECTED="DISCONNECTED",fs.CONNECTED="CONNECTED",fs.CONNECTING="CONNECTING";let os="SUBSCRIBED:",ol="UNAUTHORIZED:",oc="TRIGGERED:",od="EVENT:";class ou{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=gb.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(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===gb.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(gb.CONNECTING),this._connectingDeferred=new tG,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=oh.MIN_RECONNECT_DELAY,this._onStatusChanged(gb.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),n.resolve(t)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==gb.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new tG};return null!=this._pendingSubscription||this._status!==gb.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(console.error(t),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 oa(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}})}sendEvent(t){this._status===gb.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==gb.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+ou._subscriptionCounter++;if(!this._assetEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let 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===o0.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 oa(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0],o=r?t.map(t=>t.id):t,a=r?t:void 0,s="AttributeEvent"+ou._subscriptionCounter++;if(!this._attributeEventPromise){let t;o0.authenticated||(t={filterType:"asset",realm:o0.displayRealm});let 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===o0.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===gb.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===gb.CONNECTED&&this._onStatusChanged(gb.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(gb.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<oh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(oh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}ou.MIN_RECONNECT_DELAY=0,ou.MAX_RECONNECT_DELAY=3e4,ou._subscriptionCounter=0;class oh extends ou{get endpointUrl(){return this._endpointUrl}constructor(t){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(t.startsWith("https:")?"wss":"ws")+"://"+t.substr(t.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let t=this._endpointUrl+"?Realm="+o0.config.realm;return this._connectDeferred=new tG,(o0.authenticated?o0.retrieveAuthorizationHeader().then(n=>{t+="&Authorization="+n}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(t),this._webSocket.onopen=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(console.error("Event provider error:",t),this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(os)){let t=JSON.parse(n.substring(os.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(ol)){let t=JSON.parse(n.substring(ol.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(oc)){let t=JSON.parse(n.substring(oc.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(od)){let t=JSON.parse(n.substring(od.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 tG,t.subscriptionId||(t.subscriptionId=oh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(t)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(t){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:t}))}_doSend(t){let n=od+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 tG;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(od+JSON.stringify(t)),n.promise}}oh._subscriptionCounter=1;let om=["__proto__","constructor","prototype"];function op(t){return!("string"!=typeof t||0===t.length||t.length>128||om.indexOf(t)>-1||t.indexOf("..")>-1||t.indexOf("\\")>-1||/[?#%:\s]/.test(t)||/[\x00-\x1F\x7F]/.test(t))}function of(t){return!(!op(t)||t.indexOf("/")>-1||t.indexOf("@")>-1)}let og={lng:of,ns:function(t){return!(!op(t)||t.indexOf("//")>-1)}};function ob(t){return"string"!=typeof t?t:t.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function o_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let oy=/\{\{(.+?)\}\}/g;function ov(t,n){let i=!1,r=t.replace(oy,(t,r)=>{let o=r.trim();if(om.indexOf(o)>-1)return t;let a=n[o];if(null==a)return t;let s=og[o]||of,l=String(a).split("+");for(let n of l)if(!s(n))return i=!0,t;return l.join("+")});return i?null:r}let ox="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?t=fetch:ox&&"function"==typeof ox.fetch&&(t=ox.fetch);let ow=o_()&&ox?ox.XMLHttpRequest:void 0,oF="function"==typeof ActiveXObject&&ox?ox.ActiveXObject:void 0,ok=["__proto__","constructor","prototype"],oE=(t,n)=>{if(n&&"object"==typeof n){let i="";for(let t of Object.keys(n))ok.indexOf(t)>-1||(i+="&"+encodeURIComponent(t)+"="+encodeURIComponent(n[t]));if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oC=(n,i,r,o)=>{let a=t=>{if(!t.ok)return r(t.statusText||"Error",{status:t.status});t.text().then(n=>{r(null,{status:t.status,data:n})}).catch(r)};if(o){let t=o(n,i);if(t instanceof Promise)return void t.then(a).catch(r)}"function"==typeof fetch?fetch(n,i).then(a).catch(r):t(n,i).then(a).catch(r)},oT=(n,i,r,o)=>{if("function"==typeof r&&(o=r,r=void 0),o=o||(()=>{}),t&&0!==i.indexOf("file:")){var a=i,s=r,l=o;n.queryStringParams&&(a=oE(a,n.queryStringParams));let t={..."function"==typeof n.customHeaders?n.customHeaders():n.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(t["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),s&&(t["Content-Type"]="application/json");let c="function"==typeof n.requestOptions?n.requestOptions(s):n.requestOptions,d={method:s?"POST":"GET",body:s?n.stringify(s):void 0,headers:t,...n._omitFetchOptions?{}:c},u="function"==typeof n.alternateFetch&&n.alternateFetch.length>=1?n.alternateFetch:void 0;try{oC(a,d,l,u)}catch(t){if(!c||0===Object.keys(c).length||!t.message||0>t.message.indexOf("not implemented"))return l(t);try{Object.keys(c).forEach(t=>{delete d[t]}),oC(a,d,l,u),n._omitFetchOptions=!0}catch(t){l(t)}}return}if(o_()||"function"==typeof ActiveXObject){var c=i,d=r,u=o;d&&"object"==typeof d&&(d=oE("",d).slice(1)),n.queryStringParams&&(c=oE(c,n.queryStringParams));try{let t=ow?new ow:new oF("MSXML2.XMLHTTP.3.0");t.open(d?"POST":"GET",c,1),n.crossDomain||t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.withCredentials=!!n.withCredentials,d&&t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.overrideMimeType&&t.overrideMimeType("application/json");let i=n.customHeaders;if(i="function"==typeof i?i():i)for(let n of Object.keys(i))ok.indexOf(n)>-1||t.setRequestHeader(n,i[n]);t.onreadystatechange=()=>{t.readyState>3&&u(t.status>=400?t.statusText:null,{status:t.status,data:t.responseText})},t.send(d)}catch(t){console&&console.log(t)}return}o(Error("No fetch and no xhr implementation found!"))};var oA=class{constructor(t,n={},i={}){this.services=t,this.options=n,this.allOptions=i,this.type="backend",this.init(t,n,i)}init(t,n={},i={}){if(this.services=t,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:t=>JSON.parse(t),stringify:JSON.stringify,parsePayload:(t,n,i)=>({[n]:i||""}),parseLoadPayload:(t,n)=>void 0,request:oT,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...n},this.allOptions=i,this.services&&this.options.reloadInterval){let t=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof t&&"function"==typeof t.unref&&t.unref()}}readMulti(t,n,i){this._readAny(t,t,n,n,i)}read(t,n,i){this._readAny([t],t,[n],n,i)}_readAny(t,n,i,r,o){var a,s;let l=this.options.loadPath;"function"==typeof this.options.loadPath&&(l=this.options.loadPath(t,i)),(l=(s=a=l)&&"function"==typeof s.then?a:Promise.resolve(a)).then(a=>{if(!a)return o(null,{});let s=ov(a,{lng:t.join("+"),ns:i.join("+")});if(null==s)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+t.map(ob).join(", ")+"] namespaces=["+i.map(ob).join(", ")+"]"),!1);this.loadUrl(s,o,n,r)})}loadUrl(t,n,i,r){let o=this.options.parseLoadPayload("string"==typeof i?[i]:i,"string"==typeof r?[r]:r),a=ob(function(t){if("string"!=typeof t||0===t.length)return t;try{let n=new URL(t);if(n.username||n.password)return n.username="",n.password="",n.toString();return t}catch(n){return t.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(t));this.options.request(this.options,t,o,(t,o)=>{let s,l;if(o&&(o.status>=500&&o.status<600||!o.status))return n("failed loading "+a+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return n("failed loading "+a+"; status code: "+o.status,!1);if(!o&&t&&t.message){let i=t.message.toLowerCase();if(["failed","fetch","network","load"].find(t=>i.indexOf(t)>-1))return n("failed loading "+a+": "+ob(t.message),!0)}if(t)return n(t,!1);try{s="string"==typeof o.data?this.options.parse(o.data,i,r):o.data}catch(t){l="failed parsing "+a+" to json"}if(l)return n(l,!1);n(null,s)})}create(t,n,i,r,o){if(!this.options.addPath)return;"string"==typeof t&&(t=[t]);let a=this.options.parsePayload(n,i,r),s=0,l=[],c=[];t.forEach(i=>{let r=this.options.addPath;"function"==typeof this.options.addPath&&(r=this.options.addPath(i,n));let d=ov(r,{lng:i,ns:n});if(null==d){s+=1,o&&s===t.length&&o(l,c);return}this.options.request(this.options,d,a,(n,i)=>{s+=1,l.push(n),c.push(i),s===t.length&&"function"==typeof o&&o(l,c)})})}reload(){let{backendConnector:t,languageUtils:n,logger:i}=this.services,r=t.language;if(r&&"cimode"===r.toLowerCase())return;let o=[],a=t=>{n.toResolveHierarchy(t).forEach(t=>{0>o.indexOf(t)&&o.push(t)})};a(r),this.allOptions.preload&&this.allOptions.preload.forEach(t=>a(t)),o.forEach(n=>{this.allOptions.ns.forEach(r=>{t.read(n,r,"read",null,null,(o,a)=>{o&&i.warn(`loading namespace ${r} for language ${n} failed`,o),!o&&a&&i.log(`loaded namespace ${r} for language ${n}`,a),t.loaded(`${n}|${r}`,o,a)})})})}};oA.type="backend";class oS extends eG{constructor(t){if(super(t),this.it=ey,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ey||null==t)return this._t=void 0,this.it=t;if(t===e_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}oS.directiveName="unsafeHTML",oS.resultType=1,eq(oS);class oM extends oS{}oM.directiveName="unsafeSVG",oM.resultType=2;let oD=eq(oM),oL={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var oI=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 oR extends CustomEvent{constructor(){super(oR.NAME,{bubbles:!0,composed:!0})}}oR.NAME="or-iconset-added";let oO=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oR)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return eg``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):eg``}},oP=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[L`
841
841
  :host {
842
842
  --internal-or-icon-width: var(--or-icon-width, 24px);
843
843
  --internal-or-icon-height: var(--or-icon-height, 24px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-attribute-input",
3
- "version": "1.32.0",
3
+ "version": "1.33.0-snapshot.20261013082434",
4
4
  "description": "OpenRemote attribute input",
5
5
  "customElements": "build/custom-elements.json",
6
6
  "main": "build/dist/umd/index.bundle.js",
@@ -27,21 +27,21 @@
27
27
  "author": "OpenRemote",
28
28
  "license": "AGPL-3.0-or-later",
29
29
  "dependencies": {
30
- "@openremote/core": "1.32.0",
31
- "@openremote/model": "1.32.0",
32
- "@openremote/or-components": "1.32.0",
33
- "@openremote/or-element": "1.32.0",
34
- "@openremote/or-icon": "1.32.0",
35
- "@openremote/or-json-forms": "1.32.0",
36
- "@openremote/or-map": "1.32.0",
37
- "@openremote/or-mwc-components": "1.32.0",
38
- "@openremote/or-scheduler": "1.32.0",
39
- "@openremote/or-translate": "1.32.0",
40
- "@openremote/or-vaadin-components": "1.32.0",
30
+ "@openremote/core": "1.33.0-snapshot.20261013082434",
31
+ "@openremote/model": "1.33.0-snapshot.20261013082434",
32
+ "@openremote/or-components": "1.33.0-snapshot.20261013082434",
33
+ "@openremote/or-element": "1.33.0-snapshot.20261013082434",
34
+ "@openremote/or-icon": "1.33.0-snapshot.20261013082434",
35
+ "@openremote/or-json-forms": "1.33.0-snapshot.20261013082434",
36
+ "@openremote/or-map": "1.33.0-snapshot.20261013082434",
37
+ "@openremote/or-mwc-components": "1.33.0-snapshot.20261013082434",
38
+ "@openremote/or-scheduler": "1.33.0-snapshot.20261013082434",
39
+ "@openremote/or-translate": "1.33.0-snapshot.20261013082434",
40
+ "@openremote/or-vaadin-components": "1.33.0-snapshot.20261013082434",
41
41
  "lit": "^3.3.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@openremote/util": "1.32.0"
44
+ "@openremote/util": "1.33.0-snapshot.20261013082434"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"