@openremote/or-attribute-input 1.20.0-snapshot.20260316085015 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,7 +67,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
|
|
|
67
67
|
:host([hidden]) {
|
|
68
68
|
display: none;
|
|
69
69
|
}
|
|
70
|
-
`,t9([eV({type:String})],ne.prototype,"value",void 0),t9([eV({type:Object})],ne.prototype,"options",void 0),ne=t9([eY("or-translate")],ne),(lX=c3||(c3={})).CREATE="CREATE",lX.UPDATE="UPDATE",lX.DELETE="DELETE",(lZ=c5||(c5={})).LOW="LOW",lZ.MEDIUM="MEDIUM",lZ.HIGH="HIGH",(lJ=c4||(c4={})).MANUAL="MANUAL",lJ.CLIENT="CLIENT",lJ.GLOBAL_RULESET="GLOBAL_RULESET",lJ.REALM_RULESET="REALM_RULESET",lJ.ASSET_RULESET="ASSET_RULESET",lJ.AGENT="AGENT",(lQ=c6||(c6={})).OPEN="OPEN",lQ.ACKNOWLEDGED="ACKNOWLEDGED",lQ.IN_PROGRESS="IN_PROGRESS",lQ.RESOLVED="RESOLVED",lQ.CLOSED="CLOSED",(l0=c8||(c8={})).BOTTOM_LEFT="BOTTOM_LEFT",l0.BOTTOM_RIGHT="BOTTOM_RIGHT",l0.TOP_LEFT="TOP_LEFT",l0.TOP_RIGHT="TOP_RIGHT",(l1=c7||(c7={})).CREATE="CREATE",l1.READ="READ",l1.UPDATE="UPDATE",l1.DELETE="DELETE",(l2=c9||(c9={})).NONE="NONE",l2.FORECAST="FORECAST",l2.SETPOINT="SETPOINT",(l3=de||(de={})).DISCONNECTED="DISCONNECTED",l3.CONNECTING="CONNECTING",l3.DISCONNECTING="DISCONNECTING",l3.CONNECTED="CONNECTED",l3.DISABLED="DISABLED",l3.WAITING="WAITING",l3.ERROR="ERROR",l3.STOPPED="STOPPED",(l5=dt||(dt={})).REQUEST_START="REQUEST_START",l5.REQUEST_REPEATING="REQUEST_REPEATING",l5.REQUEST_CANCEL="REQUEST_CANCEL",l5.READY="READY",l5.COMPLETED="COMPLETED",l5.RUNNING="RUNNING",l5.CANCELLED="CANCELLED",(l4=dn||(dn={})).TOGGLE="TOGGLE",l4.INCREMENT="INCREMENT",l4.DECREMENT="DECREMENT",l4.NEGATE="NEGATE",(l6=di||(di={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",l6.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",l6.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",l6.INVALID_VALUE="INVALID_VALUE",l6.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",l6.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",l6.CANNOT_PROCESS="CANNOT_PROCESS",l6.QUEUE_FULL="QUEUE_FULL",l6.UNKNOWN="UNKNOWN",l6.ASSET_ID_MISSING="ASSET_ID_MISSING",l6.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(l8=dr||(dr={})).PUBLIC="PUBLIC",l8.SHARED="SHARED",l8.PRIVATE="PRIVATE",(l7=da||(da={})).OFF="OFF",l7.ONE_MIN="ONE_MIN",l7.FIVE_MIN="FIVE_MIN",l7.QUARTER="QUARTER",l7.ONE_HOUR="ONE_HOUR",(l9=ds||(ds={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",l9.KEEP_LAYOUT="KEEP_LAYOUT",l9.REDIRECT="REDIRECT",l9.BLOCK_DEVICE="BLOCK_DEVICE",(ce=dl||(dl={})).CSV="CSV",ce.CSV_CROSSTAB="CSV_CROSSTAB",ce.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(ct=dc||(dc={})).MINUTE="MINUTE",ct.HOUR="HOUR",ct.DAY="DAY",ct.WEEK="WEEK",ct.MONTH="MONTH",ct.YEAR="YEAR",(cn=dd||(dd={})).MIN="MIN",cn.AVG="AVG",cn.MAX="MAX",cn.DIFFERENCE="DIFFERENCE",cn.COUNT="COUNT",cn.SUM="SUM",cn.MODE="MODE",cn.MEDIAN="MEDIAN",(ci=dh||(dh={})).TERMINATING="TERMINATING",ci.DISABLED="DISABLED",ci.ALREADY_CONNECTED="ALREADY_CONNECTED",ci.UNRECOGNISED="UNRECOGNISED",ci.PERMANENT_ERROR="PERMANENT_ERROR",ci.SYNC_ERROR="SYNC_ERROR",(cr=du||(du={})).HTTPS="HTTPS",cr.HTTP="HTTP",cr.TCP="TCP",(co=dp||(dp={})).GET="GET",co.POST="POST",co.PUT="PUT",co.DELETE="DELETE",co.OPTIONS="OPTIONS",co.PATCH="PATCH",(ca=dm||(dm={})).KEYCLOAK="KEYCLOAK",ca.BASIC="BASIC",ca.NONE="NONE",(cs=df||(df={})).WEBSOCKET="WEBSOCKET",cs.POLLING="POLLING",(cl=dg||(dg={})).INTERNAL="INTERNAL",cl.CLIENT="CLIENT",cl.GLOBAL_RULESET="GLOBAL_RULESET",cl.REALM_RULESET="REALM_RULESET",cl.ASSET_RULESET="ASSET_RULESET",(cc=db||(db={})).REALM="REALM",cc.USER="USER",cc.ASSET="ASSET",cc.CUSTOM="CUSTOM",(cd=dv||(dv={})).NORMAL="NORMAL",cd.HIGH="HIGH",(ch=d_||(d_={})).DEVICE="DEVICE",ch.TOPIC="TOPIC",ch.CONDITION="CONDITION",(cu=dy||(dy={})).ALWAYS="ALWAYS",cu.ONCE="ONCE",cu.HOURLY="HOURLY",cu.DAILY="DAILY",cu.WEEKLY="WEEKLY",cu.MONTHLY="MONTHLY",cu.ANNUALLY="ANNUALLY",(cp=dx||(dx={})).MESSAGE_INVALID="MESSAGE_INVALID",cp.CERTIFICATE_INVALID="CERTIFICATE_INVALID",cp.UNAUTHORIZED="UNAUTHORIZED",cp.FORBIDDEN="FORBIDDEN",cp.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",cp.CONFIG_DISABLED="CONFIG_DISABLED",cp.USER_DISABLED="USER_DISABLED",cp.SERVER_ERROR="SERVER_ERROR",cp.ASSET_ERROR="ASSET_ERROR",cp.SERVER_BUSY="SERVER_BUSY",(cm=dw||(dw={})).PRIVATE="PRIVATE",cm.PROTECTED="PROTECTED",cm.PUBLIC="PUBLIC",(cf=dk||(dk={})).EXACT="EXACT",cf.BEGIN="BEGIN",cf.END="END",cf.CONTAINS="CONTAINS",(cg=dM||(dM={})).EQUALS="EQUALS",cg.GREATER_THAN="GREATER_THAN",cg.GREATER_EQUALS="GREATER_EQUALS",cg.LESS_THAN="LESS_THAN",cg.LESS_EQUALS="LESS_EQUALS",cg.BETWEEN="BETWEEN",(cb=dF||(dF={})).CREATED_ON="CREATED_ON",cb.NAME="NAME",cb.ASSET_TYPE="ASSET_TYPE",cb.PARENT_ID="PARENT_ID",cb.REALM="REALM",(cv=dE||(dE={})).RESTRICTED="RESTRICTED",cv.LINKED="LINKED",cv.REALM="REALM",(c_=dC||(dC={})).AT_LEAST_ONE="AT_LEAST_ONE",c_.ALL="ALL",c_.NONE="NONE",(cy=dT||(dT={})).AND="AND",cy.OR="OR",(cx=dA||(dA={})).CREATED_ON="CREATED_ON",cx.FIRST_NAME="FIRST_NAME",cx.LAST_NAME="LAST_NAME",cx.USERNAME="USERNAME",cx.EMAIL="EMAIL",(cw=dS||(dS={})).STOPPED="STOPPED",cw.RUNNING="RUNNING",cw.ERROR="ERROR",(ck=dL||(dL={})).JAVASCRIPT="JAVASCRIPT",ck.GROOVY="GROOVY",ck.JSON="JSON",ck.FLOW="FLOW",(cM=dD||(dD={})).READY="READY",cM.DEPLOYED="DEPLOYED",cM.COMPILATION_ERROR="COMPILATION_ERROR",cM.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",cM.EXECUTION_ERROR="EXECUTION_ERROR",cM.LOOP_ERROR="LOOP_ERROR",cM.DISABLED="DISABLED",cM.PAUSED="PAUSED",cM.EXPIRED="EXPIRED",cM.REMOVED="REMOVED",cM.EMPTY="EMPTY",(cF=dI||(dI={})).SUNRISE="SUNRISE",cF.SUNSET="SUNSET",cF.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",cF.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",cF.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",cF.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",cF.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",cF.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",cF.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",cF.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",cF.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",cF.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",cF.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",cF.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",cF.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",cF.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",cF.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",cF.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",cF.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",cF.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(cE=dz||(dz={})).NUMBER="NUMBER",cE.NUMBER_ARRAY="NUMBER_ARRAY",cE.STRING="STRING",cE.BOOLEAN="BOOLEAN",cE.TRIGGER="TRIGGER",cE.COLOR="COLOR",cE.ANY="ANY",(cC=dO||(dO={})).NEW_LINE="NEW_LINE",cC.SPACER="SPACER",(cT=dR||(dR={})).INPUT="INPUT",cT.PROCESSOR="PROCESSOR",cT.OUTPUT="OUTPUT",cT.THEN="THEN",(cA=dP||(dP={})).TEXT="TEXT",cA.MULTILINE="MULTILINE",cA.NUMBER="NUMBER",cA.DROPDOWN="DROPDOWN",cA.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",cA.CHECKBOX="CHECKBOX",cA.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",cA.COLOR="COLOR",cA.DATE="DATE",(cS=d$||(d$={})).ADD="ADD",cS.ADD_OR_REPLACE="ADD_OR_REPLACE",cS.REPLACE="REPLACE",cS.DELETE="DELETE",cS.CLEAR="CLEAR",(cL=dB||(dB={})).PER_ASSET="PER_ASSET",cL.GLOBAL="GLOBAL",(cD=dN||(dN={})).READ_ADMIN="read:admin",cD.READ_LOGS="read:logs",cD.READ_USERS="read:users",cD.READ_MAP="read:map",cD.READ_ASSETS="read:assets",cD.READ_RULES="read:rules",cD.READ_INSIGHTS="read:insights",cD.READ_ALARMS="read:alarms",cD.READ_SERVICES="read:services",cD.WRITE_SERVICES="write:services",cD.WRITE_USER="write:user",cD.WRITE_ADMIN="write:admin",cD.WRITE_LOGS="write:logs",cD.WRITE_ASSETS="write:assets",cD.WRITE_ATTRIBUTES="write:attributes",cD.WRITE_RULES="write:rules",cD.WRITE_INSIGHTS="write:insights",cD.WRITE_ALARMS="write:alarms",cD.READ="read",cD.WRITE="write",(cI=dj||(dj={})).REGISTER="REGISTER",cI.UPDATE="UPDATE",cI.DEREGISTER="DEREGISTER",(cz=dY||(dY={})).AVAILABLE="AVAILABLE",cz.UNAVAILABLE="UNAVAILABLE",(cO=dH||(dH={})).ASSET="ASSET",cO.AGENT="AGENT",cO.NOTIFICATION="NOTIFICATION",cO.ALARM="ALARM",cO.RULES="RULES",cO.PROTOCOL="PROTOCOL",cO.GATEWAY="GATEWAY",cO.MODEL_AND_VALUES="MODEL_AND_VALUES",cO.API="API",cO.DATA="DATA",(cR=dV||(dV={})).INFO="INFO",cR.WARN="WARN",cR.ERROR="ERROR",(cP=dU||(dU={})).NUMERIC="numeric",cP.DIGIT_2="2-digit",cP.FULL="full",cP.LONG="long",cP.MEDIUM="medium",cP.SHORT="short",cP.NARROW="narrow",(c$=dW||(dW={})).SECONDLY="SECONDLY",c$.MINUTELY="MINUTELY",c$.HOURLY="HOURLY",c$.DAILY="DAILY",c$.WEEKLY="WEEKLY",c$.MONTHLY="MONTHLY",c$.YEARLY="YEARLY",(cB=dq||(dq={})).OMIT="OMIT",cB.BACKWARD="BACKWARD",cB.FORWARD="FORWARD",(cN=dG||(dG={})).JAPANESE="JAPANESE",cN.BUDDHIST="BUDDHIST",cN.ROC="ROC",cN.ISLAMIC="ISLAMIC",cN.ISO8601="ISO8601",cN.CHINESE="CHINESE",cN.ETHIOPIC="ETHIOPIC",cN.HEBREW="HEBREW",cN.GREGORIAN="GREGORIAN",(cj=dK||(dK={})).SU="SU",cj.MO="MO",cj.TU="TU",cj.WE="WE",cj.TH="TH",cj.FR="FR",cj.SA="SA",(cY=dX||(dX={})).PEOPLECOUNTERASSET="PeopleCounterAsset",cY.MAILAGENT="MailAgent",cY.UDPAGENT="UDPAgent",cY.ROOMASSET="RoomAsset",cY.CITYASSET="CityAsset",cY.VENTILATIONASSET="VentilationAsset",cY.TRADFRILIGHTASSET="TradfriLightAsset",cY.CONSOLEASSET="ConsoleAsset",cY.PRESENCESENSORASSET="PresenceSensorAsset",cY.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",cY.LIGHTASSET="LightAsset",cY.KNXAGENT="KNXAgent",cY.THETHINGSSTACKAGENT="TheThingsStackAgent",cY.PLUGASSET="PlugAsset",cY.CHIRPSTACKAGENT="ChirpStackAgent",cY.WEATHERASSET="WeatherAsset",cY.THINGASSET="ThingAsset",cY.WEBSOCKETAGENT="WebsocketAgent",cY.TCPAGENT="TCPAgent",cY.GATEWAYASSET="GatewayAsset",cY.SERIALAGENT="SerialAgent",cY.BLUETOOTHMESHAGENT="BluetoothMeshAgent",cY.PARKINGASSET="ParkingAsset",cY.TRADFRIPLUGASSET="TradfriPlugAsset",cY.SIMULATORAGENT="SimulatorAgent",cY.SNMPAGENT="SNMPAgent",cY.GROUPASSET="GroupAsset",cY.BUILDINGASSET="BuildingAsset",cY.MODBUSSERIALAGENT="ModbusSerialAgent",cY.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",cY.MQTTAGENT="MQTTAgent",cY.VELBUSTCPAGENT="VelbusTCPAgent",cY.ARTNETLIGHTASSET="ArtnetLightAsset",cY.VELBUSSERIALAGENT="VelbusSerialAgent",cY.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",cY.MICROPHONEASSET="MicrophoneAsset",cY.MODBUSTCPAGENT="ModbusTcpAgent",cY.ZWAVEAGENT="ZWaveAgent",cY.HTTPAGENT="HTTPAgent",cY.DOORASSET="DoorAsset",cY.THERMOSTATASSET="ThermostatAsset",cY.SHIPASSET="ShipAsset",(cH=dZ||(dZ={})).COLOURRGB="colourRGB",cH.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",cH.PRICEHOURLY="priceHourly",cH.MQTTPORT="MQTTPort",cH.PINGDISABLED="pingDisabled",cH.FLOW="flow",cH.CHILDASSETTYPE="childAssetType",cH.LASTACCESS="lastAccess",cH.POSITION="position",cH.NETWORKKEY="networkKey",cH.UNIVERSE="universe",cH.ROUTINGMODE="routingMode",cH.MSSINUMBER="MSSINumber",cH.LASTWILLRETAIN="lastWillRetain",cH.LASTWILLTOPIC="lastWillTopic",cH.SERIALBAUDRATE="serialBaudrate",cH.SUBSCRIBEQOS="subscribeQos",cH.LEDCOUNT="lEDCount",cH.LOCKED="locked",cH.CLOUDCOVERAGE="cloudCoverage",cH.BASEURL="baseURL",cH.PROTOCOL="protocol",cH.REQUIREDVALUES="requiredValues",cH.REGION="region",cH.CONSOLEPLATFORM="consolePlatform",cH.GATEWAYSTATUS="gatewayStatus",cH.NO2LEVEL="NO2Level",cH.ATMOSPHERICPRESSURE="atmosphericPressure",cH.SERIALPORT="serialPort",cH.APPLICATIONID="applicationId",cH.TAGS="tags",cH.UNLOCK="unlock",cH.CHECKINTERVALSECONDS="checkIntervalSeconds",cH.LOCATION="location",cH.CLIENTSECRET="clientSecret",cH.WINDDIRECTION="windDirection",cH.WINDSPEED="windSpeed",cH.PARTICLESPM10="particlesPM10",cH.APPLICATIONKEY="applicationKey",cH.LENGTH="length",cH.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",cH.USERNAMEPASSWORD="usernamePassword",cH.WATERLEVEL="waterLevel",cH.CONNECTHEADERS="connectHeaders",cH.CONSOLENAME="consoleName",cH.WEBSOCKETQUERY="websocketQuery",cH.PREFERHTML="preferHTML",cH.PARITY="parity",cH.COOLING="cooling",cH.POLLINGMILLIS="pollingMillis",cH.SOILTEMPERATURE="soilTemperature",cH.SUNIRRADIANCE="sunIrradiance",cH.MESSAGEMAXLENGTH="messageMaxLength",cH.WINDGUSTSPEED="windGustSpeed",cH.LIGHTID="lightId",cH.PROXYADDRESS="proxyAddress",cH.REQUESTQUERYPARAMETERS="requestQueryParameters",cH.MQTTHOST="MQTTHost",cH.SECUREGRPC="secureGRPC",cH.MODEL="model",cH.STREET="street",cH.MANUFACTURER="manufacturer",cH.DELETEPROCESSEDMAIL="deleteProcessedMail",cH.RESUMESESSION="resumeSession",cH.ONOFF="onOff",cH.APIKEY="ApiKey",cH.CITY="city",cH.PRESENCE="presence",cH.SPACESOCCUPIED="spacesOccupied",cH.STARTTLS="startTLS",cH.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",cH.WEBSOCKETPATH="websocketPath",cH.AGENTSTATUS="agentStatus",cH.PRICEDAILY="priceDaily",cH.COUNTGROWTHMINUTE="countGrowthMinute",cH.IMONUMBER="IMONumber",cH.ATTRIBUTION="Attribution",cH.TENANTID="tenantId",cH.REQUESTHEADERS="requestHeaders",cH.HOST="host",cH.COUNTOUTMINUTE="countOutMinute",cH.MESSAGECHARSET="messageCharset",cH.CERTIFICATEALIAS="certificateAlias",cH.EMAIL="email",cH.BINDPORT="bindPort",cH.CONSOLEVERSION="consoleVersion",cH.PARTICLESPM1="particlesPM1",cH.MTU="mtu",cH.SPEED="speed",cH.MESSAGESTRIPDELIMITER="messageStripDelimiter",cH.AREA="area",cH.COUNTRY="country",cH.SHIPTYPE="shipType",cH.CONNECTSUBSCRIPTIONS="connectSubscriptions",cH.RELATIVEHUMIDITY="relativeHumidity",cH.SOURCEADDRESS="sourceAddress",cH.RAINFALL="rainfall",cH.OAUTHGRANT="oAuthGrant",cH.OZONELEVEL="ozoneLevel",cH.SEQUENCENUMBER="sequenceNumber",cH.COUNTINMINUTE="countInMinute",cH.PORT="port",cH.SUNALTITUDE="sunAltitude",cH.COUNTOUT="countOut",cH.ROOMNUMBER="roomNumber",cH.TUNNELINGSUPPORTED="tunnelingSupported",cH.ENINUMBER="ENINumber",cH.PARTICLESPM2_5="particlesPM2_5",cH.AGENTDISABLED="agentDisabled",cH.DISABLED="disabled",cH.COUNTIN="countIn",cH.MESSAGESOURCEADDRESS="messageSourceAddress",cH.PROVISIONWEATHERASSET="ProvisionWeatherAsset",cH.TIMEINJECTIONINTERVAL="timeInjectionInterval",cH.TEMPERATURESETPOINT="temperatureSetpoint",cH.CONSOLEPROVIDERS="consoleProviders",cH.COUNTTOTAL="countTotal",cH.SPACESBUFFER="spacesBuffer",cH.DEVICECONFIG="deviceConfig",cH.SPACESTOTAL="spacesTotal",cH.BINDHOST="bindHost",cH.FANSPEED="fanSpeed",cH.MESSAGECONVERTBINARY="messageConvertBinary",cH.NOTES="notes",cH.MAILFOLDERNAME="mailFolderName",cH.MESSAGEDELIMITERS="messageDelimiters",cH.TEMPERATURE="temperature",cH.SUNZENITH="sunZenith",cH.SNMPVERSIONVALUE="SNMPVersionValue",cH.BRIGHTNESS="brightness",cH.POSTALCODE="postalCode",cH.SPACESOPEN="spacesOpen",cH.HUMIDITY="humidity",cH.SOUNDLEVEL="soundLevel",cH.SECUREMODE="secureMode",cH.DIRECTION="direction",cH.STOPBITS="stopbits",cH.UVINDEX="uVIndex",cH.CONNECTURL="connectURL",cH.CLIENTID="clientId",cH.NATMODE="NATMode",cH.UPDATEONWRITE="updateOnWrite",cH.LASTWILLPAYLOAD="lastWillPayload",cH.GROUPID="groupId",cH.FOLLOWREDIRECTS="followRedirects",cH.SUNAZIMUTH="sunAzimuth",cH.MESSAGECONVERTHEX="messageConvertHex",cH.WEBSOCKETMODE="websocketMode",cH.COLOURTEMPERATURE="colourTemperature",cH.PUBLISHQOS="publishQos",cH.DATABITS="dataBits",(cV=dJ||(dJ={})).FORMAT="format",cV.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",cV.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",cV.SECRET="secret",cV.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",cV.ATTRIBUTELINKS="attributeLinks",cV.RULERESETIMMEDIATE="ruleResetImmediate",cV.RULESTATE="ruleState",cV.AGENTLINKCONFIG="agentLinkConfig",cV.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",cV.FORECAST="forecast",cV.STOREDATAPOINTS="storeDataPoints",cV.LABEL="label",cV.CONSTRAINTS="constraints",cV.UNITS="units",cV.USERCONNECTED="userConnected",cV.SHOWONDASHBOARD="showOnDashboard",cV.READONLY="readOnly",cV.MULTILINE="multiline",cV.ACCESSPUBLICWRITE="accessPublicWrite",cV.MOMENTARY="momentary",cV.AGENTLINK="agentLink",cV.ACCESSRESTRICTEDREAD="accessRestrictedRead",cV.ACCESSPUBLICREAD="accessPublicRead",(cU=dQ||(dQ={})).ASSETQUERY="assetQuery",cU.WSURL="WS_URL",cU.COLOURRGB="colourRGB",cU.VALUEFORMAT="valueFormat",cU.TEXT="text",cU.BYTE="byte",cU.USERNAMEANDPASSWORD="usernameAndPassword",cU.HTTPURL="HTTP_URL",cU.ATTRIBUTELINK="attributeLink",cU.ASSETID="assetID",cU.NUMBERMAP="numberMap",cU.HTTPMETHOD="HTTPMethod",cU.ATTRIBUTESTATE="attributeState",cU.POSITIVENUMBER="positiveNumber",cU.POSITIVEINTEGER="positiveInteger",cU.EXECUTIONSTATUS="executionStatus",cU.BIGINTEGER="bigInteger",cU.VALUEDESCRIPTOR="valueDescriptor",cU.PERIODDURATIONISO8601="periodDurationISO8601",cU.LONG="long",cU.DATEANDTIME="dateAndTime",cU.BOOLEANMAP="booleanMap",cU.MQTTQOS="MQTTQos",cU.NEGATIVEINTEGER="negativeInteger",cU.TCPIPPORTNUMBER="TCP_IPPortNumber",cU.GEOJSONPOINT="GEO_JSONPoint",cU.SNMPVERSION="SNMPVersion",cU.ASSETTYPE="assetType",cU.JSONOBJECT="JSONObject",cU.INTEGERMAP="integerMap",cU.BIGNUMBER="bigNumber",cU.IPADDRESS="IPAddress",cU.EMAIL="email",cU.TIMESTAMP="timestamp",cU.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",cU.ATTRIBUTEREFERENCE="attributeReference",cU.UUID="UUID",cU.INTEGER="integer",cU.OAUTHGRANT="oAuthGrant",cU.NUMBER="number",cU.DEVICECONFIGMAP="DeviceConfigMap",cU.TEXTMAP="textMap",cU.WEBSOCKETSUBSCRIPTION="websocketSubscription",cU.BOOLEAN="boolean",cU.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",cU.FORECASTCONFIGURATION="forecastConfiguration",cU.TIMEDURATIONISO8601="timeDurationISO8601",cU.TIMESTAMPISO8601="timestampISO8601",cU.CONSOLEPROVIDERS="consoleProviders",cU.MULTIVALUEDTEXTMAP="multivaluedTextMap",cU.NEGATIVENUMBER="negativeNumber",cU.PARITYBIT="Paritybit",cU.JSON="JSON",cU.CRONEXPRESSION="CRONExpression",cU.INTEGERBYTE="integerByte",cU.AGENTLINK="agentLink",cU.DIRECTION="direction",cU.HOSTORIPADDRESS="hostOrIPAddress",cU.STOPBITS="Stopbits",cU.CALENDAREVENT="calendarEvent",cU.CONNECTIONSTATUS="connectionStatus",cU.VALUECONSTRAINT="valueConstraint",(cW=d0||(d0={})).MONTH="month",cW.MILE_SCANDINAVIAN="mile_scandinavian",cW.VAR="var",cW.OUNCE="ounce",cW.HECTARE="hectare",cW.YARD="yard",cW.YEAR="year",cW.JOULE="joule",cW.VOLT="volt",cW.HERTZ="hertz",cW.MILE="mile",cW.DEGREE="degree",cW.KILO="kilo",cW.BTU="btu",cW.FOOT="foot",cW.MEGA="mega",cW.KELVIN="kelvin",cW.CARBON="carbon",cW.DECIBEL_ATTENUATED="decibel_attenuated",cW.INCH="inch",cW.SQUARED="squared",cW.PERCENTAGE="percentage",cW.IN_HG="inch_mercury",cW.CENTI="centi",cW.GRAM="gram",cW.CUBED="cubed",cW.DAY="day",cW.RADIAN="radian",cW.OHM="ohm",cW.MINUTE="minute",cW.PART_PER_MILLION="ppm",cW.AMP="amp",cW.MASS_POUND="pound",cW.KNOT="knot",cW.METRE="metre",cW.LITRE="litre",cW.FLUID_OUNCE="fluid_ounce",cW.HOUR="hour",cW.ACRE="acre",cW.CELSIUS="celsius",cW.RPM="rpm",cW.PASCAL="pascal",cW.DECIBEL="decibel",cW.LUMEN="lumen",cW.WEEK="week",cW.FAHRENHEIT="fahrenheit",cW.WATT="watt",cW.GALLON="gallon",cW.LUX="lux",cW.MILLI="milli",cW.BAR="bar",cW.HECTO="hecto",cW.PEAK="peak",cW.SECOND="second",cW.MICRO="micro",cW.PER="per",cW.STONE="stone",d1||(d1={});class nt{static getAssetDescriptors(){return nt._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=nt.getValueDescriptor(n)),i=n.jsonType?n:nt.getValueDescriptor(n.type)),!i&&t&&(i=nt.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}}nt._assetTypeInfos=[],nt._metaItemDescriptors=[],nt._valueDescriptors=[],o(44532);var nn=o(88183),ni=o.n(nn),nr=o(14867),no=o.n(nr);o(83472);class na{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 ns(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>ns(t[i],n[i]))}return!1}function nl(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 nc(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 nd(t,n){let i="string"==typeof t?nt.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:nt.resolveValueTypeFromValue(n),value:n}}function nh(t,n,i,r,o,a){let s=ng("label",t,n,i,o),l="";if(s||(s=nc("label",t,n&&n.meta?n:void 0)),r&&(l=nm(nf("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?nl(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nu(t,n,i,r,o,a){let s=np(t?t.value:void 0,()=>nf("format",t,n,i,o),void 0,a),l=nf("units",t,n,i,!0);return r&&l&&l.length&&(s=nm(nf("units",t,n,i,o),s)),s}function np(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||t7.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t7.t("on"):t7.t("off")),r.asOpenClosed&&(o=t?t7.t("open"):t7.t("closed")),r.asPressedReleased&&(o=t?t7.t("pressed"):t7.t("released"));break;case"object":if(r.momentJsFormat)o=no()(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||t7.language,r).format(t)}else o=Object(t).toString()}return o}function nm(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t7.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t7.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 nf(t,n,i,r,o){let a,s=[],l=ng(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=nc(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=nt.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 ng(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 t7.t(l,{defaultValue:a||""})}function nb(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nv=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 n_=o(74461);class ny{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 h=ny._createConsoleRegistration(),u=window.localStorage.getItem("OpenRemoteConsole:"+t);if(u)try{let t=JSON.parse(u);t.id&&(h.id=t.id),t.name&&(h.name=t.name),t.providers&&(h.providers=t.providers),t.apps&&(h.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=h.providers;for(let t of(h.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};h.providers[t]=n}let m=oB.getAppName();m.length>0&&0>h.apps.indexOf(m)&&h.apps.push(m),this._registration=h,o&&(h.name=o),a&&(h.version=a),s&&(h.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 nv(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration(0)),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nv(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 nv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration(),this._callCompletedCallback())),r})}disableProvider(t){return nv(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 nv(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 na,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={}),oB.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nv(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:n_.name,version:n_.version,platform:n_.os.toString(),apps:[],model:((n_.manufacturer?n_.manufacturer+" ":"")+(n_.product?n_.product:"")).trim()}}_initialiseProvider(t){return nv(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 nx(t,n){return function(){return t.apply(n,arguments)}}let{toString:nw}=Object.prototype,{getPrototypeOf:nk}=Object,{iterator:nM,toStringTag:nF}=Symbol,nE=(c=Object.create(null),t=>{let n=nw.call(t);return c[n]||(c[n]=n.slice(8,-1).toLowerCase())}),nC=t=>(t=t.toLowerCase(),n=>nE(n)===t),nT=t=>n=>typeof n===t,{isArray:nA}=Array,nS=nT("undefined");function nL(t){return null!==t&&!nS(t)&&null!==t.constructor&&!nS(t.constructor)&&nz(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nD=nC("ArrayBuffer"),nI=nT("string"),nz=nT("function"),nO=nT("number"),nR=t=>null!==t&&"object"==typeof t,nP=t=>{if("object"!==nE(t))return!1;let n=nk(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(nF in t)&&!(nM in t)},n$=nC("Date"),nB=nC("File"),nN=nC("Blob"),nj=nC("FileList"),nY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nH=void 0!==nY.FormData?nY.FormData:void 0,nV=nC("URLSearchParams"),[nU,nW,nq,nG]=["ReadableStream","Request","Response","Headers"].map(nC);function nK(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nA(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nL(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 nX(t,n){let i;if(nL(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 nZ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nJ=t=>!nS(t)&&t!==nZ,nQ=(d="u">typeof Uint8Array&&nk(Uint8Array),t=>d&&t instanceof d),n0=nC("HTMLFormElement"),n1=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),n2=nC("RegExp"),n3=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nK(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n5=nC("AsyncFunction"),n4=(lW="function"==typeof setImmediate,lq=nz(nZ.postMessage),lW?setImmediate:lq?(lG=`axios@${Math.random()}`,lK=[],nZ.addEventListener("message",({source:t,data:n})=>{t===nZ&&n===lG&&lK.length&&lK.shift()()},!1),t=>{lK.push(t),nZ.postMessage(lG,"*")}):t=>setTimeout(t)),n6="u">typeof queueMicrotask?queueMicrotask.bind(nZ):"u">typeof process&&process.nextTick||n4,n8={isArray:nA,isArrayBuffer:nD,isBuffer:nL,isFormData:t=>{let n;return t&&(nH&&t instanceof nH||nz(t.append)&&("formdata"===(n=nE(t))||"object"===n&&nz(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nD(t.buffer)},isString:nI,isNumber:nO,isBoolean:t=>!0===t||!1===t,isObject:nR,isPlainObject:nP,isEmptyObject:t=>{if(!nR(t)||nL(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nU,isRequest:nW,isResponse:nq,isHeaders:nG,isUndefined:nS,isDate:n$,isFile:nB,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nN,isRegExp:n2,isFunction:nz,isStream:t=>nR(t)&&nz(t.pipe),isURLSearchParams:nV,isTypedArray:nQ,isFileList:nj,forEach:nK,merge:function t(){let{caseless:n,skipUndefined:i}=nJ(this)&&this||{},r={},o=(o,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&nX(r,a)||a;nP(r[s])&&nP(o)?r[s]=t(r[s],o):nP(o)?r[s]=t({},o):nA(o)?r[s]=o.slice():i&&nS(o)||(r[s]=o)};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&nK(arguments[t],o);return r},extend:(t,n,i,{allOwnKeys:r}={})=>(nK(n,(n,r)=>{i&&nz(n)?Object.defineProperty(t,r,{value:nx(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{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",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nk(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nE,kindOfTest:nC,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(nA(t))return t;let n=t.length;if(!nO(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nM]).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:n0,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:n3,freezeMethods:t=>{n3(t,(n,i)=>{if(nz(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(nz(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(nA(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:nX,global:nZ,isContextDefined:nJ,isSpecCompliantForm:function(t){return!!(t&&nz(t.append)&&"FormData"===t[nF]&&t[nM])},toJSONObject:t=>{let n=Array(10),i=(t,r)=>{if(nR(t)){if(n.indexOf(t)>=0)return;if(nL(t))return t;if(!("toJSON"in t)){n[r]=t;let o=nA(t)?[]:{};return nK(t,(t,n)=>{let a=i(t,r+1);nS(a)||(o[n]=a)}),n[r]=void 0,o}}return t};return i(t,0)},isAsyncFn:n5,isThenable:t=>t&&(nR(t)||nz(t))&&nz(t.then)&&nz(t.catch),setImmediate:n4,asap:n6,isIterable:t=>null!=t&&nz(t[nM])};class n7 extends Error{static from(t,n,i,r,o,a){let s=new n7(t.message,n||t.code,i,r,o);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{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(){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:n8.toJSONObject(this.config),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.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";let n9=n7;function ie(t){return n8.isPlainObject(t)||n8.isArray(t)}function it(t){return n8.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=n8.toFlatObject(n8,{},null,function(t){return/^is[A-Z]/.test(t)}),io=function(t,n,i){if(!n8.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n8.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n8.isUndefined(n[t])})).metaTokens,o=i.visitor||d,a=i.dots,s=i.indexes,l=(i.Blob||"u">typeof Blob&&Blob)&&n8.isSpecCompliantForm(n);if(!n8.isFunction(o))throw TypeError("visitor must be a function");function c(t){if(null===t)return"";if(n8.isDate(t))return t.toISOString();if(n8.isBoolean(t))return t.toString();if(!l&&n8.isBlob(t))throw new n9("Blob is not supported. Use a Buffer instead.");return n8.isArrayBuffer(t)||n8.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function d(t,i,o){let l=t;if(n8.isReactNative(n)&&n8.isReactNativeBlob(t))return n.append(ii(o,i,a),c(t)),!1;if(t&&!o&&"object"==typeof t)if(n8.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var d;if(n8.isArray(t)&&(d=t,n8.isArray(d)&&!d.some(ie))||(n8.isFileList(t)||n8.endsWith(i,"[]"))&&(l=n8.toArray(t)))return i=it(i),l.forEach(function(t,r){n8.isUndefined(t)||null===t||n.append(!0===s?ii([i],r,a):null===s?i:i+"[]",c(t))}),!1}return!!ie(t)||(n.append(ii(o,i,a),c(t)),!1)}let h=[],u=Object.assign(ir,{defaultVisitor:d,convertValue:c,isVisitable:ie});if(!n8.isObject(t))throw TypeError("data must be an object");return!function t(i,r){if(!n8.isUndefined(i)){if(-1!==h.indexOf(i))throw Error("Circular reference detected in "+r.join("."));h.push(i),n8.forEach(i,function(i,a){!0===(!(n8.isUndefined(i)||null===i)&&o.call(n,i,n8.isString(a)?a.trim():a,r,u))&&t(i,r?r.concat(a):[a])}),h.pop()}}(t),n};function ia(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/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;let o=i&&i.encode||ic,a=n8.isFunction(i)?{serialize:i}:i,s=a&&a.serialize;if(r=s?s(n,a):n8.isURLSearchParams(n)?n.toString():new is(n,a).toString(o)){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?function(n){return t.call(this,n,ia)}:ia;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ih=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n8.forEach(this.handlers,function(n){null!==n&&t(n)})}},iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ip="u">typeof URLSearchParams?URLSearchParams:is,im="u">typeof FormData?FormData:null,ig="u">typeof Blob?Blob:null,ib="u">typeof window&&"u">typeof document,iv="object"==typeof navigator&&navigator||void 0,i_=ib&&(!iv||0>["ReactNative","NativeScript","NS"].indexOf(iv.product)),iy="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ix=ib&&window.location.href||"http://localhost",iw={...A,isBrowser:!0,classes:{URLSearchParams:ip,FormData:im,Blob:ig},protocols:["http","https","file","blob","url","data"]},ik=function(t){if(n8.isFormData(t)&&n8.isFunction(t.entries)){let n={};return n8.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n8.isArray(r)?r.length:a,l)?n8.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i:(r[a]&&n8.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n8.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}(n8.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},iM={transitional:iu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n8.isObject(t);if(a&&n8.isHTMLForm(t)&&(t=new FormData(t)),n8.isFormData(t))return o?JSON.stringify(ik(t)):t;if(n8.isArrayBuffer(t)||n8.isBuffer(t)||n8.isStream(t)||n8.isFile(t)||n8.isBlob(t)||n8.isReadableStream(t))return t;if(n8.isArrayBufferView(t))return t.buffer;if(n8.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=t,l=this.formSerializer,io(s,new iw.classes.URLSearchParams,{visitor:function(t,n,i,r){return iw.isNode&&n8.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=n8.isFileList(t))||r.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return io(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}if(a||o){n.setContentType("application/json",!1);var c=t;if(n8.isString(c))try{return(0,JSON.parse)(c),n8.trim(c)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(c)}return t}],transformResponse:[function(t){let n=this.transitional||iM.transitional,i=n&&n.forcedJSONParsing,r="json"===this.responseType;if(n8.isResponse(t)||n8.isReadableStream(t))return t;if(t&&n8.isString(t)&&(i&&!this.responseType||r)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,this.parseReviver)}catch(t){if(!i&&r){if("SyntaxError"===t.name)throw n9.from(t,n9.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iw.classes.FormData,Blob:iw.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};n8.forEach(["delete","get","head","post","put","patch"],t=>{iM.headers[t]={}});let iF=n8.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"]),iE=Symbol("internals");function iC(t){return t&&String(t).trim().toLowerCase()}function iT(t){return!1===t||null==t?t:n8.isArray(t)?t.map(iT):String(t)}function iA(t,n,i,r,o){if(n8.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n8.isString(n)){if(n8.isString(r))return -1!==n.indexOf(r);if(n8.isRegExp(r))return r.test(n)}}class iS{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=iC(n);if(!o)throw Error("header name must be a non-empty string");let a=n8.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=iT(t))}let a=(t,n)=>n8.forEach(t,(t,i)=>o(t,i,n));if(n8.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n8.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&iF[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n8.isObject(t)&&n8.isIterable(t)){let i={},r,o;for(let n of t){if(!n8.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?n8.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=iC(t)){let i=n8.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(n8.isFunction(n))return n.call(this,t,i);if(n8.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iC(t)){let i=n8.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||iA(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=iC(t)){let o=n8.findKey(i,t);o&&(!n||iA(i,i[o],o,n))&&(delete i[o],r=!0)}}return n8.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||iA(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n8.forEach(this,(r,o)=>{let a=n8.findKey(i,o);if(a){n[a]=iT(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]=iT(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n8.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n8.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[iE]=this[iE]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=iC(t);if(!n[r]){let o;o=n8.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n8.isArray(t)?t.forEach(r):r(t),this}}function iL(t,n){let i=this||iM,r=n||i,o=iS.from(r.headers),a=r.data;return n8.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iD(t){return!!(t&&t.__CANCEL__)}iS.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n8.reduceDescriptors(iS.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n8.freezeMethods(iS);let iI=class extends n9{constructor(t,n,i){super(null==t?"canceled":t,n9.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iz(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,[n9.ERR_BAD_REQUEST,n9.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}let iO=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 h=s,u=0;for(;h!==a;)u+=r[h++],h%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*u/p):void 0}},iR=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)]},iP=(t,n,i=3)=>{let r=0,o=iO(50,250);return iR(i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l);r=a,t({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&a<=s?(s-a)/c:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},i$=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iB=t=>(...n)=>n8.asap(()=>t(...n)),iN=iw.hasStandardBrowserEnv?(h=new URL(iw.origin),u=iw.navigator&&/(msie|trident)/i.test(iw.navigator.userAgent),t=>(t=new URL(t,iw.origin),h.protocol===t.protocol&&h.host===t.host&&(u||h.port===t.port))):()=>!0,ij=iw.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n8.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n8.isString(r)&&l.push(`path=${r}`),n8.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n8.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iY(t,n,i){let r=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(r||!1==i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iH=t=>t instanceof iS?{...t}:t;function iV(t,n){n=n||{};let i={};function r(t,n,i,r){return n8.isPlainObject(t)&&n8.isPlainObject(n)?n8.merge.call({caseless:r},t,n):n8.isPlainObject(n)?n8.merge({},n):n8.isArray(n)?n.slice():n}function o(t,n,i,o){return n8.isUndefined(n)?n8.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n8.isUndefined(n))return r(void 0,n)}function s(t,n){return n8.isUndefined(n)?n8.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return a in n?r(i,o):a in t?r(void 0,i):void 0}let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(t,n,i)=>o(iH(t),iH(n),i,!0)};return n8.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n8.hasOwnProp(c,r)?c[r]:o,s=a(t[r],n[r],r);n8.isUndefined(s)&&a!==l||(i[r]=s)}),i}let iU=t=>{let n=iV({},t),{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=iS.from(s),n.url=id(iY(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),n8.isFormData(i)){if(iw.hasStandardBrowserEnv||iw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(n8.isFunction(i.getHeaders)){let t=i.getHeaders(),n=["content-type","content-length"];Object.entries(t).forEach(([t,i])=>{n.includes(t.toLowerCase())&&s.set(t,i)})}}if(iw.hasStandardBrowserEnv&&(r&&n8.isFunction(r)&&(r=r(n)),r||!1!==r&&iN(n.url))){let t=o&&a&&ij.read(a);t&&s.set(o,t)}return n},iW="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,h=iU(t),u=h.data,p=iS.from(h.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=h;function b(){l&&l(),c&&c(),h.cancelToken&&h.cancelToken.unsubscribe(o),h.signal&&h.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=iS.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());iz(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(h.method.toUpperCase(),h.url,!0),v.timeout=h.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new n9("Request aborted",n9.ECONNABORTED,t,v)),v=null)},v.onerror=function(n){let r=new n9(n&&n.message?n.message:"Network Error",n9.ERR_NETWORK,t,v);r.event=n||null,i(r),v=null},v.ontimeout=function(){let n=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",r=h.transitional||iu;h.timeoutErrorMessage&&(n=h.timeoutErrorMessage),i(new n9(n,r.clarifyTimeoutError?n9.ETIMEDOUT:n9.ECONNABORTED,t,v)),v=null},void 0===u&&p.setContentType(null),"setRequestHeader"in v&&n8.forEach(p.toJSON(),function(t,n){v.setRequestHeader(n,t)}),n8.isUndefined(h.withCredentials)||(v.withCredentials=!!h.withCredentials),m&&"json"!==m&&(v.responseType=h.responseType),g&&([s,c]=iP(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=iP(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(h.cancelToken||h.signal)&&(o=n=>{v&&(i(!n||n.type?new iI(null,t,v):n),v.abort(),v=null)},h.cancelToken&&h.cancelToken.subscribe(o),h.signal&&(h.signal.aborted?o():h.signal.addEventListener("abort",o)));let y=(r=h.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r))&&d[1]||"");y&&-1===iw.protocols.indexOf(y)?i(new n9("Unsupported protocol "+y+":",n9.ERR_BAD_REQUEST,t)):v.send(u||null)})},iq=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},iG=async function*(t,n){for await(let i of iK(t))yield*iq(i,n)},iK=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()}},iX=(t,n,i,r)=>{let o,a=iG(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:iZ}=n8,iJ=(({Request:t,Response:n})=>({Request:t,Response:n}))(n8.global),{ReadableStream:iQ,TextEncoder:i0}=n8.global,i1=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},i2=t=>{let n,{fetch:i,Request:r,Response:o}=t=n8.merge.call({skipUndefined:!0},iJ,t),a=i?iZ(i):"function"==typeof fetch,s=iZ(r),l=iZ(o);if(!a)return!1;let c=a&&iZ(iQ),d=a&&("function"==typeof i0?(n=new i0,t=>n.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer())),h=s&&c&&i1(()=>{let t=!1,n=new r(iw.origin,{body:new iQ,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),u=l&&c&&i1(()=>n8.isReadableStream(new o("").body)),p={stream:u&&(t=>t.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{p[t]||(p[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 m=async t=>{if(null==t)return 0;if(n8.isBlob(t))return t.size;if(n8.isSpecCompliantForm(t)){let n=new r(iw.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n8.isArrayBufferView(t)||n8.isArrayBuffer(t)?t.byteLength:(n8.isURLSearchParams(t)&&(t+=""),n8.isString(t))?(await d(t)).byteLength:void 0},f=async(t,n)=>{let i=n8.toFiniteNumber(t.getContentLength());return null==i?m(n):i};return async t=>{let n,{url:a,method:l,data:c,signal:d,cancelToken:m,timeout:g,onDownloadProgress:b,onUploadProgress:v,responseType:_,headers:y,withCredentials:x="same-origin",fetchOptions:w}=iU(t),k=i||fetch;_=_?(_+"").toLowerCase():"text";let M=((t,n)=>{let{length:i}=t=t?t.filter(Boolean):[];if(n||i){let i,r=new AbortController,o=function(t){if(!i){i=!0,s();let n=t instanceof Error?t:this.reason;r.abort(n instanceof n9?n:new iI(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=>t.addEventListener("abort",o));let{signal:l}=r;return l.unsubscribe=()=>n8.asap(s),l}})([d,m&&m.toAbortSignal()],g),F=null,E=M&&M.unsubscribe&&(()=>{M.unsubscribe()});try{if(v&&h&&"get"!==l&&"head"!==l&&0!==(n=await f(y,c))){let t,i=new r(a,{method:"POST",body:c,duplex:"half"});if(n8.isFormData(c)&&(t=i.headers.get("content-type"))&&y.setContentType(t),i.body){let[t,r]=i$(n,iP(iB(v)));c=iX(i.body,65536,t,r)}}n8.isString(x)||(x=x?"include":"omit");let i=s&&"credentials"in r.prototype,d={...w,signal:M,method:l.toUpperCase(),headers:y.normalize().toJSON(),body:c,duplex:"half",credentials:i?x:void 0};F=s&&new r(a,d);let m=await (s?k(F,w):k(a,d)),g=u&&("stream"===_||"response"===_);if(u&&(b||g&&E)){let t={};["status","statusText","headers"].forEach(n=>{t[n]=m[n]});let n=n8.toFiniteNumber(m.headers.get("content-length")),[i,r]=b&&i$(n,iP(iB(b),!0))||[];m=new o(iX(m.body,65536,i,()=>{r&&r(),E&&E()}),t)}_=_||"text";let C=await p[n8.findKey(p,_)||"text"](m,t);return!g&&E&&E(),await new Promise((n,i)=>{iz(n,i,{data:C,headers:iS.from(m.headers),status:m.status,statusText:m.statusText,config:t,request:F})})}catch(n){if(E&&E(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new n9("Network Error",n9.ERR_NETWORK,t,F,n&&n.response),{cause:n.cause||n});throw n9.from(n,n&&n.code,t,F,n&&n.response)}}},i3=new Map,i5=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=i3;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:i2(n)),d=c;return c};i5();let i4={http:null,xhr:iW,fetch:{get:i5}};n8.forEach(i4,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}});let i6=t=>`- ${t}`,i8=t=>n8.isFunction(t)||null===t||!1===t,i7=function(t,n){let i,r,{length:o}=t=n8.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!i8(i)&&void 0===(r=i4[(o=String(i)).toLowerCase()]))throw new n9(`Unknown adapter '${o}'`);if(r&&(n8.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(i6).join("\n"):" "+i6(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function i9(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iI(null,t)}function re(t){return i9(t),t.headers=iS.from(t.headers),t.data=iL.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),i7(t.adapter||iM.adapter,t)(t).then(function(n){return i9(t),n.data=iL.call(t,t.transformResponse,n),n.headers=iS.from(n.headers),n},function(n){return!iD(n)&&(i9(t),n&&n.response&&(n.response.data=iL.call(t,t.transformResponse,n.response),n.response.headers=iS.from(n.response.headers))),Promise.reject(n)})}let rt={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rt[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rn={};rt.transitional=function(t,n,i){function r(t,n){return"[Axios v1.13.6] 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&&!rn[o]&&(rn[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)}},rt.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let ri=function(t,n,i){if("object"!=typeof 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=n[a];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 rr{constructor(t){this.defaults=t||{},this.interceptors={request:new ih,response:new ih}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iV(this.defaults,n);void 0!==o&&ri(o,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean),legacyInterceptorReqResOrdering:rt.transitional(rt.boolean)},!1),null!=a&&(n8.isFunction(a)?n.paramsSerializer={serialize:a}:ri(a,{encode:rt.function,serialize:rt.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ri(n,{baseUrl:rt.spelling("baseURL"),withXsrfToken:rt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n8.merge(s.common,s[n.method]);s&&n8.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),n.headers=iS.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||iu;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let h=[];this.interceptors.response.forEach(function(t){h.push(t.fulfilled,t.rejected)});let u=0;if(!d){let t=[re.bind(this),void 0];for(t.unshift(...c),t.push(...h),r=t.length,i=Promise.resolve(n);u<r;)i=i.then(t[u++],t[u++]);return i}r=c.length;let p=n;for(;u<r;){let t=c[u++],n=c[u++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=re.call(this,p)}catch(t){return Promise.reject(t)}for(u=0,r=h.length;u<r;)i=i.then(h[u++],h[u++]);return i}getUri(t){return id(iY((t=iV(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}n8.forEach(["delete","get","head","options"],function(t){rr.prototype[t]=function(n,i){return this.request(iV(i||{},{method:t,url:n,data:(i||{}).data}))}}),n8.forEach(["post","put","patch"],function(t){function n(n){return function(i,r,o){return this.request(iV(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rr.prototype[t]=n(),rr.prototype[t+"Form"]=n(!0)});class ro{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 iI(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ro(function(n){t=n}),cancel:t}}}let ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ra).forEach(([t,n])=>{ra[n]=t});let rs=function t(n){let i=new rr(n),r=nx(rr.prototype.request,i);return n8.extend(r,rr.prototype,i,{allOwnKeys:!0}),n8.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iV(n,i))},r}(iM);rs.Axios=rr,rs.CanceledError=iI,rs.CancelToken=ro,rs.isCancel=iD,rs.VERSION="1.13.6",rs.toFormData=io,rs.AxiosError=n9,rs.Cancel=rs.CanceledError,rs.all=function(t){return Promise.all(t)},rs.spread=function(t){return function(n){return t.apply(null,n)}},rs.isAxiosError=function(t){return n8.isObject(t)&&!0===t.isAxiosError},rs.mergeConfig=iV,rs.AxiosHeaders=iS,rs.formToJSON=t=>ik(n8.isHTMLForm(t)?new FormData(t):t),rs.getAdapter=i7,rs.HttpStatusCode=ra,rs.default=rs;class rl{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rS`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rS`info`,options:t})}}class rc{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rS`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rS`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rS`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rS`dashboard/${t}/${n}`,options:i})}}class rd{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rS`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rS`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rS`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rS`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rS`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rS`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rS`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rS`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rS`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rS`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rS`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rS`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rS`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rS`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`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:rS`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rS`asset/${t}/child`,queryParams:n,options:i})}}class rh{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rS`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rS`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rS`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/valueDescriptors`,queryParams:t,options:n})}}class ru{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rS`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rS`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/status/${t}`,options:n})}}class rp{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rS`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rS`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rS`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rS`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rS`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rS`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rS`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rS`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rS`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rS`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rS`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/${n}`,options:i})}}class rm{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`asset/predicted/${t}/${n}`,data:i,options:r})}}class rf{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rS`console/register`,data:t,options:n})}}class rg{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rS`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rS`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rS`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rS`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`realm/${t}`,data:n,options:i})}}class rb{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rS`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rS`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rS`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rS`syslog/event`,queryParams:t,options:n})}}class rv{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rS`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rS`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rS`apps/info`,options:t})}}class r_{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rS`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rS`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rS`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rS`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rS`notification/${t}/delivered`,queryParams:n,options:i})}}class ry{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rS`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rx{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rS`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rS`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rS`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rS`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rS`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rS`map/upload`,queryParams:t,options:n})}}class rw{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rS`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rS`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rk{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rS`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rS`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rS`flow/${t}`,options:n})}}class rM{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rS`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rS`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rS`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rS`configuration/manager/image/${t}`,options:n})}}class rF{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rS`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rS`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rS`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rS`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rS`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rS`service/${t}/${n}`,options:i})}}class rE{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rS`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rS`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rS`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rS`provisioning/${t}`,data:n,options:i})}}class rC{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rS`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rS`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rS`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rS`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rS`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rS`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rS`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rS`alarm/${t}/assets`,queryParams:n,options:i})}}class rT{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rS`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rS`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rS`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rS`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rS`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rS`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rS`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/${t}`,data:n,options:i})}}class rA{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rS`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rS`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}function rS(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 rL{constructor(t,n=rs.create()){this._statusResource=new rI(t,n),this._dashboardResource=new rz(t,n),this._assetResource=new rO(t,n),this._assetModelResource=new rR(t,n),this._gatewayClientResource=new rP(t,n),this._userResource=new r$(t,n),this._assetPredictedDatapointResource=new rB(t,n),this._consoleResource=new rN(t,n),this._realmResource=new rj(t,n),this._syslogResource=new rY(t,n),this._appResource=new rH(t,n),this._notificationResource=new rV(t,n),this._gatewayServiceResource=new rU(t,n),this._mapResource=new rW(t,n),this._assetDatapointResource=new rq(t,n),this._flowResource=new rG(t,n),this._configurationResource=new rK(t,n),this._externalServiceResource=new rX(t,n),this._provisioningResource=new rZ(t,n),this._alarmResource=new rJ(t,n),this._rulesResource=new rQ(t,n),this._agentResource=new r0(t,n),this._assetResource=new rO(t,n)}get StatusResource(){return this._statusResource}get DashboardResource(){return this._dashboardResource}get AssetResource(){return this._assetResource}get AssetModelResource(){return this._assetModelResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConsoleResource(){return this._consoleResource}get RealmResource(){return this._realmResource}get SyslogResource(){return this._syslogResource}get AppResource(){return this._appResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get ProvisioningResource(){return this._provisioningResource}get AlarmResource(){return this._alarmResource}get RulesResource(){return this._rulesResource}get AgentResource(){return this._agentResource}}class rD{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 rI extends rl{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rz extends rc{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rO extends rd{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rR extends rh{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rP extends ru{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class r$ extends rp{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rB extends rm{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rN extends rf{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rj extends rg{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rY extends rb{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rH extends rv{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rV extends r_{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rU extends ry{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rW extends rx{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rq extends rw{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rG extends rk{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rK extends rM{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rX extends rF{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rZ extends rE{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rJ extends rC{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rQ extends rT{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class r0 extends rA{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}rs.isAxiosError;let r1=new class{get api(){return this._client}constructor(){this._axiosInstance=rs.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>ni().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 rL(t,this._axiosInstance)}};var r2=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())})};(cq=d2||(d2={})).DISCONNECTED="DISCONNECTED",cq.CONNECTED="CONNECTED",cq.CONNECTING="CONNECTING";let r3="SUBSCRIBED:",r5="UNAUTHORIZED:",r4="TRIGGERED:",r6="EVENT:";class r8{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=r7.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=d2.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===d2.CONNECTED)?Promise.resolve(!0):(this._disconnectRequested=!1,this._connectingDeferred||(this._onStatusChanged(d2.CONNECTING),this._connectingDeferred=new na,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;this._connectingDeferred=null,t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=r7.MIN_RECONNECT_DELAY,this._onStatusChanged(d2.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):(console.debug("Failed to connect to event service: "+this.endpointUrl),this._scheduleReconnect()),n.resolve(t)}})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==d2.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new na};return null!=this._pendingSubscription||this._status!==d2.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r2(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===d2.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==d2.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return r2(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+r8._subscriptionCounter++;if(!this._assetEventPromise){let t;oB.authenticated||(t={filterType:"asset",realm:oB.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===oB.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 r2(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"+r8._subscriptionCounter++;if(!this._attributeEventPromise){let t;oB.authenticated||(t={filterType:"asset",realm:oB.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===oB.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===d2.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===d2.CONNECTED&&this._onStatusChanged(d2.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(d2.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<r7.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(r7.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}r8.MIN_RECONNECT_DELAY=0,r8.MAX_RECONNECT_DELAY=3e4,r8._subscriptionCounter=0;class r7 extends r8{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="+oB.config.realm;return oB.authenticated&&(t+="&Authorization="+oB.getAuthorizationHeader()),this._webSocket=new WebSocket(t),this._connectDeferred=new na,this._webSocket.onopen=()=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else console.debug("Event provider error"),this._beforeDisconnect()},this._webSocket.onclose=()=>{if(this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(r3)){let t=JSON.parse(n.substring(r3.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(r5)){let t=JSON.parse(n.substring(r5.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(r4)){let t=JSON.parse(n.substring(r4.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(r6)){let t=JSON.parse(n.substring(r6.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 na,t.subscriptionId||(t.subscriptionId=r7._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=r6+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 na;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(r6+JSON.stringify(t)),n.promise}}function r9(t){return(r9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r7._subscriptionCounter=1;var oe=[],ot=oe.forEach,on=oe.slice;function oi(t){return ot.call(on.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function or(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":r9(XMLHttpRequest))==="object"}var oo=o(54550),oa=o.t(oo,2);function os(t){return(os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(d3="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),or()&&("u">typeof global&&global.XMLHttpRequest?d5=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(d5=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?d4=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(d4=window.ActiveXObject)),d3||!oa||d5||d4||(d3=oo||oa),"function"!=typeof d3&&(d3=void 0);var ol=function(t,n){if(n&&"object"===os(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oc=function(t,n,i){d3(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},od=!1,oh=function(t,n,i,r){t.queryStringParams&&(n=ol(n,t.queryStringParams));var o=oi({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=oi({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},od?{}:a);try{oc(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),oc(n,s,r),od=!0}catch(t){r(t)}}},ou=function(t,n,i,r){i&&"object"===os(i)&&(i=ol("",i).slice(1)),t.queryStringParams&&(n=ol(n,t.queryStringParams));try{(o=d5?new d5:new d4("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let op=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},d3)?oh(t,n,i,r):or()||"function"==typeof ActiveXObject?ou(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var om=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=oi(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:op,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var h=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,h,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();om.type="backend";class of extends eX{constructor(t){if(super(t),this.it=ek,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ek||null==t)return this._t=void 0,this.it=t;if(t===ew)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:[]}}}of.directiveName="unsafeHTML",of.resultType=1,eK(of);class og extends of{}og.directiveName="unsafeSVG",og.resultType=2;let ob=eK(og),ov={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',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"/>'};var o_=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 oy extends CustomEvent{constructor(){super(oy.NAME,{bubbles:!0,composed:!0})}}oy.NAME="or-iconset-added";let ox=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oy)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ey``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):ey``}},ow=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[R`
|
|
70
|
+
`,t9([eV({type:String})],ne.prototype,"value",void 0),t9([eV({type:Object})],ne.prototype,"options",void 0),ne=t9([eY("or-translate")],ne),(lX=c3||(c3={})).CREATE="CREATE",lX.UPDATE="UPDATE",lX.DELETE="DELETE",(lZ=c5||(c5={})).LOW="LOW",lZ.MEDIUM="MEDIUM",lZ.HIGH="HIGH",(lJ=c4||(c4={})).MANUAL="MANUAL",lJ.CLIENT="CLIENT",lJ.GLOBAL_RULESET="GLOBAL_RULESET",lJ.REALM_RULESET="REALM_RULESET",lJ.ASSET_RULESET="ASSET_RULESET",lJ.AGENT="AGENT",(lQ=c6||(c6={})).OPEN="OPEN",lQ.ACKNOWLEDGED="ACKNOWLEDGED",lQ.IN_PROGRESS="IN_PROGRESS",lQ.RESOLVED="RESOLVED",lQ.CLOSED="CLOSED",(l0=c8||(c8={})).BOTTOM_LEFT="BOTTOM_LEFT",l0.BOTTOM_RIGHT="BOTTOM_RIGHT",l0.TOP_LEFT="TOP_LEFT",l0.TOP_RIGHT="TOP_RIGHT",(l1=c7||(c7={})).CREATE="CREATE",l1.READ="READ",l1.UPDATE="UPDATE",l1.DELETE="DELETE",(l2=c9||(c9={})).NONE="NONE",l2.FORECAST="FORECAST",l2.SETPOINT="SETPOINT",(l3=de||(de={})).DISCONNECTED="DISCONNECTED",l3.CONNECTING="CONNECTING",l3.DISCONNECTING="DISCONNECTING",l3.CONNECTED="CONNECTED",l3.DISABLED="DISABLED",l3.WAITING="WAITING",l3.ERROR="ERROR",l3.STOPPED="STOPPED",(l5=dt||(dt={})).REQUEST_START="REQUEST_START",l5.REQUEST_REPEATING="REQUEST_REPEATING",l5.REQUEST_CANCEL="REQUEST_CANCEL",l5.READY="READY",l5.COMPLETED="COMPLETED",l5.RUNNING="RUNNING",l5.CANCELLED="CANCELLED",(l4=dn||(dn={})).TOGGLE="TOGGLE",l4.INCREMENT="INCREMENT",l4.DECREMENT="DECREMENT",l4.NEGATE="NEGATE",(l6=di||(di={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",l6.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",l6.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",l6.INVALID_VALUE="INVALID_VALUE",l6.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",l6.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",l6.CANNOT_PROCESS="CANNOT_PROCESS",l6.QUEUE_FULL="QUEUE_FULL",l6.UNKNOWN="UNKNOWN",l6.ASSET_ID_MISSING="ASSET_ID_MISSING",l6.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(l8=dr||(dr={})).PUBLIC="PUBLIC",l8.SHARED="SHARED",l8.PRIVATE="PRIVATE",(l7=da||(da={})).OFF="OFF",l7.ONE_MIN="ONE_MIN",l7.FIVE_MIN="FIVE_MIN",l7.QUARTER="QUARTER",l7.ONE_HOUR="ONE_HOUR",(l9=ds||(ds={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",l9.KEEP_LAYOUT="KEEP_LAYOUT",l9.REDIRECT="REDIRECT",l9.BLOCK_DEVICE="BLOCK_DEVICE",(ce=dl||(dl={})).CSV="CSV",ce.CSV_CROSSTAB="CSV_CROSSTAB",ce.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(ct=dc||(dc={})).MINUTE="MINUTE",ct.HOUR="HOUR",ct.DAY="DAY",ct.WEEK="WEEK",ct.MONTH="MONTH",ct.YEAR="YEAR",(cn=dd||(dd={})).MIN="MIN",cn.AVG="AVG",cn.MAX="MAX",cn.DIFFERENCE="DIFFERENCE",cn.COUNT="COUNT",cn.SUM="SUM",cn.MODE="MODE",cn.MEDIAN="MEDIAN",(ci=dh||(dh={})).TERMINATING="TERMINATING",ci.DISABLED="DISABLED",ci.ALREADY_CONNECTED="ALREADY_CONNECTED",ci.UNRECOGNISED="UNRECOGNISED",ci.PERMANENT_ERROR="PERMANENT_ERROR",ci.SYNC_ERROR="SYNC_ERROR",(cr=du||(du={})).HTTPS="HTTPS",cr.HTTP="HTTP",cr.TCP="TCP",(co=dp||(dp={})).GET="GET",co.POST="POST",co.PUT="PUT",co.DELETE="DELETE",co.OPTIONS="OPTIONS",co.PATCH="PATCH",(ca=dm||(dm={})).KEYCLOAK="KEYCLOAK",ca.BASIC="BASIC",ca.NONE="NONE",(cs=df||(df={})).WEBSOCKET="WEBSOCKET",cs.POLLING="POLLING",(cl=dg||(dg={})).INTERNAL="INTERNAL",cl.CLIENT="CLIENT",cl.GLOBAL_RULESET="GLOBAL_RULESET",cl.REALM_RULESET="REALM_RULESET",cl.ASSET_RULESET="ASSET_RULESET",(cc=db||(db={})).REALM="REALM",cc.USER="USER",cc.ASSET="ASSET",cc.CUSTOM="CUSTOM",(cd=dv||(dv={})).NORMAL="NORMAL",cd.HIGH="HIGH",(ch=d_||(d_={})).DEVICE="DEVICE",ch.TOPIC="TOPIC",ch.CONDITION="CONDITION",(cu=dy||(dy={})).ALWAYS="ALWAYS",cu.ONCE="ONCE",cu.HOURLY="HOURLY",cu.DAILY="DAILY",cu.WEEKLY="WEEKLY",cu.MONTHLY="MONTHLY",cu.ANNUALLY="ANNUALLY",(cp=dx||(dx={})).MESSAGE_INVALID="MESSAGE_INVALID",cp.CERTIFICATE_INVALID="CERTIFICATE_INVALID",cp.UNAUTHORIZED="UNAUTHORIZED",cp.FORBIDDEN="FORBIDDEN",cp.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",cp.CONFIG_DISABLED="CONFIG_DISABLED",cp.USER_DISABLED="USER_DISABLED",cp.SERVER_ERROR="SERVER_ERROR",cp.ASSET_ERROR="ASSET_ERROR",cp.SERVER_BUSY="SERVER_BUSY",(cm=dw||(dw={})).PRIVATE="PRIVATE",cm.PROTECTED="PROTECTED",cm.PUBLIC="PUBLIC",(cf=dk||(dk={})).EXACT="EXACT",cf.BEGIN="BEGIN",cf.END="END",cf.CONTAINS="CONTAINS",(cg=dM||(dM={})).EQUALS="EQUALS",cg.GREATER_THAN="GREATER_THAN",cg.GREATER_EQUALS="GREATER_EQUALS",cg.LESS_THAN="LESS_THAN",cg.LESS_EQUALS="LESS_EQUALS",cg.BETWEEN="BETWEEN",(cb=dF||(dF={})).CREATED_ON="CREATED_ON",cb.NAME="NAME",cb.ASSET_TYPE="ASSET_TYPE",cb.PARENT_ID="PARENT_ID",cb.REALM="REALM",(cv=dE||(dE={})).RESTRICTED="RESTRICTED",cv.LINKED="LINKED",cv.REALM="REALM",(c_=dC||(dC={})).AT_LEAST_ONE="AT_LEAST_ONE",c_.ALL="ALL",c_.NONE="NONE",(cy=dT||(dT={})).AND="AND",cy.OR="OR",(cx=dA||(dA={})).CREATED_ON="CREATED_ON",cx.FIRST_NAME="FIRST_NAME",cx.LAST_NAME="LAST_NAME",cx.USERNAME="USERNAME",cx.EMAIL="EMAIL",(cw=dS||(dS={})).STOPPED="STOPPED",cw.RUNNING="RUNNING",cw.ERROR="ERROR",(ck=dL||(dL={})).JAVASCRIPT="JAVASCRIPT",ck.GROOVY="GROOVY",ck.JSON="JSON",ck.FLOW="FLOW",(cM=dD||(dD={})).READY="READY",cM.DEPLOYED="DEPLOYED",cM.COMPILATION_ERROR="COMPILATION_ERROR",cM.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",cM.EXECUTION_ERROR="EXECUTION_ERROR",cM.LOOP_ERROR="LOOP_ERROR",cM.DISABLED="DISABLED",cM.PAUSED="PAUSED",cM.EXPIRED="EXPIRED",cM.REMOVED="REMOVED",cM.EMPTY="EMPTY",(cF=dI||(dI={})).SUNRISE="SUNRISE",cF.SUNSET="SUNSET",cF.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",cF.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",cF.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",cF.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",cF.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",cF.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",cF.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",cF.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",cF.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",cF.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",cF.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",cF.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",cF.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",cF.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",cF.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",cF.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",cF.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",cF.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(cE=dz||(dz={})).NUMBER="NUMBER",cE.NUMBER_ARRAY="NUMBER_ARRAY",cE.STRING="STRING",cE.BOOLEAN="BOOLEAN",cE.TRIGGER="TRIGGER",cE.COLOR="COLOR",cE.ANY="ANY",(cC=dO||(dO={})).NEW_LINE="NEW_LINE",cC.SPACER="SPACER",(cT=dR||(dR={})).INPUT="INPUT",cT.PROCESSOR="PROCESSOR",cT.OUTPUT="OUTPUT",cT.THEN="THEN",(cA=dP||(dP={})).TEXT="TEXT",cA.MULTILINE="MULTILINE",cA.NUMBER="NUMBER",cA.DROPDOWN="DROPDOWN",cA.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",cA.CHECKBOX="CHECKBOX",cA.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",cA.COLOR="COLOR",cA.DATE="DATE",(cS=d$||(d$={})).ADD="ADD",cS.ADD_OR_REPLACE="ADD_OR_REPLACE",cS.REPLACE="REPLACE",cS.DELETE="DELETE",cS.CLEAR="CLEAR",(cL=dB||(dB={})).PER_ASSET="PER_ASSET",cL.GLOBAL="GLOBAL",(cD=dN||(dN={})).READ_ADMIN="read:admin",cD.READ_LOGS="read:logs",cD.READ_USERS="read:users",cD.READ_MAP="read:map",cD.READ_ASSETS="read:assets",cD.READ_RULES="read:rules",cD.READ_INSIGHTS="read:insights",cD.READ_ALARMS="read:alarms",cD.READ_SERVICES="read:services",cD.WRITE_SERVICES="write:services",cD.WRITE_USER="write:user",cD.WRITE_ADMIN="write:admin",cD.WRITE_LOGS="write:logs",cD.WRITE_ASSETS="write:assets",cD.WRITE_ATTRIBUTES="write:attributes",cD.WRITE_RULES="write:rules",cD.WRITE_INSIGHTS="write:insights",cD.WRITE_ALARMS="write:alarms",cD.READ="read",cD.WRITE="write",(cI=dj||(dj={})).REGISTER="REGISTER",cI.UPDATE="UPDATE",cI.DEREGISTER="DEREGISTER",(cz=dY||(dY={})).AVAILABLE="AVAILABLE",cz.UNAVAILABLE="UNAVAILABLE",(cO=dH||(dH={})).ASSET="ASSET",cO.AGENT="AGENT",cO.NOTIFICATION="NOTIFICATION",cO.ALARM="ALARM",cO.RULES="RULES",cO.PROTOCOL="PROTOCOL",cO.GATEWAY="GATEWAY",cO.MODEL_AND_VALUES="MODEL_AND_VALUES",cO.API="API",cO.DATA="DATA",(cR=dV||(dV={})).INFO="INFO",cR.WARN="WARN",cR.ERROR="ERROR",(cP=dU||(dU={})).NUMERIC="numeric",cP.DIGIT_2="2-digit",cP.FULL="full",cP.LONG="long",cP.MEDIUM="medium",cP.SHORT="short",cP.NARROW="narrow",(c$=dW||(dW={})).SECONDLY="SECONDLY",c$.MINUTELY="MINUTELY",c$.HOURLY="HOURLY",c$.DAILY="DAILY",c$.WEEKLY="WEEKLY",c$.MONTHLY="MONTHLY",c$.YEARLY="YEARLY",(cB=dq||(dq={})).OMIT="OMIT",cB.BACKWARD="BACKWARD",cB.FORWARD="FORWARD",(cN=dG||(dG={})).JAPANESE="JAPANESE",cN.BUDDHIST="BUDDHIST",cN.ROC="ROC",cN.ISLAMIC="ISLAMIC",cN.ISO8601="ISO8601",cN.CHINESE="CHINESE",cN.ETHIOPIC="ETHIOPIC",cN.HEBREW="HEBREW",cN.GREGORIAN="GREGORIAN",(cj=dK||(dK={})).SU="SU",cj.MO="MO",cj.TU="TU",cj.WE="WE",cj.TH="TH",cj.FR="FR",cj.SA="SA",(cY=dX||(dX={})).PEOPLECOUNTERASSET="PeopleCounterAsset",cY.MAILAGENT="MailAgent",cY.UDPAGENT="UDPAgent",cY.ROOMASSET="RoomAsset",cY.CITYASSET="CityAsset",cY.VENTILATIONASSET="VentilationAsset",cY.TRADFRILIGHTASSET="TradfriLightAsset",cY.CONSOLEASSET="ConsoleAsset",cY.PRESENCESENSORASSET="PresenceSensorAsset",cY.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",cY.LIGHTASSET="LightAsset",cY.KNXAGENT="KNXAgent",cY.THETHINGSSTACKAGENT="TheThingsStackAgent",cY.PLUGASSET="PlugAsset",cY.CHIRPSTACKAGENT="ChirpStackAgent",cY.WEATHERASSET="WeatherAsset",cY.THINGASSET="ThingAsset",cY.WEBSOCKETAGENT="WebsocketAgent",cY.TCPAGENT="TCPAgent",cY.GATEWAYASSET="GatewayAsset",cY.SERIALAGENT="SerialAgent",cY.BLUETOOTHMESHAGENT="BluetoothMeshAgent",cY.PARKINGASSET="ParkingAsset",cY.TRADFRIPLUGASSET="TradfriPlugAsset",cY.SIMULATORAGENT="SimulatorAgent",cY.SNMPAGENT="SNMPAgent",cY.GROUPASSET="GroupAsset",cY.BUILDINGASSET="BuildingAsset",cY.MODBUSSERIALAGENT="ModbusSerialAgent",cY.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",cY.MQTTAGENT="MQTTAgent",cY.VELBUSTCPAGENT="VelbusTCPAgent",cY.ARTNETLIGHTASSET="ArtnetLightAsset",cY.VELBUSSERIALAGENT="VelbusSerialAgent",cY.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",cY.MICROPHONEASSET="MicrophoneAsset",cY.MODBUSTCPAGENT="ModbusTcpAgent",cY.ZWAVEAGENT="ZWaveAgent",cY.HTTPAGENT="HTTPAgent",cY.DOORASSET="DoorAsset",cY.THERMOSTATASSET="ThermostatAsset",cY.SHIPASSET="ShipAsset",(cH=dZ||(dZ={})).COLOURRGB="colourRGB",cH.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",cH.PRICEHOURLY="priceHourly",cH.MQTTPORT="MQTTPort",cH.PINGDISABLED="pingDisabled",cH.FLOW="flow",cH.CHILDASSETTYPE="childAssetType",cH.LASTACCESS="lastAccess",cH.POSITION="position",cH.NETWORKKEY="networkKey",cH.UNIVERSE="universe",cH.ROUTINGMODE="routingMode",cH.MSSINUMBER="MSSINumber",cH.LASTWILLRETAIN="lastWillRetain",cH.LASTWILLTOPIC="lastWillTopic",cH.SERIALBAUDRATE="serialBaudrate",cH.SUBSCRIBEQOS="subscribeQos",cH.LEDCOUNT="lEDCount",cH.LOCKED="locked",cH.CLOUDCOVERAGE="cloudCoverage",cH.BASEURL="baseURL",cH.PROTOCOL="protocol",cH.REQUIREDVALUES="requiredValues",cH.REGION="region",cH.CONSOLEPLATFORM="consolePlatform",cH.GATEWAYSTATUS="gatewayStatus",cH.NO2LEVEL="NO2Level",cH.ATMOSPHERICPRESSURE="atmosphericPressure",cH.SERIALPORT="serialPort",cH.APPLICATIONID="applicationId",cH.TAGS="tags",cH.UNLOCK="unlock",cH.CHECKINTERVALSECONDS="checkIntervalSeconds",cH.LOCATION="location",cH.CLIENTSECRET="clientSecret",cH.WINDDIRECTION="windDirection",cH.WINDSPEED="windSpeed",cH.PARTICLESPM10="particlesPM10",cH.APPLICATIONKEY="applicationKey",cH.LENGTH="length",cH.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",cH.USERNAMEPASSWORD="usernamePassword",cH.WATERLEVEL="waterLevel",cH.CONNECTHEADERS="connectHeaders",cH.CONSOLENAME="consoleName",cH.WEBSOCKETQUERY="websocketQuery",cH.PREFERHTML="preferHTML",cH.PARITY="parity",cH.COOLING="cooling",cH.POLLINGMILLIS="pollingMillis",cH.SOILTEMPERATURE="soilTemperature",cH.SUNIRRADIANCE="sunIrradiance",cH.MESSAGEMAXLENGTH="messageMaxLength",cH.WINDGUSTSPEED="windGustSpeed",cH.LIGHTID="lightId",cH.PROXYADDRESS="proxyAddress",cH.REQUESTQUERYPARAMETERS="requestQueryParameters",cH.MQTTHOST="MQTTHost",cH.SECUREGRPC="secureGRPC",cH.MODEL="model",cH.STREET="street",cH.MANUFACTURER="manufacturer",cH.DELETEPROCESSEDMAIL="deleteProcessedMail",cH.RESUMESESSION="resumeSession",cH.ONOFF="onOff",cH.APIKEY="ApiKey",cH.CITY="city",cH.PRESENCE="presence",cH.SPACESOCCUPIED="spacesOccupied",cH.STARTTLS="startTLS",cH.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",cH.WEBSOCKETPATH="websocketPath",cH.AGENTSTATUS="agentStatus",cH.PRICEDAILY="priceDaily",cH.COUNTGROWTHMINUTE="countGrowthMinute",cH.IMONUMBER="IMONumber",cH.ATTRIBUTION="Attribution",cH.TENANTID="tenantId",cH.REQUESTHEADERS="requestHeaders",cH.HOST="host",cH.COUNTOUTMINUTE="countOutMinute",cH.MESSAGECHARSET="messageCharset",cH.CERTIFICATEALIAS="certificateAlias",cH.EMAIL="email",cH.BINDPORT="bindPort",cH.CONSOLEVERSION="consoleVersion",cH.PARTICLESPM1="particlesPM1",cH.MTU="mtu",cH.SPEED="speed",cH.MESSAGESTRIPDELIMITER="messageStripDelimiter",cH.AREA="area",cH.COUNTRY="country",cH.SHIPTYPE="shipType",cH.CONNECTSUBSCRIPTIONS="connectSubscriptions",cH.RELATIVEHUMIDITY="relativeHumidity",cH.SOURCEADDRESS="sourceAddress",cH.RAINFALL="rainfall",cH.OAUTHGRANT="oAuthGrant",cH.OZONELEVEL="ozoneLevel",cH.SEQUENCENUMBER="sequenceNumber",cH.COUNTINMINUTE="countInMinute",cH.PORT="port",cH.SUNALTITUDE="sunAltitude",cH.COUNTOUT="countOut",cH.ROOMNUMBER="roomNumber",cH.TUNNELINGSUPPORTED="tunnelingSupported",cH.ENINUMBER="ENINumber",cH.PARTICLESPM2_5="particlesPM2_5",cH.AGENTDISABLED="agentDisabled",cH.DISABLED="disabled",cH.COUNTIN="countIn",cH.MESSAGESOURCEADDRESS="messageSourceAddress",cH.PROVISIONWEATHERASSET="ProvisionWeatherAsset",cH.TIMEINJECTIONINTERVAL="timeInjectionInterval",cH.TEMPERATURESETPOINT="temperatureSetpoint",cH.CONSOLEPROVIDERS="consoleProviders",cH.COUNTTOTAL="countTotal",cH.SPACESBUFFER="spacesBuffer",cH.DEVICECONFIG="deviceConfig",cH.SPACESTOTAL="spacesTotal",cH.BINDHOST="bindHost",cH.FANSPEED="fanSpeed",cH.MESSAGECONVERTBINARY="messageConvertBinary",cH.NOTES="notes",cH.MAILFOLDERNAME="mailFolderName",cH.MESSAGEDELIMITERS="messageDelimiters",cH.TEMPERATURE="temperature",cH.SUNZENITH="sunZenith",cH.SNMPVERSIONVALUE="SNMPVersionValue",cH.BRIGHTNESS="brightness",cH.POSTALCODE="postalCode",cH.SPACESOPEN="spacesOpen",cH.HUMIDITY="humidity",cH.SOUNDLEVEL="soundLevel",cH.SECUREMODE="secureMode",cH.DIRECTION="direction",cH.STOPBITS="stopbits",cH.UVINDEX="uVIndex",cH.CONNECTURL="connectURL",cH.CLIENTID="clientId",cH.NATMODE="NATMode",cH.UPDATEONWRITE="updateOnWrite",cH.LASTWILLPAYLOAD="lastWillPayload",cH.GROUPID="groupId",cH.FOLLOWREDIRECTS="followRedirects",cH.SUNAZIMUTH="sunAzimuth",cH.MESSAGECONVERTHEX="messageConvertHex",cH.WEBSOCKETMODE="websocketMode",cH.COLOURTEMPERATURE="colourTemperature",cH.PUBLISHQOS="publishQos",cH.DATABITS="dataBits",(cV=dJ||(dJ={})).FORMAT="format",cV.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",cV.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",cV.SECRET="secret",cV.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",cV.ATTRIBUTELINKS="attributeLinks",cV.RULERESETIMMEDIATE="ruleResetImmediate",cV.RULESTATE="ruleState",cV.AGENTLINKCONFIG="agentLinkConfig",cV.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",cV.FORECAST="forecast",cV.STOREDATAPOINTS="storeDataPoints",cV.LABEL="label",cV.CONSTRAINTS="constraints",cV.UNITS="units",cV.USERCONNECTED="userConnected",cV.SHOWONDASHBOARD="showOnDashboard",cV.READONLY="readOnly",cV.MULTILINE="multiline",cV.ACCESSPUBLICWRITE="accessPublicWrite",cV.MOMENTARY="momentary",cV.AGENTLINK="agentLink",cV.ACCESSRESTRICTEDREAD="accessRestrictedRead",cV.ACCESSPUBLICREAD="accessPublicRead",(cU=dQ||(dQ={})).ASSETQUERY="assetQuery",cU.WSURL="WS_URL",cU.COLOURRGB="colourRGB",cU.VALUEFORMAT="valueFormat",cU.TEXT="text",cU.BYTE="byte",cU.USERNAMEANDPASSWORD="usernameAndPassword",cU.HTTPURL="HTTP_URL",cU.ATTRIBUTELINK="attributeLink",cU.ASSETID="assetID",cU.NUMBERMAP="numberMap",cU.HTTPMETHOD="HTTPMethod",cU.ATTRIBUTESTATE="attributeState",cU.POSITIVENUMBER="positiveNumber",cU.POSITIVEINTEGER="positiveInteger",cU.EXECUTIONSTATUS="executionStatus",cU.BIGINTEGER="bigInteger",cU.VALUEDESCRIPTOR="valueDescriptor",cU.PERIODDURATIONISO8601="periodDurationISO8601",cU.LONG="long",cU.DATEANDTIME="dateAndTime",cU.BOOLEANMAP="booleanMap",cU.MQTTQOS="MQTTQos",cU.NEGATIVEINTEGER="negativeInteger",cU.TCPIPPORTNUMBER="TCP_IPPortNumber",cU.GEOJSONPOINT="GEO_JSONPoint",cU.SNMPVERSION="SNMPVersion",cU.ASSETTYPE="assetType",cU.JSONOBJECT="JSONObject",cU.INTEGERMAP="integerMap",cU.BIGNUMBER="bigNumber",cU.IPADDRESS="IPAddress",cU.EMAIL="email",cU.TIMESTAMP="timestamp",cU.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",cU.ATTRIBUTEREFERENCE="attributeReference",cU.UUID="UUID",cU.INTEGER="integer",cU.OAUTHGRANT="oAuthGrant",cU.NUMBER="number",cU.DEVICECONFIGMAP="DeviceConfigMap",cU.TEXTMAP="textMap",cU.WEBSOCKETSUBSCRIPTION="websocketSubscription",cU.BOOLEAN="boolean",cU.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",cU.FORECASTCONFIGURATION="forecastConfiguration",cU.TIMEDURATIONISO8601="timeDurationISO8601",cU.TIMESTAMPISO8601="timestampISO8601",cU.CONSOLEPROVIDERS="consoleProviders",cU.MULTIVALUEDTEXTMAP="multivaluedTextMap",cU.NEGATIVENUMBER="negativeNumber",cU.PARITYBIT="Paritybit",cU.JSON="JSON",cU.CRONEXPRESSION="CRONExpression",cU.INTEGERBYTE="integerByte",cU.AGENTLINK="agentLink",cU.DIRECTION="direction",cU.HOSTORIPADDRESS="hostOrIPAddress",cU.STOPBITS="Stopbits",cU.CALENDAREVENT="calendarEvent",cU.CONNECTIONSTATUS="connectionStatus",cU.VALUECONSTRAINT="valueConstraint",(cW=d0||(d0={})).MONTH="month",cW.MILE_SCANDINAVIAN="mile_scandinavian",cW.VAR="var",cW.OUNCE="ounce",cW.HECTARE="hectare",cW.YARD="yard",cW.YEAR="year",cW.JOULE="joule",cW.VOLT="volt",cW.HERTZ="hertz",cW.MILE="mile",cW.DEGREE="degree",cW.KILO="kilo",cW.BTU="btu",cW.FOOT="foot",cW.MEGA="mega",cW.KELVIN="kelvin",cW.CARBON="carbon",cW.DECIBEL_ATTENUATED="decibel_attenuated",cW.INCH="inch",cW.SQUARED="squared",cW.PERCENTAGE="percentage",cW.IN_HG="inch_mercury",cW.CENTI="centi",cW.GRAM="gram",cW.CUBED="cubed",cW.DAY="day",cW.RADIAN="radian",cW.OHM="ohm",cW.MINUTE="minute",cW.PART_PER_MILLION="ppm",cW.AMP="amp",cW.MASS_POUND="pound",cW.KNOT="knot",cW.METRE="metre",cW.LITRE="litre",cW.FLUID_OUNCE="fluid_ounce",cW.HOUR="hour",cW.ACRE="acre",cW.CELSIUS="celsius",cW.RPM="rpm",cW.PASCAL="pascal",cW.DECIBEL="decibel",cW.LUMEN="lumen",cW.WEEK="week",cW.FAHRENHEIT="fahrenheit",cW.WATT="watt",cW.GALLON="gallon",cW.LUX="lux",cW.MILLI="milli",cW.BAR="bar",cW.HECTO="hecto",cW.PEAK="peak",cW.SECOND="second",cW.MICRO="micro",cW.PER="per",cW.STONE="stone",d1||(d1={});class nt{static getAssetDescriptors(){return nt._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=nt.getValueDescriptor(n)),i=n.jsonType?n:nt.getValueDescriptor(n.type)),!i&&t&&(i=nt.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}}nt._assetTypeInfos=[],nt._metaItemDescriptors=[],nt._valueDescriptors=[],o(44532);var nn=o(88183),ni=o.n(nn),nr=o(14867),no=o.n(nr);o(83472);class na{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 ns(t,n,i=!0){if(null==t||null==n)return t===n;if(t.constructor!==n.constructor)return!1;if(t instanceof Function||t instanceof RegExp)return t===n;if(t===n||t.valueOf()===n.valueOf())return!0;if(Array.isArray(t)&&t.length!==n.length||t instanceof Date||!(t instanceof Object)||!(n instanceof Object))return!1;if(i){let i=Object.keys(t);return Object.keys(n).every(t=>-1!==i.indexOf(t))&&i.every(i=>ns(t[i],n[i]))}return!1}function nl(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 nc(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 nd(t,n){let i="string"==typeof t?nt.getMetaItemDescriptor(t):t;return i?{name:i.name,type:i.type,value:n}:{name:typeof t,type:nt.resolveValueTypeFromValue(n),value:n}}function nh(t,n,i,r,o,a){let s=ng("label",t,n,i,o),l="";if(s||(s=nc("label",t,n&&n.meta?n:void 0)),r&&(l=nm(nf("units",t,n,i,o))),!s){let i=t?t.name:n?"string"==typeof n?n:n.name:void 0;s=a||(i?nl(i):void 0)}return s?s+(l?" ("+l+")":""):l}function nu(t,n,i,r,o,a){let s=np(t?t.value:void 0,()=>nf("format",t,n,i,o),void 0,a),l=nf("units",t,n,i,!0);return r&&l&&l.length&&(s=nm(nf("units",t,n,i,o),s)),s}function np(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||t7.language,r).format(t);break;case"boolean":r.asOnOff&&(o=t?t7.t("on"):t7.t("off")),r.asOpenClosed&&(o=t?t7.t("open"):t7.t("closed")),r.asPressedReleased&&(o=t?t7.t("pressed"):t7.t("released"));break;case"object":if(r.momentJsFormat)o=no()(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||t7.language,r).format(t)}else o=Object(t).toString()}return o}function nm(t,n){if(!t)return"";n||(n="");let i=t.map((t,i)=>{if(3!==t.length||t.toUpperCase()!==t)return t7.t(["units."+t,"or:units."+t]);{let r=new Intl.NumberFormat(t7.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 nf(t,n,i,r,o){let a,s=[],l=ng(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=nc(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=nt.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 ng(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 t7.t(l,{defaultValue:a||""})}function nb(t,n){let i=n.ref.name;if(t.attributes)if(n.deleted)delete t.attributes[i];else{let r=t.attributes[i];r&&(r.value=n.value,r.timestamp=n.timestamp)}return Object.assign({},t)}var nv=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 n_=o(74461);class ny{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 h=ny._createConsoleRegistration(),u=window.localStorage.getItem("OpenRemoteConsole:"+t);if(u)try{let t=JSON.parse(u);t.id&&(h.id=t.id),t.name&&(h.name=t.name),t.providers&&(h.providers=t.providers),t.apps&&(h.apps=t.apps)}catch(t){console.error("Failed to deserialise console registration")}let p=h.providers;for(let t of(h.providers={},d)){let n=p&&p.hasOwnProperty(t)?p[t]:{enabled:!1,disabled:!1};h.providers[t]=n}let m=oB.getAppName();m.length>0&&0>h.apps.indexOf(m)&&h.apps.push(m),this._registration=h,o&&(h.name=o),a&&(h.version=a),s&&(h.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 nv(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let t of Object.keys(this._registration.providers))yield this._initialiseProvider(t);this._registration.id||(yield this.sendRegistration(0)),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(t){console.error(t)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return nv(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 nv(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(t))throw console.debug("Invalid console provider '"+t+"'"),Error("Invalid console provider '"+t+"'");console.debug("Console: enabling provider '"+t+"'");let i={provider:t,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:n},r=yield this.sendProviderMessage(i,!0);this._registration.providers[t].hasPermission=r.hasPermission,this._registration.providers[t].success=r.success,this._registration.providers[t].enabled=r.success,this._registration.providers[t].data=r.data;let o=this._pendingProviderEnables.indexOf(t);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration(),this._callCompletedCallback())),r})}disableProvider(t){return nv(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 nv(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 na,o=()=>{delete this._pendingProviderPromises[i],r.reject("No response from provider")};return this._pendingProviderPromises[i]=[r,window.setTimeout(o,5e3)],this._doSendProviderMessage(t),r.promise})}sendRegistration(t){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),console.debug("Sending registration in: "+(t=void 0!==t?t:2e3)+"ms"),new Promise((t,n)=>{this._registrationTimer=window.setTimeout(()=>{this._registrationTimer=null,console.debug("Console: updating registration");try{this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={}),oB.rest.api.ConsoleResource.register(this._registration).then(n=>{if(200!==n.status)throw Error("Failed to register console");this._registration=n.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem("OpenRemoteConsole:"+this._realm,JSON.stringify(this._registration)),t()})}catch(t){console.error("Failed to register console"),n("Failed to register console")}})})}storeData(t,n){this.sendProviderMessage({provider:"storage",action:"STORE",key:t,value:n},!1)}retrieveData(t){return nv(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:n_.name,version:n_.version,platform:n_.os.toString(),apps:[],model:((n_.manufacturer?n_.manufacturer+" ":"")+(n_.product?n_.product:"")).trim()}}_initialiseProvider(t){return nv(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 nx(t,n){return function(){return t.apply(n,arguments)}}let{toString:nw}=Object.prototype,{getPrototypeOf:nk}=Object,{iterator:nM,toStringTag:nF}=Symbol,nE=(c=Object.create(null),t=>{let n=nw.call(t);return c[n]||(c[n]=n.slice(8,-1).toLowerCase())}),nC=t=>(t=t.toLowerCase(),n=>nE(n)===t),nT=t=>n=>typeof n===t,{isArray:nA}=Array,nS=nT("undefined");function nL(t){return null!==t&&!nS(t)&&null!==t.constructor&&!nS(t.constructor)&&nz(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}let nD=nC("ArrayBuffer"),nI=nT("string"),nz=nT("function"),nO=nT("number"),nR=t=>null!==t&&"object"==typeof t,nP=t=>{if("object"!==nE(t))return!1;let n=nk(t);return(null===n||n===Object.prototype||null===Object.getPrototypeOf(n))&&!(nF in t)&&!(nM in t)},n$=nC("Date"),nB=nC("File"),nN=nC("Blob"),nj=nC("FileList"),nY="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},nH=void 0!==nY.FormData?nY.FormData:void 0,nV=nC("URLSearchParams"),[nU,nW,nq,nG]=["ReadableStream","Request","Response","Headers"].map(nC);function nK(t,n,{allOwnKeys:i=!1}={}){let r,o;if(null!=t)if("object"!=typeof t&&(t=[t]),nA(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{let o;if(nL(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 nX(t,n){let i;if(nL(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 nZ="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,nJ=t=>!nS(t)&&t!==nZ,nQ=(d="u">typeof Uint8Array&&nk(Uint8Array),t=>d&&t instanceof d),n0=nC("HTMLFormElement"),n1=(({hasOwnProperty:t})=>(n,i)=>t.call(n,i))(Object.prototype),n2=nC("RegExp"),n3=(t,n)=>{let i=Object.getOwnPropertyDescriptors(t),r={};nK(i,(i,o)=>{let a;!1!==(a=n(i,o,t))&&(r[o]=a||i)}),Object.defineProperties(t,r)},n5=nC("AsyncFunction"),n4=(lW="function"==typeof setImmediate,lq=nz(nZ.postMessage),lW?setImmediate:lq?(lG=`axios@${Math.random()}`,lK=[],nZ.addEventListener("message",({source:t,data:n})=>{t===nZ&&n===lG&&lK.length&&lK.shift()()},!1),t=>{lK.push(t),nZ.postMessage(lG,"*")}):t=>setTimeout(t)),n6="u">typeof queueMicrotask?queueMicrotask.bind(nZ):"u">typeof process&&process.nextTick||n4,n8={isArray:nA,isArrayBuffer:nD,isBuffer:nL,isFormData:t=>{let n;return t&&(nH&&t instanceof nH||nz(t.append)&&("formdata"===(n=nE(t))||"object"===n&&nz(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&nD(t.buffer)},isString:nI,isNumber:nO,isBoolean:t=>!0===t||!1===t,isObject:nR,isPlainObject:nP,isEmptyObject:t=>{if(!nR(t)||nL(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(t){return!1}},isReadableStream:nU,isRequest:nW,isResponse:nq,isHeaders:nG,isUndefined:nS,isDate:n$,isFile:nB,isReactNativeBlob:t=>!!(t&&void 0!==t.uri),isReactNative:t=>t&&void 0!==t.getParts,isBlob:nN,isRegExp:n2,isFunction:nz,isStream:t=>nR(t)&&nz(t.pipe),isURLSearchParams:nV,isTypedArray:nQ,isFileList:nj,forEach:nK,merge:function t(){let{caseless:n,skipUndefined:i}=nJ(this)&&this||{},r={},o=(o,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let s=n&&nX(r,a)||a;nP(r[s])&&nP(o)?r[s]=t(r[s],o):nP(o)?r[s]=t({},o):nA(o)?r[s]=o.slice():i&&nS(o)||(r[s]=o)};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&nK(arguments[t],o);return r},extend:(t,n,i,{allOwnKeys:r}={})=>(nK(n,(n,r)=>{i&&nz(n)?Object.defineProperty(t,r,{value:nx(n,i),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,r,{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",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:n.prototype}),i&&Object.assign(t.prototype,i)},toFlatObject:(t,n,i,r)=>{let o,a,s,l={};if(n=n||{},null==t)return n;do{for(a=(o=Object.getOwnPropertyNames(t)).length;a-- >0;)s=o[a],(!r||r(s,t,n))&&!l[s]&&(n[s]=t[s],l[s]=!0);t=!1!==i&&nk(t)}while(t&&(!i||i(t,n))&&t!==Object.prototype);return n},kindOf:nE,kindOfTest:nC,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(nA(t))return t;let n=t.length;if(!nO(n))return null;let i=Array(n);for(;n-- >0;)i[n]=t[n];return i},forEachEntry:(t,n)=>{let i,r=(t&&t[nM]).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:n0,hasOwnProperty:n1,hasOwnProp:n1,reduceDescriptors:n3,freezeMethods:t=>{n3(t,(n,i)=>{if(nz(t)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(nz(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(nA(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:nX,global:nZ,isContextDefined:nJ,isSpecCompliantForm:function(t){return!!(t&&nz(t.append)&&"FormData"===t[nF]&&t[nM])},toJSONObject:t=>{let n=Array(10),i=(t,r)=>{if(nR(t)){if(n.indexOf(t)>=0)return;if(nL(t))return t;if(!("toJSON"in t)){n[r]=t;let o=nA(t)?[]:{};return nK(t,(t,n)=>{let a=i(t,r+1);nS(a)||(o[n]=a)}),n[r]=void 0,o}}return t};return i(t,0)},isAsyncFn:n5,isThenable:t=>t&&(nR(t)||nz(t))&&nz(t.then)&&nz(t.catch),setImmediate:n4,asap:n6,isIterable:t=>null!=t&&nz(t[nM])};class n7 extends Error{static from(t,n,i,r,o,a){let s=new n7(t.message,n||t.code,i,r,o);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),a&&Object.assign(s,a),s}constructor(t,n,i,r,o){super(t),Object.defineProperty(this,"message",{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(){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:n8.toJSONObject(this.config),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.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";let n9=n7;function ie(t){return n8.isPlainObject(t)||n8.isArray(t)}function it(t){return n8.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=n8.toFlatObject(n8,{},null,function(t){return/^is[A-Z]/.test(t)}),io=function(t,n,i){if(!n8.isObject(t))throw TypeError("target must be an object");n=n||new FormData;let r=(i=n8.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,n){return!n8.isUndefined(n[t])})).metaTokens,o=i.visitor||d,a=i.dots,s=i.indexes,l=(i.Blob||"u">typeof Blob&&Blob)&&n8.isSpecCompliantForm(n);if(!n8.isFunction(o))throw TypeError("visitor must be a function");function c(t){if(null===t)return"";if(n8.isDate(t))return t.toISOString();if(n8.isBoolean(t))return t.toString();if(!l&&n8.isBlob(t))throw new n9("Blob is not supported. Use a Buffer instead.");return n8.isArrayBuffer(t)||n8.isTypedArray(t)?l&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function d(t,i,o){let l=t;if(n8.isReactNative(n)&&n8.isReactNativeBlob(t))return n.append(ii(o,i,a),c(t)),!1;if(t&&!o&&"object"==typeof t)if(n8.endsWith(i,"{}"))i=r?i:i.slice(0,-2),t=JSON.stringify(t);else{var d;if(n8.isArray(t)&&(d=t,n8.isArray(d)&&!d.some(ie))||(n8.isFileList(t)||n8.endsWith(i,"[]"))&&(l=n8.toArray(t)))return i=it(i),l.forEach(function(t,r){n8.isUndefined(t)||null===t||n.append(!0===s?ii([i],r,a):null===s?i:i+"[]",c(t))}),!1}return!!ie(t)||(n.append(ii(o,i,a),c(t)),!1)}let h=[],u=Object.assign(ir,{defaultVisitor:d,convertValue:c,isVisitable:ie});if(!n8.isObject(t))throw TypeError("data must be an object");return!function t(i,r){if(!n8.isUndefined(i)){if(-1!==h.indexOf(i))throw Error("Circular reference detected in "+r.join("."));h.push(i),n8.forEach(i,function(i,a){!0===(!(n8.isUndefined(i)||null===i)&&o.call(n,i,n8.isString(a)?a.trim():a,r,u))&&t(i,r?r.concat(a):[a])}),h.pop()}}(t),n};function ia(t){let n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/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;let o=i&&i.encode||ic,a=n8.isFunction(i)?{serialize:i}:i,s=a&&a.serialize;if(r=s?s(n,a):n8.isURLSearchParams(n)?n.toString():new is(n,a).toString(o)){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?function(n){return t.call(this,n,ia)}:ia;return this._pairs.map(function(t){return n(t[0])+"="+n(t[1])},"").join("&")};let ih=class{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){n8.forEach(this.handlers,function(n){null!==n&&t(n)})}},iu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},ip="u">typeof URLSearchParams?URLSearchParams:is,im="u">typeof FormData?FormData:null,ig="u">typeof Blob?Blob:null,ib="u">typeof window&&"u">typeof document,iv="object"==typeof navigator&&navigator||void 0,i_=ib&&(!iv||0>["ReactNative","NativeScript","NS"].indexOf(iv.product)),iy="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ix=ib&&window.location.href||"http://localhost",iw={...A,isBrowser:!0,classes:{URLSearchParams:ip,FormData:im,Blob:ig},protocols:["http","https","file","blob","url","data"]},ik=function(t){if(n8.isFormData(t)&&n8.isFunction(t.entries)){let n={};return n8.forEachEntry(t,(t,i)=>{!function t(n,i,r,o){let a=n[o++];if("__proto__"===a)return!0;let s=Number.isFinite(+a),l=o>=n.length;return(a=!a&&n8.isArray(r)?r.length:a,l)?n8.hasOwnProp(r,a)?r[a]=[r[a],i]:r[a]=i:(r[a]&&n8.isObject(r[a])||(r[a]=[]),t(n,i,r[a],o)&&n8.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}(n8.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0]),i,n,0)}),n}return null},iM={transitional:iu,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let i,r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=n8.isObject(t);if(a&&n8.isHTMLForm(t)&&(t=new FormData(t)),n8.isFormData(t))return o?JSON.stringify(ik(t)):t;if(n8.isArrayBuffer(t)||n8.isBuffer(t)||n8.isStream(t)||n8.isFile(t)||n8.isBlob(t)||n8.isReadableStream(t))return t;if(n8.isArrayBufferView(t))return t.buffer;if(n8.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1){var s,l;return(s=t,l=this.formSerializer,io(s,new iw.classes.URLSearchParams,{visitor:function(t,n,i,r){return iw.isNode&&n8.isBuffer(t)?(this.append(n,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...l})).toString()}if((i=n8.isFileList(t))||r.indexOf("multipart/form-data")>-1){let n=this.env&&this.env.FormData;return io(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}if(a||o){n.setContentType("application/json",!1);var c=t;if(n8.isString(c))try{return(0,JSON.parse)(c),n8.trim(c)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(c)}return t}],transformResponse:[function(t){let n=this.transitional||iM.transitional,i=n&&n.forcedJSONParsing,r="json"===this.responseType;if(n8.isResponse(t)||n8.isReadableStream(t))return t;if(t&&n8.isString(t)&&(i&&!this.responseType||r)){let i=n&&n.silentJSONParsing;try{return JSON.parse(t,this.parseReviver)}catch(t){if(!i&&r){if("SyntaxError"===t.name)throw n9.from(t,n9.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iw.classes.FormData,Blob:iw.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};n8.forEach(["delete","get","head","post","put","patch"],t=>{iM.headers[t]={}});let iF=n8.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"]),iE=Symbol("internals");function iC(t){return t&&String(t).trim().toLowerCase()}function iT(t){return!1===t||null==t?t:n8.isArray(t)?t.map(iT):String(t)}function iA(t,n,i,r,o){if(n8.isFunction(r))return r.call(this,n,i);if(o&&(n=i),n8.isString(n)){if(n8.isString(r))return -1!==n.indexOf(r);if(n8.isRegExp(r))return r.test(n)}}class iS{constructor(t){t&&this.set(t)}set(t,n,i){let r=this;function o(t,n,i){let o=iC(n);if(!o)throw Error("header name must be a non-empty string");let a=n8.findKey(r,o);a&&void 0!==r[a]&&!0!==i&&(void 0!==i||!1===r[a])||(r[a||n]=iT(t))}let a=(t,n)=>n8.forEach(t,(t,i)=>o(t,i,n));if(n8.isPlainObject(t)||t instanceof this.constructor)a(t,n);else{let r;if(n8.isString(t)&&(t=t.trim())&&(r=t,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()))){var s;let i,r,o,l;a((l={},(s=t)&&s.split("\n").forEach(function(t){o=t.indexOf(":"),i=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!i||l[i]&&iF[i]||("set-cookie"===i?l[i]?l[i].push(r):l[i]=[r]:l[i]=l[i]?l[i]+", "+r:r)}),l),n)}else if(n8.isObject(t)&&n8.isIterable(t)){let i={},r,o;for(let n of t){if(!n8.isArray(n))throw TypeError("Object iterator must return a key-value pair");i[o=n[0]]=(r=i[o])?n8.isArray(r)?[...r,n[1]]:[r,n[1]]:n[1]}a(i,n)}else null!=t&&o(n,t,i)}return this}get(t,n){if(t=iC(t)){let i=n8.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(n8.isFunction(n))return n.call(this,t,i);if(n8.isRegExp(n))return n.exec(t);throw TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=iC(t)){let i=n8.findKey(this,t);return!!(i&&void 0!==this[i]&&(!n||iA(this,this[i],i,n)))}return!1}delete(t,n){let i=this,r=!1;function o(t){if(t=iC(t)){let o=n8.findKey(i,t);o&&(!n||iA(i,i[o],o,n))&&(delete i[o],r=!0)}}return n8.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||iA(this,this[o],o,t,!0))&&(delete this[o],r=!0)}return r}normalize(t){let n=this,i={};return n8.forEach(this,(r,o)=>{let a=n8.findKey(i,o);if(a){n[a]=iT(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]=iT(r),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return n8.forEach(this,(i,r)=>{null!=i&&!1!==i&&(n[r]=t&&n8.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let i=new this(t);return n.forEach(t=>i.set(t)),i}static accessor(t){let n=(this[iE]=this[iE]={accessors:{}}).accessors,i=this.prototype;function r(t){let r=iC(t);if(!n[r]){let o;o=n8.toCamelCase(" "+t),["get","set","has"].forEach(n=>{Object.defineProperty(i,n+o,{value:function(i,r,o){return this[n].call(this,t,i,r,o)},configurable:!0})}),n[r]=!0}}return n8.isArray(t)?t.forEach(r):r(t),this}}function iL(t,n){let i=this||iM,r=n||i,o=iS.from(r.headers),a=r.data;return n8.forEach(t,function(t){a=t.call(i,a,o.normalize(),n?n.status:void 0)}),o.normalize(),a}function iD(t){return!!(t&&t.__CANCEL__)}iS.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),n8.reduceDescriptors(iS.prototype,({value:t},n)=>{let i=n[0].toUpperCase()+n.slice(1);return{get:()=>t,set(t){this[i]=t}}}),n8.freezeMethods(iS);let iI=class extends n9{constructor(t,n,i){super(null==t?"canceled":t,n9.ERR_CANCELED,n,i),this.name="CanceledError",this.__CANCEL__=!0}};function iz(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,[n9.ERR_BAD_REQUEST,n9.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}let iO=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 h=s,u=0;for(;h!==a;)u+=r[h++],h%=t;if((a=(a+1)%t)===s&&(s=(s+1)%t),c-i<n)return;let p=d&&c-d;return p?Math.round(1e3*u/p):void 0}},iR=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)]},iP=(t,n,i=3)=>{let r=0,o=iO(50,250);return iR(i=>{let a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,c=o(l);r=a,t({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&a<=s?(s-a)/c:void 0,event:i,lengthComputable:null!=s,[n?"download":"upload"]:!0})},i)},i$=(t,n)=>{let i=null!=t;return[r=>n[0]({lengthComputable:i,total:t,loaded:r}),n[1]]},iB=t=>(...n)=>n8.asap(()=>t(...n)),iN=iw.hasStandardBrowserEnv?(h=new URL(iw.origin),u=iw.navigator&&/(msie|trident)/i.test(iw.navigator.userAgent),t=>(t=new URL(t,iw.origin),h.protocol===t.protocol&&h.host===t.host&&(u||h.port===t.port))):()=>!0,ij=iw.hasStandardBrowserEnv?{write(t,n,i,r,o,a,s){if("u"<typeof document)return;let l=[`${t}=${encodeURIComponent(n)}`];n8.isNumber(i)&&l.push(`expires=${new Date(i).toUTCString()}`),n8.isString(r)&&l.push(`path=${r}`),n8.isString(o)&&l.push(`domain=${o}`),!0===a&&l.push("secure"),n8.isString(s)&&l.push(`SameSite=${s}`),document.cookie=l.join("; ")},read(t){if("u"<typeof document)return null;let n=document.cookie.match(RegExp("(?:^|; )"+t+"=([^;]*)"));return n?decodeURIComponent(n[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function iY(t,n,i){let r=!("string"==typeof n&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n));return t&&(r||!1==i)?n?t.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):t:n}let iH=t=>t instanceof iS?{...t}:t;function iV(t,n){n=n||{};let i={};function r(t,n,i,r){return n8.isPlainObject(t)&&n8.isPlainObject(n)?n8.merge.call({caseless:r},t,n):n8.isPlainObject(n)?n8.merge({},n):n8.isArray(n)?n.slice():n}function o(t,n,i,o){return n8.isUndefined(n)?n8.isUndefined(t)?void 0:r(void 0,t,i,o):r(t,n,i,o)}function a(t,n){if(!n8.isUndefined(n))return r(void 0,n)}function s(t,n){return n8.isUndefined(n)?n8.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function l(i,o,a){return a in n?r(i,o):a in t?r(void 0,i):void 0}let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(t,n,i)=>o(iH(t),iH(n),i,!0)};return n8.forEach(Object.keys({...t,...n}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n8.hasOwnProp(c,r)?c[r]:o,s=a(t[r],n[r],r);n8.isUndefined(s)&&a!==l||(i[r]=s)}),i}let iU=t=>{let n=iV({},t),{data:i,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=n;if(n.headers=s=iS.from(s),n.url=id(iY(n.baseURL,n.url,n.allowAbsoluteUrls),t.params,t.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),n8.isFormData(i)){if(iw.hasStandardBrowserEnv||iw.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(n8.isFunction(i.getHeaders)){let t=i.getHeaders(),n=["content-type","content-length"];Object.entries(t).forEach(([t,i])=>{n.includes(t.toLowerCase())&&s.set(t,i)})}}if(iw.hasStandardBrowserEnv&&(r&&n8.isFunction(r)&&(r=r(n)),r||!1!==r&&iN(n.url))){let t=o&&a&&ij.read(a);t&&s.set(o,t)}return n},iW="u">typeof XMLHttpRequest&&function(t){return new Promise(function(n,i){var r;let o,a,s,l,c,d,h=iU(t),u=h.data,p=iS.from(h.headers).normalize(),{responseType:m,onUploadProgress:f,onDownloadProgress:g}=h;function b(){l&&l(),c&&c(),h.cancelToken&&h.cancelToken.unsubscribe(o),h.signal&&h.signal.removeEventListener("abort",o)}let v=new XMLHttpRequest;function _(){if(!v)return;let r=iS.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());iz(function(t){n(t),b()},function(t){i(t),b()},{data:m&&"text"!==m&&"json"!==m?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:t,request:v}),v=null}v.open(h.method.toUpperCase(),h.url,!0),v.timeout=h.timeout,"onloadend"in v?v.onloadend=_:v.onreadystatechange=function(){!v||4!==v.readyState||(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(_)},v.onabort=function(){v&&(i(new n9("Request aborted",n9.ECONNABORTED,t,v)),v=null)},v.onerror=function(n){let r=new n9(n&&n.message?n.message:"Network Error",n9.ERR_NETWORK,t,v);r.event=n||null,i(r),v=null},v.ontimeout=function(){let n=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",r=h.transitional||iu;h.timeoutErrorMessage&&(n=h.timeoutErrorMessage),i(new n9(n,r.clarifyTimeoutError?n9.ETIMEDOUT:n9.ECONNABORTED,t,v)),v=null},void 0===u&&p.setContentType(null),"setRequestHeader"in v&&n8.forEach(p.toJSON(),function(t,n){v.setRequestHeader(n,t)}),n8.isUndefined(h.withCredentials)||(v.withCredentials=!!h.withCredentials),m&&"json"!==m&&(v.responseType=h.responseType),g&&([s,c]=iP(g,!0),v.addEventListener("progress",s)),f&&v.upload&&([a,l]=iP(f),v.upload.addEventListener("progress",a),v.upload.addEventListener("loadend",l)),(h.cancelToken||h.signal)&&(o=n=>{v&&(i(!n||n.type?new iI(null,t,v):n),v.abort(),v=null)},h.cancelToken&&h.cancelToken.subscribe(o),h.signal&&(h.signal.aborted?o():h.signal.addEventListener("abort",o)));let y=(r=h.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r))&&d[1]||"");y&&-1===iw.protocols.indexOf(y)?i(new n9("Unsupported protocol "+y+":",n9.ERR_BAD_REQUEST,t)):v.send(u||null)})},iq=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},iG=async function*(t,n){for await(let i of iK(t))yield*iq(i,n)},iK=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()}},iX=(t,n,i,r)=>{let o,a=iG(t,n),s=0,l=t=>{!o&&(o=!0,r&&r(t))};return new ReadableStream({async pull(t){try{let{done:n,value:r}=await a.next();if(n){l(),t.close();return}let o=r.byteLength;if(i){let t=s+=o;i(t)}t.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:t=>(l(t),a.return())},{highWaterMark:2})},{isFunction:iZ}=n8,iJ=(({Request:t,Response:n})=>({Request:t,Response:n}))(n8.global),{ReadableStream:iQ,TextEncoder:i0}=n8.global,i1=(t,...n)=>{try{return!!t(...n)}catch(t){return!1}},i2=t=>{let n,{fetch:i,Request:r,Response:o}=t=n8.merge.call({skipUndefined:!0},iJ,t),a=i?iZ(i):"function"==typeof fetch,s=iZ(r),l=iZ(o);if(!a)return!1;let c=a&&iZ(iQ),d=a&&("function"==typeof i0?(n=new i0,t=>n.encode(t)):async t=>new Uint8Array(await new r(t).arrayBuffer())),h=s&&c&&i1(()=>{let t=!1,n=new r(iw.origin,{body:new iQ,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!n}),u=l&&c&&i1(()=>n8.isReadableStream(new o("").body)),p={stream:u&&(t=>t.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{p[t]||(p[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 m=async t=>{if(null==t)return 0;if(n8.isBlob(t))return t.size;if(n8.isSpecCompliantForm(t)){let n=new r(iw.origin,{method:"POST",body:t});return(await n.arrayBuffer()).byteLength}return n8.isArrayBufferView(t)||n8.isArrayBuffer(t)?t.byteLength:(n8.isURLSearchParams(t)&&(t+=""),n8.isString(t))?(await d(t)).byteLength:void 0},f=async(t,n)=>{let i=n8.toFiniteNumber(t.getContentLength());return null==i?m(n):i};return async t=>{let n,{url:a,method:l,data:c,signal:d,cancelToken:m,timeout:g,onDownloadProgress:b,onUploadProgress:v,responseType:_,headers:y,withCredentials:x="same-origin",fetchOptions:w}=iU(t),k=i||fetch;_=_?(_+"").toLowerCase():"text";let M=((t,n)=>{let{length:i}=t=t?t.filter(Boolean):[];if(n||i){let i,r=new AbortController,o=function(t){if(!i){i=!0,s();let n=t instanceof Error?t:this.reason;r.abort(n instanceof n9?n:new iI(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=>t.addEventListener("abort",o));let{signal:l}=r;return l.unsubscribe=()=>n8.asap(s),l}})([d,m&&m.toAbortSignal()],g),F=null,E=M&&M.unsubscribe&&(()=>{M.unsubscribe()});try{if(v&&h&&"get"!==l&&"head"!==l&&0!==(n=await f(y,c))){let t,i=new r(a,{method:"POST",body:c,duplex:"half"});if(n8.isFormData(c)&&(t=i.headers.get("content-type"))&&y.setContentType(t),i.body){let[t,r]=i$(n,iP(iB(v)));c=iX(i.body,65536,t,r)}}n8.isString(x)||(x=x?"include":"omit");let i=s&&"credentials"in r.prototype,d={...w,signal:M,method:l.toUpperCase(),headers:y.normalize().toJSON(),body:c,duplex:"half",credentials:i?x:void 0};F=s&&new r(a,d);let m=await (s?k(F,w):k(a,d)),g=u&&("stream"===_||"response"===_);if(u&&(b||g&&E)){let t={};["status","statusText","headers"].forEach(n=>{t[n]=m[n]});let n=n8.toFiniteNumber(m.headers.get("content-length")),[i,r]=b&&i$(n,iP(iB(b),!0))||[];m=new o(iX(m.body,65536,i,()=>{r&&r(),E&&E()}),t)}_=_||"text";let C=await p[n8.findKey(p,_)||"text"](m,t);return!g&&E&&E(),await new Promise((n,i)=>{iz(n,i,{data:C,headers:iS.from(m.headers),status:m.status,statusText:m.statusText,config:t,request:F})})}catch(n){if(E&&E(),n&&"TypeError"===n.name&&/Load failed|fetch/i.test(n.message))throw Object.assign(new n9("Network Error",n9.ERR_NETWORK,t,F,n&&n.response),{cause:n.cause||n});throw n9.from(n,n&&n.code,t,F,n&&n.response)}}},i3=new Map,i5=t=>{let n=t&&t.env||{},{fetch:i,Request:r,Response:o}=n,a=[r,o,i],s=a.length,l,c,d=i3;for(;s--;)l=a[s],void 0===(c=d.get(l))&&d.set(l,c=s?new Map:i2(n)),d=c;return c};i5();let i4={http:null,xhr:iW,fetch:{get:i5}};n8.forEach(i4,(t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}});let i6=t=>`- ${t}`,i8=t=>n8.isFunction(t)||null===t||!1===t,i7=function(t,n){let i,r,{length:o}=t=n8.isArray(t)?t:[t],a={};for(let s=0;s<o;s++){let o;if(r=i=t[s],!i8(i)&&void 0===(r=i4[(o=String(i)).toLowerCase()]))throw new n9(`Unknown adapter '${o}'`);if(r&&(n8.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(i6).join("\n"):" "+i6(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function i9(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new iI(null,t)}function re(t){return i9(t),t.headers=iS.from(t.headers),t.data=iL.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),i7(t.adapter||iM.adapter,t)(t).then(function(n){return i9(t),n.data=iL.call(t,t.transformResponse,n),n.headers=iS.from(n.headers),n},function(n){return!iD(n)&&(i9(t),n&&n.response&&(n.response.data=iL.call(t,t.transformResponse,n.response),n.response.headers=iS.from(n.response.headers))),Promise.reject(n)})}let rt={};["object","boolean","number","function","string","symbol"].forEach((t,n)=>{rt[t]=function(i){return typeof i===t||"a"+(n<1?"n ":" ")+t}});let rn={};rt.transitional=function(t,n,i){function r(t,n){return"[Axios v1.13.6] 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&&!rn[o]&&(rn[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)}},rt.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};let ri=function(t,n,i){if("object"!=typeof 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=n[a];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 rr{constructor(t){this.defaults=t||{},this.interceptors={request:new ih,response:new ih}}async request(t,n){try{return await this._request(t,n)}catch(t){if(t instanceof Error){let n={};Error.captureStackTrace?Error.captureStackTrace(n):n=Error();let i=n.stack?n.stack.replace(/^.+\n/,""):"";try{t.stack?i&&!String(t.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(t.stack+="\n"+i):t.stack=i}catch(t){}}throw t}}_request(t,n){let i,r;"string"==typeof t?(n=n||{}).url=t:n=t||{};let{transitional:o,paramsSerializer:a,headers:s}=n=iV(this.defaults,n);void 0!==o&&ri(o,{silentJSONParsing:rt.transitional(rt.boolean),forcedJSONParsing:rt.transitional(rt.boolean),clarifyTimeoutError:rt.transitional(rt.boolean),legacyInterceptorReqResOrdering:rt.transitional(rt.boolean)},!1),null!=a&&(n8.isFunction(a)?n.paramsSerializer={serialize:a}:ri(a,{encode:rt.function,serialize:rt.function},!0)),void 0!==n.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ri(n,{baseUrl:rt.spelling("baseURL"),withXsrfToken:rt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&n8.merge(s.common,s[n.method]);s&&n8.forEach(["delete","get","head","post","put","patch","common"],t=>{delete s[t]}),n.headers=iS.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||iu;i&&i.legacyInterceptorReqResOrdering?c.unshift(t.fulfilled,t.rejected):c.push(t.fulfilled,t.rejected)});let h=[];this.interceptors.response.forEach(function(t){h.push(t.fulfilled,t.rejected)});let u=0;if(!d){let t=[re.bind(this),void 0];for(t.unshift(...c),t.push(...h),r=t.length,i=Promise.resolve(n);u<r;)i=i.then(t[u++],t[u++]);return i}r=c.length;let p=n;for(;u<r;){let t=c[u++],n=c[u++];try{p=t(p)}catch(t){n.call(this,t);break}}try{i=re.call(this,p)}catch(t){return Promise.reject(t)}for(u=0,r=h.length;u<r;)i=i.then(h[u++],h[u++]);return i}getUri(t){return id(iY((t=iV(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}}n8.forEach(["delete","get","head","options"],function(t){rr.prototype[t]=function(n,i){return this.request(iV(i||{},{method:t,url:n,data:(i||{}).data}))}}),n8.forEach(["post","put","patch"],function(t){function n(n){return function(i,r,o){return this.request(iV(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}rr.prototype[t]=n(),rr.prototype[t+"Form"]=n(!0)});class ro{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 iI(t,r,o),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}toAbortSignal(){let t=new AbortController,n=n=>{t.abort(n)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ro(function(n){t=n}),cancel:t}}}let ra={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ra).forEach(([t,n])=>{ra[n]=t});let rs=function t(n){let i=new rr(n),r=nx(rr.prototype.request,i);return n8.extend(r,rr.prototype,i,{allOwnKeys:!0}),n8.extend(r,i,null,{allOwnKeys:!0}),r.create=function(i){return t(iV(n,i))},r}(iM);rs.Axios=rr,rs.CanceledError=iI,rs.CancelToken=ro,rs.isCancel=iD,rs.VERSION="1.13.6",rs.toFormData=io,rs.AxiosError=n9,rs.Cancel=rs.CanceledError,rs.all=function(t){return Promise.all(t)},rs.spread=function(t){return function(n){return t.apply(null,n)}},rs.isAxiosError=function(t){return n8.isObject(t)&&!0===t.isAxiosError},rs.mergeConfig=iV,rs.AxiosHeaders=iS,rs.formToJSON=t=>ik(n8.isHTMLForm(t)?new FormData(t):t),rs.getAdapter=i7,rs.HttpStatusCode=ra,rs.default=rs;class rl{constructor(t){this.httpClient=t}deleteConnections(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/connection`,queryParams:t,options:n})}getConnections(t){return this.httpClient.request({method:"GET",url:rS`gateway/connection`,options:t})}deleteConnection(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/connection/${t}`,options:n})}getConnection(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/connection/${t}`,options:n})}setConnection(t,n,i){return this.httpClient.request({method:"PUT",url:rS`gateway/connection/${t}`,data:n,options:i})}getConnectionStatus(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/status/${t}`,options:n})}}class rc{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`realm`,data:t,options:n})}getAll(t){return this.httpClient.request({method:"GET",url:rS`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:rS`realm/accessible`,options:t})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rS`realm/${t}`,options:n})}get(t,n){return this.httpClient.request({method:"GET",url:rS`realm/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`realm/${t}`,data:n,options:i})}}class rd{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:rS`flow`,options:t})}getNodeDefinition(t,n){return this.httpClient.request({method:"GET",url:rS`flow/${t}`,options:n})}getAllNodeDefinitionsByType(t,n){return this.httpClient.request({method:"GET",url:rS`flow/${t}`,options:n})}}class rh{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rS`agent/assetDiscovery/${t}`,queryParams:n,options:i})}doProtocolAssetImport(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`agent/assetImport/${t}`,queryParams:i,data:n,options:r})}doProtocolInstanceDiscovery(t,n,i){return this.httpClient.request({method:"GET",url:rS`agent/instanceDiscovery/${t}`,queryParams:n,options:i})}}class ru{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`dashboard`,data:t,options:n})}update(t,n){return this.httpClient.request({method:"PUT",url:rS`dashboard`,data:t,options:n})}getAllRealmDashboards(t,n){return this.httpClient.request({method:"GET",url:rS`dashboard/all/${t}`,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rS`dashboard/query`,data:t,options:n})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`dashboard/${t}/${n}`,options:i})}get(t,n,i){return this.httpClient.request({method:"GET",url:rS`dashboard/${t}/${n}`,options:i})}}class rp{constructor(t){this.httpClient=t}create(t,n){return this.httpClient.request({method:"POST",url:rS`asset`,data:t,options:n})}delete(t,n){return this.httpClient.request({method:"DELETE",url:rS`asset`,queryParams:t,options:n})}writeAttributeValues(t,n){return this.httpClient.request({method:"PUT",url:rS`asset/attributes`,data:t,options:n})}writeAttributeEvents(t,n){return this.httpClient.request({method:"PUT",url:rS`asset/attributes/timestamp`,data:t,options:n})}queryCount(t,n){return this.httpClient.request({method:"POST",url:rS`asset/count`,data:t,options:n})}updateNoneParent(t,n){return this.httpClient.request({method:"DELETE",url:rS`asset/parent`,queryParams:t,options:n})}getPartial(t,n){return this.httpClient.request({method:"GET",url:rS`asset/partial/${t}`,options:n})}queryAssets(t,n){return this.httpClient.request({method:"POST",url:rS`asset/query`,data:t,options:n})}queryAssetTree(t,n){return this.httpClient.request({method:"POST",url:rS`asset/tree`,data:t,options:n})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:rS`asset/user/current`,options:t})}createUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rS`asset/user/link`,data:t,options:n})}getUserAssetLinks(t,n){return this.httpClient.request({method:"GET",url:rS`asset/user/link`,queryParams:t,options:n})}deleteUserAssetLinks(t,n){return this.httpClient.request({method:"POST",url:rS`asset/user/link/delete`,data:t,options:n})}deleteAllUserAssetLinks(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`asset/user/link/${t}/${n}`,options:i})}deleteUserAssetLink(t,n,i,r){return this.httpClient.request({method:"DELETE",url:rS`asset/user/link/${t}/${n}/${i}`,options:r})}get(t,n){return this.httpClient.request({method:"GET",url:rS`asset/${t}`,options:n})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`asset/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`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:rS`asset/${t}/attribute/${n}/${i}`,data:r,options:o})}updateParent(t,n,i){return this.httpClient.request({method:"PUT",url:rS`asset/${t}/child`,queryParams:n,options:i})}}class rm{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:rS`syslog/config`,options:t})}updateConfig(t,n){return this.httpClient.request({method:"PUT",url:rS`syslog/config`,data:t,options:n})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:rS`syslog/event`,options:t})}getEvents(t,n){return this.httpClient.request({method:"GET",url:rS`syslog/event`,queryParams:t,options:n})}}class rf{constructor(t){this.httpClient=t}getPredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`asset/predicted/${t}/${n}`,data:i,options:r})}writePredictedDatapoints(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`asset/predicted/${t}/${n}`,data:i,options:r})}}class rg{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:rS`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:rS`info`,options:t})}}class rb{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,n){return this.httpClient.request({method:"PUT",url:rS`user/locale`,data:t,options:n})}query(t,n){return this.httpClient.request({method:"POST",url:rS`user/query`,data:t,options:n})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:rS`user/request-password-reset`,options:t})}updatePasswordCurrent(t,n){return this.httpClient.request({method:"PUT",url:rS`user/reset-password`,data:t,options:n})}updateCurrent(t,n){return this.httpClient.request({method:"PUT",url:rS`user/update`,data:t,options:n})}getCurrent(t){return this.httpClient.request({method:"GET",url:rS`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:rS`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,n){return this.httpClient.request({method:"GET",url:rS`user/userRoles/${t}`,options:n})}disconnectUserSession(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/disconnect/${n}`,options:i})}requestPasswordReset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/request-password-reset/${n}`,options:i})}updatePassword(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/reset-password/${n}`,data:i,options:r})}resetSecret(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/reset-secret/${n}`,options:i})}updateRoles(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/roles`,data:n,options:i})}getUserRealmRoles(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/userRealmRoles/${n}`,options:i})}updateUserRealmRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/userRealmRoles/${n}`,data:i,options:r})}getUserClientRoles(t,n,i,r){return this.httpClient.request({method:"GET",url:rS`user/${t}/userRoles/${n}/${i}`,options:r})}updateUserClientRoles(t,n,i,r,o){return this.httpClient.request({method:"PUT",url:rS`user/${t}/userRoles/${n}/${i}`,data:r,options:o})}getUserSessions(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/userSessions/${n}`,options:i})}create(t,n,i){return this.httpClient.request({method:"POST",url:rS`user/${t}/users`,data:n,options:i})}update(t,n,i){return this.httpClient.request({method:"PUT",url:rS`user/${t}/users`,data:n,options:i})}delete(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`user/${t}/users/${n}`,options:i})}getClientRoles(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/${n}/roles`,options:i})}updateClientRoles(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`user/${t}/${n}/roles`,data:i,options:r})}get(t,n,i){return this.httpClient.request({method:"GET",url:rS`user/${t}/${n}`,options:i})}}class rv{constructor(t){this.httpClient=t}register(t,n){return this.httpClient.request({method:"POST",url:rS`console/register`,data:t,options:n})}}class r_{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:rS`configuration/manager`,options:t})}update(t,n){return this.httpClient.request({method:"PUT",url:rS`configuration/manager`,data:t,options:n})}fileUpload(t,n,i){return this.httpClient.request({method:"POST",url:rS`configuration/manager/file`,queryParams:n,data:t,options:i})}getManagerConfigImage(t,n){return this.httpClient.request({method:"GET",url:rS`configuration/manager/image/${t}`,options:n})}}class ry{constructor(t){this.httpClient=t}getNotifications(t,n){return this.httpClient.request({method:"GET",url:rS`notification`,queryParams:t,options:n})}removeNotifications(t,n){return this.httpClient.request({method:"DELETE",url:rS`notification`,queryParams:t,options:n})}sendNotification(t,n){return this.httpClient.request({method:"POST",url:rS`notification/alert`,data:t,options:n})}removeNotification(t,n){return this.httpClient.request({method:"DELETE",url:rS`notification/${t}`,options:n})}notificationAcknowledged(t,n,i,r){return this.httpClient.request({method:"PUT",url:rS`notification/${t}/acknowledged`,queryParams:i,data:n,options:r})}notificationDelivered(t,n,i){return this.httpClient.request({method:"PUT",url:rS`notification/${t}/delivered`,queryParams:n,options:i})}}class rx{constructor(t){this.httpClient=t}getAssetDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/assetDescriptors`,queryParams:t,options:n})}getAssetInfo(t,n,i){return this.httpClient.request({method:"GET",url:rS`model/assetInfo/${t}`,queryParams:n,options:i})}getAssetInfos(t,n){return this.httpClient.request({method:"GET",url:rS`model/assetInfos`,queryParams:t,options:n})}getValueDescriptorSchema(t,n){return this.httpClient.request({method:"GET",url:rS`model/getValueDescriptorSchema`,queryParams:t,options:n})}getMetaItemDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/metaItemDescriptors`,queryParams:t,options:n})}getValueDescriptors(t,n){return this.httpClient.request({method:"GET",url:rS`model/valueDescriptors`,queryParams:t,options:n})}}class rw{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:rS`map`,options:t})}saveSettings(t,n){return this.httpClient.request({method:"PUT",url:rS`map`,data:t,options:n})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:rS`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:rS`map/getCustomMapInfo`,options:t})}getTile(t,n,i,r){return this.httpClient.request({method:"GET",url:rS`map/tile/${t}/${n}/${i}`,options:r})}uploadMap(t,n){return this.httpClient.request({method:"POST",url:rS`map/upload`,queryParams:t,options:n})}}class rk{constructor(t){this.httpClient=t}getDatapointExport(t,n){return this.httpClient.request({method:"GET",url:rS`asset/datapoint/export`,queryParams:t,options:n})}getDatapointPeriod(t,n){return this.httpClient.request({method:"GET",url:rS`asset/datapoint/periods`,queryParams:t,options:n})}getDatapoints(t,n,i,r){return this.httpClient.request({method:"POST",url:rS`asset/datapoint/${t}/${n}`,data:i,options:r})}}class rM{constructor(t){this.httpClient=t}startTunnel(t,n){return this.httpClient.request({method:"POST",url:rS`gateway/tunnel`,data:t,options:n})}stopTunnel(t,n){return this.httpClient.request({method:"DELETE",url:rS`gateway/tunnel`,data:t,options:n})}getAllActiveTunnelInfos(t,n){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}`,options:n})}getGatewayActiveTunnelInfos(t,n,i){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}/${n}`,options:i})}getActiveTunnelInfo(t,n,i,r,o){return this.httpClient.request({method:"GET",url:rS`gateway/tunnel/${t}/${n}/${i}/${r}`,options:o})}}class rF{constructor(t){this.httpClient=t}createAlarm(t,n,i){return this.httpClient.request({method:"POST",url:rS`alarm`,queryParams:n,data:t,options:i})}getAlarms(t,n){return this.httpClient.request({method:"GET",url:rS`alarm`,queryParams:t,options:n})}removeAlarms(t,n){return this.httpClient.request({method:"DELETE",url:rS`alarm`,data:t,options:n})}setAssetLinks(t,n){return this.httpClient.request({method:"PUT",url:rS`alarm/assets`,data:t,options:n})}getAlarm(t,n){return this.httpClient.request({method:"GET",url:rS`alarm/${t}`,options:n})}removeAlarm(t,n){return this.httpClient.request({method:"DELETE",url:rS`alarm/${t}`,options:n})}updateAlarm(t,n,i){return this.httpClient.request({method:"PUT",url:rS`alarm/${t}`,data:n,options:i})}getAssetLinks(t,n,i){return this.httpClient.request({method:"GET",url:rS`alarm/${t}/assets`,queryParams:n,options:i})}}class rE{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:rS`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:rS`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:rS`apps/info`,options:t})}}class rC{constructor(t){this.httpClient=t}getServices(t,n){return this.httpClient.request({method:"GET",url:rS`service`,queryParams:t,options:n})}registerService(t,n){return this.httpClient.request({method:"POST",url:rS`service`,data:t,options:n})}getGlobalServices(t){return this.httpClient.request({method:"GET",url:rS`service/global`,options:t})}registerGlobalService(t,n){return this.httpClient.request({method:"POST",url:rS`service/global`,data:t,options:n})}deregisterService(t,n,i){return this.httpClient.request({method:"DELETE",url:rS`service/${t}/${n}`,options:i})}getService(t,n,i){return this.httpClient.request({method:"GET",url:rS`service/${t}/${n}`,options:i})}heartbeat(t,n,i){return this.httpClient.request({method:"PUT",url:rS`service/${t}/${n}`,options:i})}}class rT{constructor(t){this.httpClient=t}createGlobalRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules`,data:t,options:n})}getGlobalRulesets(t,n){return this.httpClient.request({method:"GET",url:rS`rules`,queryParams:t,options:n})}createAssetRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules/asset`,data:t,options:n})}getAssetRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rS`rules/asset/for/${t}`,queryParams:n,options:i})}deleteAssetRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/asset/${t}`,options:n})}getAssetRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/asset/${t}`,options:n})}updateAssetRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/asset/${t}`,data:n,options:i})}getAssetGeofences(t,n){return this.httpClient.request({method:"GET",url:rS`rules/geofences/${t}`,options:n})}getAssetEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rS`rules/info/asset/${t}`,options:n})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:rS`rules/info/global`,options:t})}getRealmEngineInfo(t,n){return this.httpClient.request({method:"GET",url:rS`rules/info/realm/${t}`,options:n})}createRealmRuleset(t,n){return this.httpClient.request({method:"POST",url:rS`rules/realm`,data:t,options:n})}getRealmRulesets(t,n,i){return this.httpClient.request({method:"GET",url:rS`rules/realm/for/${t}`,queryParams:n,options:i})}deleteRealmRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/realm/${t}`,options:n})}getRealmRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/realm/${t}`,options:n})}updateRealmRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/realm/${t}`,data:n,options:i})}deleteGlobalRuleset(t,n){return this.httpClient.request({method:"DELETE",url:rS`rules/${t}`,options:n})}getGlobalRuleset(t,n){return this.httpClient.request({method:"GET",url:rS`rules/${t}`,options:n})}updateGlobalRuleset(t,n,i){return this.httpClient.request({method:"PUT",url:rS`rules/${t}`,data:n,options:i})}}class rA{constructor(t){this.httpClient=t}createProvisioningConfig(t,n){return this.httpClient.request({method:"POST",url:rS`provisioning`,data:t,options:n})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:rS`provisioning`,options:t})}deleteProvisioningConfig(t,n){return this.httpClient.request({method:"DELETE",url:rS`provisioning/${t}`,options:n})}updateProvisioningConfig(t,n,i){return this.httpClient.request({method:"PUT",url:rS`provisioning/${t}`,data:n,options:i})}}function rS(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 rL{constructor(t,n=rs.create()){this._gatewayClientResource=new rI(t,n),this._realmResource=new rz(t,n),this._flowResource=new rO(t,n),this._agentResource=new rR(t,n),this._dashboardResource=new rP(t,n),this._assetResource=new r$(t,n),this._syslogResource=new rB(t,n),this._assetPredictedDatapointResource=new rN(t,n),this._statusResource=new rj(t,n),this._userResource=new rY(t,n),this._consoleResource=new rH(t,n),this._configurationResource=new rV(t,n),this._notificationResource=new rU(t,n),this._assetModelResource=new rW(t,n),this._mapResource=new rq(t,n),this._assetDatapointResource=new rG(t,n),this._gatewayServiceResource=new rK(t,n),this._alarmResource=new rX(t,n),this._appResource=new rZ(t,n),this._externalServiceResource=new rJ(t,n),this._rulesResource=new rQ(t,n),this._provisioningResource=new r0(t,n),this._assetResource=new r$(t,n)}get GatewayClientResource(){return this._gatewayClientResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get AgentResource(){return this._agentResource}get DashboardResource(){return this._dashboardResource}get AssetResource(){return this._assetResource}get SyslogResource(){return this._syslogResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ConsoleResource(){return this._consoleResource}get ConfigurationResource(){return this._configurationResource}get NotificationResource(){return this._notificationResource}get AssetModelResource(){return this._assetModelResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get ExternalServiceResource(){return this._externalServiceResource}get RulesResource(){return this._rulesResource}get ProvisioningResource(){return this._provisioningResource}}class rD{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 rI extends rl{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rz extends rc{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rO extends rd{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rR extends rh{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rP extends ru{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class r$ extends rp{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rB extends rm{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rN extends rf{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rj extends rg{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rY extends rb{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rH extends rv{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rV extends r_{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rU extends ry{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rW extends rx{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rq extends rw{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rG extends rk{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rK extends rM{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rX extends rF{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rZ extends rE{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rJ extends rC{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class rQ extends rT{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}class r0 extends rA{constructor(t,n=rs.create()){n.defaults.baseURL=t,super(new rD(n))}}rs.isAxiosError;let r1=new class{get api(){return this._client}constructor(){this._axiosInstance=rs.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(t=>(t.paramsSerializer=t=>ni().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 rL(t,this._axiosInstance)}};var r2=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())})};(cq=d2||(d2={})).DISCONNECTED="DISCONNECTED",cq.CONNECTED="CONNECTED",cq.CONNECTING="CONNECTING";let r3="SUBSCRIBED:",r5="UNAUTHORIZED:",r4="TRIGGERED:",r6="EVENT:";class r8{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=r7.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=d2.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(t){this._statusCallbacks.push(t)}unsubscribeStatusChange(t){!function(t,n){if(0===t.length)return;let i=t.indexOf(n);i>=0&&t.splice(i,1)}(this._statusCallbacks,t)}connect(){return(this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===d2.CONNECTED)?Promise.resolve(!0):(this._disconnectRequested=!1,this._connectingDeferred||(this._onStatusChanged(d2.CONNECTING),this._connectingDeferred=new na,this._doConnect().then(t=>{if(this._connectingDeferred){let n=this._connectingDeferred;this._connectingDeferred=null,t?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=r7.MIN_RECONNECT_DELAY,this._onStatusChanged(d2.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):(console.debug("Failed to connect to event service: "+this.endpointUrl),this._scheduleReconnect()),n.resolve(t)}})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==d2.DISCONNECTED&&this._doDisconnect())}subscribe(t,n){let i={eventSubscription:t,callback:n,deferred:new na};return null!=this._pendingSubscription||this._status!==d2.CONNECTED?(this._queuedSubscriptions.push(i),i.deferred.promise):(this._pendingSubscription=i,this._doSubscribe(t).then(t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(t,n),this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.resolve(t)}},t=>{if(this._pendingSubscription){let n=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let i=n.deferred;n.deferred=null,i&&i.reject(t)}}),this._pendingSubscription.deferred.promise)}unsubscribe(t){return r2(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(t))return void this._doUnsubscribe(t);if(this._assetEventCallbackMap.delete(t)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let t=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(t)}return}if(this._attributeEventCallbackMap.delete(t)){if(this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let t=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(t)}return}})}sendEvent(t){this._status===d2.CONNECTED&&this._doSend(t)}sendEventWithReply(t){return this._status!==d2.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(t)}subscribeAssetEvents(t,n,i){return r2(this,void 0,void 0,function*(){let r=t&&"string"!=typeof t[0]?t.map(t=>t.id):t,o="AssetEvent"+r8._subscriptionCounter++;if(!this._assetEventPromise){let t;oB.authenticated||(t={filterType:"asset",realm:oB.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===oB.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 r2(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"+r8._subscriptionCounter++;if(!this._attributeEventPromise){let t;oB.authenticated||(t={filterType:"asset",realm:oB.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===oB.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===d2.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===d2.CONNECTED&&this._onStatusChanged(d2.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(d2.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<r7.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(r7.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}r8.MIN_RECONNECT_DELAY=0,r8.MAX_RECONNECT_DELAY=3e4,r8._subscriptionCounter=0;class r7 extends r8{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="+oB.config.realm;return oB.authenticated&&(t+="&Authorization="+oB.getAuthorizationHeader()),this._webSocket=new WebSocket(t),this._connectDeferred=new na,this._webSocket.onopen=()=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!0)}},this._webSocket.onerror=t=>{if(this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else console.debug("Event provider error"),this._beforeDisconnect()},this._webSocket.onclose=()=>{if(this._webSocket=void 0,this._connectDeferred){let t=this._connectDeferred;this._connectDeferred=null,t.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=t=>{let n=t.data;if(n&&n.startsWith(r3)){let t=JSON.parse(n.substring(r3.length)),i=this._subscribeDeferred;this._subscribeDeferred=null,i&&i.resolve(t.subscriptionId)}else if(n.startsWith(r5)){let t=JSON.parse(n.substring(r5.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(r4)){let t=JSON.parse(n.substring(r4.length));t.events&&t.events.forEach(n=>{this._onMessageReceived(t.subscriptionId,n)})}else if(n.startsWith(r6)){let t=JSON.parse(n.substring(r6.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 na,t.subscriptionId||(t.subscriptionId=r7._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=r6+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 na;return this._repliesDeferred.set(t.messageID,n),this._webSocket.send(r6+JSON.stringify(t)),n.promise}}function r9(t){return(r9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}r7._subscriptionCounter=1;var oe=[],ot=oe.forEach,on=oe.slice;function oi(t){return ot.call(on.call(arguments,1),function(n){if(n)for(var i in n)void 0===t[i]&&(t[i]=n[i])}),t}function or(){return"function"==typeof XMLHttpRequest||("u"<typeof XMLHttpRequest?"undefined":r9(XMLHttpRequest))==="object"}var oo=o(54550),oa=o.t(oo,2);function os(t){return(os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}"function"==typeof fetch&&(d3="u">typeof global&&global.fetch?global.fetch:"u">typeof window&&window.fetch?window.fetch:fetch),or()&&("u">typeof global&&global.XMLHttpRequest?d5=global.XMLHttpRequest:"u">typeof window&&window.XMLHttpRequest&&(d5=window.XMLHttpRequest)),"function"==typeof ActiveXObject&&("u">typeof global&&global.ActiveXObject?d4=global.ActiveXObject:"u">typeof window&&window.ActiveXObject&&(d4=window.ActiveXObject)),d3||!oa||d5||d4||(d3=oo||oa),"function"!=typeof d3&&(d3=void 0);var ol=function(t,n){if(n&&"object"===os(n)){var i="";for(var r in n)i+="&"+encodeURIComponent(r)+"="+encodeURIComponent(n[r]);if(!i)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+i.slice(1)}return t},oc=function(t,n,i){d3(t,n).then(function(t){if(!t.ok)return i(t.statusText||"Error",{status:t.status});t.text().then(function(n){i(null,{status:t.status,data:n})}).catch(i)}).catch(i)},od=!1,oh=function(t,n,i,r){t.queryStringParams&&(n=ol(n,t.queryStringParams));var o=oi({},"function"==typeof t.customHeaders?t.customHeaders():t.customHeaders);i&&(o["Content-Type"]="application/json");var a="function"==typeof t.requestOptions?t.requestOptions(i):t.requestOptions,s=oi({method:i?"POST":"GET",body:i?t.stringify(i):void 0,headers:o},od?{}:a);try{oc(n,s,r)}catch(t){if(!a||0===Object.keys(a).length||!t.message||0>t.message.indexOf("not implemented"))return r(t);try{Object.keys(a).forEach(function(t){delete s[t]}),oc(n,s,r),od=!0}catch(t){r(t)}}},ou=function(t,n,i,r){i&&"object"===os(i)&&(i=ol("",i).slice(1)),t.queryStringParams&&(n=ol(n,t.queryStringParams));try{(o=d5?new d5:new d4("MSXML2.XMLHTTP.3.0")).open(i?"POST":"GET",n,1),t.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!t.withCredentials,i&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var o,a=t.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)o.setRequestHeader(s,a[s]);o.onreadystatechange=function(){o.readyState>3&&r(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(i)}catch(t){console&&console.log(t)}};let op=function(t,n,i,r){return("function"==typeof i&&(r=i,i=void 0),r=r||function(){},d3)?oh(t,n,i,r):or()||"function"==typeof ActiveXObject?ou(t,n,i,r):void r(Error("No fetch and no xhr implementation found!"))};var om=function(){var t;function n(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(this instanceof n))throw TypeError("Cannot call a class as a function");this.services=t,this.options=i,this.allOptions=r,this.type="backend",this.init(t,i,r)}return t=[{key:"init",value:function(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=oi(i,this.options||{},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:function(t){return JSON.parse(t)},stringify:JSON.stringify,parsePayload:function(t,n,i){var r,o;return r={},o=i||"",n in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,r},request:op,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.allOptions=r,this.services&&this.options.reloadInterval&&setInterval(function(){return n.reload()},this.options.reloadInterval)}},{key:"readMulti",value:function(t,n,i){this._readAny(t,t,n,n,i)}},{key:"read",value:function(t,n,i){this._readAny([t],t,[n],n,i)}},{key:"_readAny",value:function(t,n,i,r,o){var a,s,l=this,c=this.options.loadPath;"function"==typeof this.options.loadPath&&(c=this.options.loadPath(t,i)),(c=(s=a=c)&&"function"==typeof s.then?a:Promise.resolve(a)).then(function(a){if(!a)return o(null,{});var s=l.services.interpolator.interpolate(a,{lng:t.join("+"),ns:i.join("+")});l.loadUrl(s,o,n,r)})}},{key:"loadUrl",value:function(t,n,i,r){var o=this;this.options.request(this.options,t,void 0,function(a,s){var l,c;if(s&&(s.status>=500&&s.status<600||!s.status))return n("failed loading "+t+"; status code: "+s.status,!0);if(s&&s.status>=400&&s.status<500)return n("failed loading "+t+"; status code: "+s.status,!1);if(!s&&a&&a.message&&a.message.indexOf("Failed to fetch")>-1)return n("failed loading "+t+": "+a.message,!0);if(a)return n(a,!1);try{l="string"==typeof s.data?o.options.parse(s.data,i,r):s.data}catch(n){c="failed parsing "+t+" to json"}if(c)return n(c,!1);n(null,l)})}},{key:"create",value:function(t,n,i,r,o){var a=this;if(this.options.addPath){"string"==typeof t&&(t=[t]);var s=this.options.parsePayload(n,i,r),l=0,c=[],d=[];t.forEach(function(i){var r=a.options.addPath;"function"==typeof a.options.addPath&&(r=a.options.addPath(i,n));var h=a.services.interpolator.interpolate(r,{lng:i,ns:n});a.options.request(a.options,h,s,function(n,i){l+=1,c.push(n),d.push(i),l===t.length&&o&&o(c,d)})})}}},{key:"reload",value:function(){var t=this,n=this.services,i=n.backendConnector,r=n.languageUtils,o=n.logger,a=i.language;if(!a||"cimode"!==a.toLowerCase()){var s=[],l=function(t){r.toResolveHierarchy(t).forEach(function(t){0>s.indexOf(t)&&s.push(t)})};l(a),this.allOptions.preload&&this.allOptions.preload.forEach(function(t){return l(t)}),s.forEach(function(n){t.allOptions.ns.forEach(function(t){i.read(n,t,"read",null,null,function(r,a){r&&o.warn("loading namespace ".concat(t," for language ").concat(n," failed"),r),!r&&a&&o.log("loaded namespace ".concat(t," for language ").concat(n),a),i.loaded("".concat(n,"|").concat(t),r,a)})})})}}}],function(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),n}();om.type="backend";class of extends eX{constructor(t){if(super(t),this.it=ek,2!==t.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ek||null==t)return this._t=void 0,this.it=t;if(t===ew)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:[]}}}of.directiveName="unsafeHTML",of.resultType=1,eK(of);class og extends of{}og.directiveName="unsafeSVG",og.resultType=2;let ob=eK(og),ov={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',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"/>'};var o_=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 oy extends CustomEvent{constructor(){super(oy.NAME,{bubbles:!0,composed:!0})}}oy.NAME="or-iconset-added";let ox=new class{constructor(){this._icons={}}addIconSet(t,n){this._icons[t]=n,this._defaultIconSet||(this._defaultIconSet=n),n.onAdd&&n.onAdd(),window.dispatchEvent(new oy)}getIconSet(t){return this._icons[t]}getIconTemplate(t){if(!t)return ey``;let n=(t||"").split(":"),i=n.pop(),r=n.pop(),o=this._defaultIconSet;return(r&&(o=this.getIconSet(r)),i&&o)?o.getIconTemplate(i):ey``}},ow=class extends eN{constructor(){super(...arguments),this._handler=t=>{this._updateIcon()}}static get styles(){return[R`
|
|
71
71
|
:host {
|
|
72
72
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
73
73
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|
|
@@ -1150,7 +1150,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
|
|
|
1150
1150
|
}
|
|
1151
1151
|
`}get markerContainer(){if(this._actualMarkerElement)return this._actualMarkerElement.firstElementChild}_onClick(t){this.dispatchEvent(new hd(this))}_createMarkerElement(){let t=document.createElement("div"),n=document.createElement("div");t.appendChild(n),this._addMarkerClassNames(t),this._addMarkerContainerClassNames(n);let i=this.createMarkerContent();return i||(t.classList.add("or-map-marker-default"),i=this._createDefaultMarkerContent()),n.appendChild(i),this._updateInteractive(t),this._updateVisibility(t),this._updateColor(n),this._updateActive(t),t}createMarkerContent(){let t=!1,n=document.createElement("div");if(this._slot&&this._slot.assignedNodes({flatten:!0}).forEach(i=>{i instanceof HTMLElement&&(n.appendChild(i.cloneNode(!0)),t=!0)}),t)return n}shouldUpdate(t){return(t.has("icon")||t.has("displayValue")||t.has("direction"))&&this._refreshMarkerContent(),(t.has("color")||t.has("activeColor"))&&this._updateColor(this.markerContainer),t.has("visible")&&this._updateVisibility(this._actualMarkerElement),t.has("interactive")&&this._updateInteractive(this._actualMarkerElement),t.has("active")&&(this._updateActive(this._actualMarkerElement),this._updateColor(this.markerContainer)),t.forEach((t,n)=>this._raisePropertyChange(n)),!1}_updateVisibility(t){t&&(this.visible?t.removeAttribute("hidden"):t.setAttribute("hidden","true"))}_getColor(){return this.color&&"unset"!==this.color?this.color:void 0}_getActiveColor(){return this.activeColor&&"unset"!==this.activeColor?this.activeColor:void 0}_updateColor(t){if(t){t.style.removeProperty(lj),t.style.removeProperty(lY);let n=this._getColor(),i=this._getActiveColor();n&&t.style.setProperty(lj,n),i&&t.style.setProperty(lY,i)}}_updateActive(t){t&&(this.active?t.classList.add("active"):t.classList.remove("active"))}_updateInteractive(t){t&&(this.interactive?t.classList.add("interactive"):t.classList.remove("interactive"))}_refreshMarkerContent(){if(this.markerContainer){let t=this.createMarkerContent();t?this._actualMarkerElement.classList.remove("or-map-marker-default"):(this._actualMarkerElement.classList.add("or-map-marker-default"),t=this._createDefaultMarkerContent()),this.markerContainer.children.length>0&&this.markerContainer.removeChild(this.markerContainer.children[0]),this.markerContainer.appendChild(t)}}render(){return ey`
|
|
1152
1152
|
<slot></slot>
|
|
1153
|
-
`}_raisePropertyChange(t){this.dispatchEvent(new hc(this,t))}_addMarkerClassNames(t){t.classList.add("or-map-marker")}_addMarkerContainerClassNames(t){t.classList.add("marker-container")}_createDefaultMarkerContent(){let t=document.createElement("div");return t.innerHTML=hs._defaultTemplate(this.icon,{displayValue:this.displayValue,direction:this.direction}),t}_applyMapMarkerStyles(){var t;if(this.parentElement instanceof hq){let n=null==(t=this.parentElement.shadowRoot)?void 0:t.querySelector("#map"),i=this.constructor.styles,r=[];n&&i&&(Array.isArray(i)?
|
|
1153
|
+
`}_raisePropertyChange(t){this.dispatchEvent(new hc(this,t))}_addMarkerClassNames(t){t.classList.add("or-map-marker")}_addMarkerContainerClassNames(t){t.classList.add("marker-container")}_createDefaultMarkerContent(){let t=document.createElement("div");return t.innerHTML=hs._defaultTemplate(this.icon,{displayValue:this.displayValue,direction:this.direction}),t}_applyMapMarkerStyles(){var t;if(this.parentElement instanceof hq){let n=null==(t=this.parentElement.shadowRoot)?void 0:t.querySelector("#map"),i=this.constructor.styles,r=null==n?void 0:n.querySelector("style");r||(r=document.createElement("style"));let o=[];n&&i&&(Array.isArray(i)?o=i:o.push(i),o.forEach(t=>{r.textContent=String(t),n.children.length>0?n.insertBefore(r,n.children[0]):n.appendChild(r)}))}}hasPosition(){return"number"==typeof this.lat&&"number"==typeof this.lng&&this.lat>=-90&&this.lat<90&&this.lng>=-180&&this.lng<180}connectedCallback(){super.connectedCallback(),this._applyMapMarkerStyles(),this._map=this.parentElement}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this._map)||t._removeMarker(this)}};hh._defaultTemplate=(t,n)=>`
|
|
1154
1154
|
${n&&void 0!==n.displayValue?`<div class="label"><span>${n.displayValue}</span></div>`:""}
|
|
1155
1155
|
${n&&n.direction?`<div class="direction-icon-wrapper" style="transform: rotate(${n.direction}deg);">
|
|
1156
1156
|
<svg class="direction-circle">
|
|
@@ -1267,7 +1267,7 @@ ${l.shaderPreludeCode.vertexSource}`,define:l.shaderDefine},defaultProjectionDat
|
|
|
1267
1267
|
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAAYagMeiWXwAAAAJiS0dEAP+Hj8y/AAAESUlEQVRIx5XVbWzdZRnH8c//f07POe36sK7SrYXZjYGzbBokOqd4QtKATdnMDFFSkoFzmWGRQOAFSoYnsBSzxBdmGsN4Y7LEFwZkUdHpDoja/AnJjBvp1sm2upW5PtAV+zBS+7Tz//tiLe0emPF+d9/39fvmunJf9+8K3HBF1drFzurVn5+5XkTwPwBNOt1s0pCjDnnT+Xzy/wOa5jaXnLLfLwzlF0WENwaYckyvUTHS1tnjl+6JFqk+JoMOqqy2JqjPVpXP1k7U1+Ty8paBPk97NX/pYwEdgZUetNkdlirDrHGnyv6y5r3lm4M2WVzwpJfz8XUBHTntnrJO6qqLWE9u/125zBNq0WebN/PXAjqq/cBOVWDasCEsd5MsmEzt/3xP+S6fwNsezPdfBejI6fCEDMa95oAT/t31pVxDQ6p6oy2WYSb18w0D2V3Klez2w3y8CNAR2G6vShxXUCxMkXLvS7Y6E/5+3emaJ92JqezzG+8M2nHW/flTi59xladU4phtfluYgnsDWUt8Nv7+8UfO73UUuenvDLxuCKu0RQt90BFo14wxzzpamD8uExtHSsu5HSP7XMCtZ5uTPyO0SdVCBlXahHjNG4WFrGY9Y4tXzODL7zb7NYJS64eHzWK92xYAa9yBKa8Wphf0xaQ4XOz0qF9JhMnXh//mIm4dnDSMOusWALepwQUnrm2t4pi9hrGyP+ccloxV6kOZFemoWi2mOpclaQycqGlt9R8XHS/GixinnVWvbDpjDEEpNpdnWrtd+HvZWzMQT9xjj1iXzUau6MPS9X9NKOeTmqzPpZWwfMkEKnza2ivimqxCKZjQa9BMmFI2D+gxibql4z7EiobYOSy1o7V6Xt1aYacGvD/7lse1+GZ9t0Zc8kHaGcOa1K6o+FePL1iy7K7wYHy70FZa9+qVWOm7tgslfpecKcy46GS0xXKM6g6d14VU+RfTnRJ8Y223w8j4tkMOOeR1j6nAMT8tzkCUcvlbn3ImbJn0RyWC+1af1Iv6ukcbf+aIRKDR3b5ipVCiy+PenaupWRsSfzCWim0ftUmdiqrJwWLpbmk3196UfXG0X6NKIWKDXva0I0UQZT2nRaDfc/mhgCj0PS9ImZzefbg5fliIvuTA++/0ZaYDTDqqpzhn6lHoW36iSuLHnslfCiBqdMBGDI6/0LUhfkgGiWFbC29c+epRaJMX3YJuD+R75l15wG4DaKh5dsPJsj0GXLaawavkWY/MyUcU/JOPHCkK7fAjNZiIf/PeX/vWx1814muF0Y/EKWs95mFVuKhgX352EYAoY5vnNSDRF/9p/MgHfQ2dldNIqbPeJm2aBBix20vzg26RpUUpLfb43FxZU4YMmEJGoxXKQeIfCg4uzMkrTDVitZ0ecst1B05i0Cv26Vk8H68JjFKabXa/Zkul5w5Lxp120EHdlyu/AQCiQI1P+YxaGcwY1+20kasnM/wXCa5/Ik1hKTEAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDgtMjBUMTU6MTc6NTUrMDA6MDCwJSdSAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA4LTIwVDE1OjE3OjU1KzAwOjAwwXif7gAAAABJRU5ErkJggg==" />
|
|
1268
1268
|
</a>
|
|
1269
1269
|
</div>
|
|
1270
|
-
`}updated(t){var n;super.updated(t),(t.has("center")||t.has("zoom"))&&this.flyTo(this.center,this.zoom),t.has("boundary")&&this.showBoundaryBoxControl&&(null==(n=this._map)||n.createBoundaryBox(this.boundary))}refresh(){this._map&&this._map.loadViewSettings().then(()=>{this._map&&(this._map.setCenter(),this._map.flyTo())})}loadMap(){this._loaded||(this._mapContainer&&this._slotElement&&(this._map=new lN(this.shadowRoot,this._mapContainer,this.showGeoCodingControl,this.showBoundaryBoxControl,this.useZoomControl,this.showGeoJson,this.cluster).setCenter(this.center).setZoom(this.zoom).setControls(this.controls).setGeoJson(this.geoJson),this._map.build().then(()=>{var t,n;null==(t=this._resizeObserver)||t.disconnect(),this._resizeObserver=new ResizeObserver(lL()(()=>{this.resize()},200));let i=null==(n=this._mapContainer)?void 0:n.parentElement;i&&this._resizeObserver.observe(i),this._slotElement.assignedNodes({flatten:!0}).forEach(t=>{t instanceof hh&&this._map.addMarker(t)})})),this._loaded=!0)}resize(){this._map&&this._map.resize()}flyTo(t,n){this._map&&this._map.flyTo(t,n)}_onMarkerChangedEvent(t){this._map&&this._map.onMarkerChanged(t.detail.marker,t.detail.property)}};hq.styles=lH,hj([eV({type:Object})],hq.prototype,"cluster",void 0),hj([eV({type:String,converter:{fromAttribute(t,n){if(!t)return;let i=t.split(",");if(2===i.length)return new lE.LngLat(Number(i[0]),Number(i[1]))},toAttribute(t,n){let i=lD(t);return i?""+i.lng+","+i.lat:""}}})],hq.prototype,"center",void 0),hj([eV({type:Number})],hq.prototype,"zoom",void 0),hj([eV({type:Boolean})],hq.prototype,"showGeoCodingControl",void 0),hj([eV({type:Boolean})],hq.prototype,"showBoundaryBoxControl",void 0),hj([eV({type:Boolean})],hq.prototype,"useZoomControl",void 0),hj([eV({type:Object})],hq.prototype,"geoJson",void 0),hj([eV({type:Boolean})],hq.prototype,"showGeoJson",void 0),hj([eV({type:Array})],hq.prototype,"boundary",void 0),hj([eq("#map")],hq.prototype,"_mapContainer",void 0),hj([eq("slot")],hq.prototype,"_slotElement",void 0),hq=hj([eY("or-map")],hq);var hG=o(55359),hK=o.n(hG),hX=o(71770),hZ=o.n(hX),hJ=o(38420),hQ=o.n(hJ),h0=o(95355),h1=o.n(h0),h2=o(29650),h3=o.n(h2),h5=o(59974),h4=o.n(h5),h6=o(29475),h8=o.n(h6),h7=o(64383),h9=o.n(h7),ue=o(22485),ut=o.n(ue),un=o(18508),ui=o.n(un),ur=o(16372),uo=o.n(ur),ua=o(58466),us=o.n(ua),ul=o(78434),uc=o.n(ul),ud=o(51582),uh=o.n(ud),uu=o(81285),up=o.n(uu),um=o(26461),uf=o.n(um),ug=o(97564),ub=o.n(ug),uv=o(94360),u_=o.n(uv),uy=o(20469),ux=o.n(uy);o(96672),o(6994),o(19804),o(81370),o(86520),o(55482);let uw="additionalProperties",uk="required";class uM{constructor(t){this.findOption=t,this.schemaObject=t=>{let n=this.properties(t),i={type:"object",properties:n,additionalProperties:this.findOption(n)(uw)},r=this.findOption(n)(uk);return r.length>0&&(i.required=r),i},this.properties=t=>Object.keys(t).reduce((n,i)=>(n[i]=this.property(t[i]),n),{}),this.property=t=>{switch(typeof t){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(t))return{type:"integer"};return{type:"number"};case"object":if(null==t)return{type:"null"};return this.schemaObjectOrArray(t);default:return{}}},this.schemaObjectOrArray=t=>t instanceof Array?this.schemaArray(t):this.schemaObject(t),this.schemaArray=t=>{if(!(t.length>0))return{type:"array",items:{}};{var n,i;let r,o=(n=t.map(this.property),i=t=>JSON.stringify(t),r={},n.filter(t=>{let n=i(t);return!Object.prototype.hasOwnProperty.call(r,n)&&(r[n]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let uF=(t,n={})=>new uM(t=>i=>{switch(i){case uw:if(Object.prototype.hasOwnProperty.call(n,uw))return n[uw];return!0;case uk:if(Object.prototype.hasOwnProperty.call(n,uk))return n[uk](t);return Object.keys(t);default:return}}).schemaObject(t),uE=new Set,uC=(t,n)=>n<=1?t:t+n.toString(),uT=(t,n)=>{let i=uC(t,n);return!uE.has(i)},uA=(t,n)=>{let i=t;return(hK()(t)||hK()(n)||n.startsWith("[")||(i=t+"."),hK()(i))?n:hK()(n)?i:`${i}${n}`},uS=t=>t?.replace(/~1/g,"/").replace(/~0/,"~"),uL=(t,n)=>{if(n&&"string"==typeof n.title)return n.title;if("string"==typeof t.scope){let n=t.scope,i=uS(n.substr(n.lastIndexOf("/")+1));return hZ()(i)}return""},uD=(t,n)=>({text:t,show:n}),uI=(t,n)=>hK()(n)?t:n.split(".").reduce((t,n)=>{if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},t),uz=(t,n,i)=>uO(t,n?.split("/").map(uS),i),uO=(t,n,i)=>{if(hK()(t))return;if("string"==typeof t.$ref&&(t=uz(i,t.$ref,i)),!n||0===n.length)return t;let[r,...o]=n;if("#"===r||void 0===r||""===r)return uO(t,o,i);let a=uO(h3()(t,r),o,i);if(a)return a;if("properties"===r||"items"===r){let n;for(let a of[].concat(t.oneOf??[],t.allOf??[],t.anyOf??[],t.then??[],t.else??[]))if(n=uO(a,[r,...o],i))break;return n}};(b=k||(k={})).HIDE="HIDE",b.SHOW="SHOW",b.ENABLE="ENABLE",b.DISABLE="DISABLE";let uR=(t,n)=>{let i,r;if(!u$(t))return n??"";let o=(r="#"===(i=t.scope.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(uS))[0]||""===i[0],h1()(r?2:1,i.length,2).map(t=>i[t]));return hK()(o)?n??"":uA(n,o.join("."))},uP=t=>"object"==typeof t&&null!==t&&"string"==typeof t.i18n,u$=t=>!!t&&"object"==typeof t&&"string"==typeof t.scope,uB=(t,n,i,r)=>{if("AND"===n.type)return n.conditions.reduce((n,o)=>n&&uB(t,o,i,r),!0);if("OR"===n.type)return n.conditions.reduce((n,o)=>n||uB(t,o,i,r),!1);if("LEAF"===n.type)return uI(t,uR(n,i))===n.expectedValue;if(!h4()(n,"schema"))return!0;{let o=uI(t,uR(n,i));return(!n.failWhenUndefined||void 0!==o)&&r.validate(n.schema,o)}},uN=(t,n,i,r)=>uB(n,t.rule.condition,i,r),uj=t=>!!t.rule&&(t.rule.effect===k.SHOW||t.rule.effect===k.HIDE),uY=(t,n,i,r)=>{if(t.rule){let o=uN(t,n,i,r);switch(t.rule.effect){case k.HIDE:return!o;case k.SHOW:return o}}return!0},uH=t=>!!t&&Object.prototype.hasOwnProperty.call(t,"oneOf")&&t.oneOf&&t.oneOf.every(t=>void 0!==t.const),uV=(t,n)=>ut()(uU(t),n),uU=t=>{if(hK()(t))return[];if(!hK()(t.type)&&"string"==typeof t.type)return[t.type];if(h9()(t.type))return t.type;if(!hK()(t.properties)||!hK()(t.additionalProperties))return["object"];if(!hK()(t.items))return["array"];if(!hK()(t.enum)){let n=new Set;return t.enum.forEach(t=>{"string"==typeof t?n.add("string"):uU(t).forEach(t=>n.add(t))}),Array.from(n)}if(!hK()(t.allOf)){let n=h8()(t.allOf,t=>0!==uU(t).length);if(n)return uU(n)}return[]},uW=t=>{let n=new(ui())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...t});return uo()(n),n},uq=(t,n)=>void 0===t||t(n)?[]:t.errors,uG=t=>{let n=t.dataPath||t.instancePath||"";n=n.replace(/\//g,".");let i=(t=>{switch(t.keyword){case"required":case"dependencies":return t.params.missingProperty;case"additionalProperties":return t.params.additionalProperty;default:return}})(t);return void 0===i||n.endsWith(i)||(n=`${n}.${i}`),n=uS(n=n.replace(/^./,""))},uK=["additionalProperties","allOf","anyOf","oneOf"],uX=t=>({type:t,elements:[]}),uZ=t=>({type:"Control",scope:t}),uJ=(t,n,i,r,o,a)=>{if(!hK()(t)&&void 0!==t.$ref)return uJ(uz(a,t.$ref,a),n,i,r,o,a);if(!hK()(t)&&(!hK()(t.oneOf)||!hK()(t.anyOf)||!hK()(t.allOf))){let t=uZ(i);return n.push(t),t}let s=uU(t);if(0===s.length)return null;if(s.length>1){let t=uZ(i);return n.push(t),t}if("#"===i&&"object"===s[0]){let s=uX(o);if(n.push(s),t.properties&&hQ()(t.properties).length>1&&((t,n)=>{if(!hK()(n)){let i=hZ()(n);"Group"===t.type?t.label=i:t.elements.push({type:"Label",text:i})}})(s,r),!hK()(t.properties)){let n=i+"/properties";Object.keys(t.properties).map(i=>{let r,l=t.properties[i],c=`${n}/${(r=i,r?.replace(/~/g,"~0").replace(/\//g,"~1"))}`;void 0!==l.$ref&&(l=uz(a,l.$ref,a)),uJ(l,s.elements,c,i,o,a)})}return s}switch(s[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let t=uZ(i);return n.push(t),t}default:throw Error("Unknown type: "+JSON.stringify(t))}},uQ=(t,n="VerticalLayout",i="#",r=t)=>((t,n)=>{if(!hK()(t)&&void 0===t.elements){let i=uX(n);return i.elements.push(t),i}return t})(uJ(t,[],i,"",n,r),n),u0="jsonforms/INIT",u1="jsonforms/UPDATE_CORE",u2="jsonforms/SET_AJV",u3="jsonforms/UPDATE",u5="jsonforms/UPDATE_ERRORS",u4="jsonforms/ADD_RENDERER",u6="jsonforms/REMOVE_RENDERER",u8="jsonforms/ADD_CELL",u7="jsonforms/REMOVE_CELL",u9="jsonforms/SET_CONFIG",pe="jsonforms/ADD_UI_SCHEMA",pt="jsonforms/REMOVE_UI_SCHEMA",pn="jsonforms/SET_SCHEMA",pi="jsonforms/SET_UISCHEMA",pr="jsonforms/SET_VALIDATION_MODE",po="jsonforms/SET_LOCALE",pa="jsonforms/SET_TRANSLATOR",ps="jsonforms/UPDATE_I18N",pl="jsonforms/ADD_DEFAULT_DATA",pc="jsonforms/REMOVE_DEFAULT_DATA",pd=(t,n,i)=>({type:u3,path:t,updater:n,context:i}),ph=t=>({type:u9,config:t});var pu=Object.freeze({__proto__:null,INIT:u0,UPDATE_CORE:u1,SET_AJV:u2,UPDATE_DATA:u3,UPDATE_ERRORS:u5,VALIDATE:"jsonforms/VALIDATE",ADD_RENDERER:u4,REMOVE_RENDERER:u6,ADD_CELL:u8,REMOVE_CELL:u7,SET_CONFIG:u9,ADD_UI_SCHEMA:pe,REMOVE_UI_SCHEMA:pt,SET_SCHEMA:pn,SET_UISCHEMA:pi,SET_VALIDATION_MODE:pr,SET_LOCALE:po,SET_TRANSLATOR:pa,UPDATE_I18N:ps,ADD_DEFAULT_DATA:pl,REMOVE_DEFAULT_DATA:pc,isUpdateArrayContext:t=>{if(!("type"in t)||"string"!=typeof t.type)return!1;switch(t.type){case"ADD":return"values"in t&&Array.isArray(t.values)&&t.values.length>0;case"REMOVE":return"indices"in t&&Array.isArray(t.indices)&&t.indices.length>0&&t.indices.every(t=>"number"==typeof t);case"MOVE":return"moves"in t&&Array.isArray(t.moves)&&t.moves.length>0&&t.moves.every(t=>"object"==typeof t&&null!==t&&"from"in t&&"to"in t&&"number"==typeof t.from&&"number"==typeof t.to);default:return!1}},init:(t,n=uF(t),i,r)=>({type:u0,data:t,schema:n,uischema:"object"==typeof i?i:uQ(n),options:r}),updateCore:(t,n,i,r)=>({type:u1,data:t,schema:n,uischema:i,options:r}),registerDefaultData:(t,n)=>({type:pl,schemaPath:t,data:n}),unregisterDefaultData:t=>({type:pc,schemaPath:t}),setAjv:t=>({type:u2,ajv:t}),update:pd,updateErrors:t=>({type:u5,errors:t}),registerRenderer:(t,n)=>({type:u4,tester:t,renderer:n}),registerCell:(t,n)=>({type:u8,tester:t,cell:n}),unregisterCell:(t,n)=>({type:u7,tester:t,cell:n}),unregisterRenderer:(t,n)=>({type:u6,tester:t,renderer:n}),setConfig:ph,setValidationMode:t=>({type:pr,validationMode:t}),registerUISchema:(t,n)=>({type:pe,tester:t,uischema:n}),unregisterUISchema:t=>({type:pt,tester:t}),setLocale:t=>({type:po,locale:t}),setSchema:t=>({type:pn,schema:t}),setTranslator:(t,n)=>({type:pa,translator:t,errorTranslator:n}),updateI18n:(t,n,i)=>({type:ps,locale:t,translator:n,errorTranslator:i}),setUISchema:t=>({type:pi,uischema:t})});let pp={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},pm=(t={})=>uh()({},pp,t),pf={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},pg=(t,n)=>n&&pb(n.options)?n.options.validationMode:t.validationMode,pb=t=>!!t&&void 0!==t.validationMode,pv=(t,n)=>{var i;return n&&(i=n.options)&&void 0!==i.additionalErrors?n.options.additionalErrors:t.additionalErrors},p_=(t,n)=>{if(n){if(py(n.options))return n.options.ajv;else if(void 0!==n.options&&u_()(n.options.compile))return n.options}return t.ajv?t.ajv:uW()},py=t=>!!t&&void 0!==t.ajv;(v=M||(M={})).addTooltip="addTooltip",v.addAriaLabel="addAriaLabel",v.removeTooltip="removeTooltip",v.upAriaLabel="upAriaLabel",v.downAriaLabel="downAriaLabel",v.noSelection="noSelection",v.removeAriaLabel="removeAriaLabel",v.noDataMessage="noDataMessage",v.deleteDialogTitle="deleteDialogTitle",v.deleteDialogMessage="deleteDialogMessage",v.deleteDialogAccept="deleteDialogAccept",v.deleteDialogDecline="deleteDialogDecline",v.up="up",v.down="down",M.addTooltip,M.addAriaLabel,M.removeTooltip,M.removeAriaLabel,M.upAriaLabel,M.up,M.down,M.downAriaLabel,M.noDataMessage,M.noSelection,M.deleteDialogTitle,M.deleteDialogMessage,M.deleteDialogAccept,M.deleteDialogDecline,(_=F||(F={})).clearDialogTitle="clearDialogTitle",_.clearDialogMessage="clearDialogMessage",_.clearDialogAccept="clearDialogAccept",_.clearDialogDecline="clearDialogDecline",F.clearDialogTitle,F.clearDialogMessage,F.clearDialogAccept,F.clearDialogDecline;let px=(t,n)=>uP(n)?n.i18n:t?.i18n??void 0,pw=(t,n,i)=>px(t,n)??(i?.split(".").filter(t=>!/^\d+$/.test(t)).join(".")||"root"),pk=(t,n,i,r)=>`${pw(t,n,i)}.${r}`,pM=(t,n)=>n,pF=(t,n,i)=>{let r=n(pk(t.parentSchema,i,uG(t),`error.${t.keyword}`),void 0,{error:t});if(void 0!==r)return r;let o=n(`error.${t.keyword}`,void 0,{error:t});if(void 0!==o)return o;let a=n(t.message,void 0,{error:t});return void 0!==a?a:"required"===t.keyword&&t.message?.startsWith("must have required property")?n("is a required property","is a required property",{error:t}):t.message},pE=()=>t=>{var n;return void 0===(n=h3()(t,"jsonforms.i18n"))?pM:n.translate},pC=t=>!hK()(t)&&void 0!==t.scope,pT=t=>(n,i,r)=>{if(hK()(n)||!pC(n)||hK()(i))return!1;let o=n.scope;if(hK()(o))return!1;let a=i;return uV(i,"object")&&(a=uz(i,o,r?.rootSchema)),void 0!==a&&t(a,r?.rootSchema)},pA=(t,n)=>(i,r,o)=>{if(hK()(i)||!pC(i))return!1;let a=i.scope,s=r;return uV(r,"object")&&(s=uz(r,a,o?.rootSchema)),void 0!==(s=h3()(s,t))&&n(s,o?.rootSchema)},pS=t=>pT(n=>!hK()(n)&&uV(n,t)),pL=t=>pT(n=>!hK()(n)&&n.format===t&&uV(n,"string")),pD=t=>n=>!hK()(n)&&n.type===t,pI=(t,n)=>i=>{if(hK()(i))return!1;let r=i.options;return!hK()(r)&&r[t]===n},pz=(...t)=>(n,i,r)=>t.reduce((t,o)=>t&&o(n,i,r),!0),pO=(...t)=>(n,i,r)=>t.reduce((t,o)=>t||o(n,i,r),!1),pR=(t,n)=>(i,r,o)=>n(i,r,o)?t:-1,pP=pz(pD("Control"),pS("boolean")),p$=pz(pD("Control"),pS("object")),pB=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"allOf"))),pN=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"anyOf"))),pj=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"oneOf"))),pY=pz(pD("Control"),pT(t=>!!t&&"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"enum")||Object.prototype.hasOwnProperty.call(t,"const")))),pH=pz(pD("Control"),pT(t=>uH(t))),pV=pz(pD("Control"),pS("integer")),pU=pz(pD("Control"),pS("number")),pW=pz(pD("Control"),pS("string"));pz(pD("Control"),pI("multi",!0));let pq=pz(pD("Control"),pO(pL("date"),pI("format","date"))),pG=pz(pD("Control"),pO(pL("time"),pI("format","time"))),pK=pz(pD("Control"),pO(pL("date-time"),pI("format","date-time"))),pX=pz(pT((t,n)=>uV(t,"array")&&!Array.isArray(uz(t,"items",n))),pA("items",(t,n)=>uV(t.$ref?uz(n,t.$ref,n):t,"object")));pz(pD("Control"),pX),pz(pD("Control"),pT((t,n)=>0!==uU(t).length&&!Array.isArray(uz(t,"items",n))),pA("items",(t,n)=>{let i=uU(t.$ref?uz(n,t.$ref,n):t);return 1===i.length&&ut()(["integer","number","boolean","string"],i[0])})),pz(pD("Control"),pO(pS("number"),pS("integer")),pT(t=>Object.prototype.hasOwnProperty.call(t,"maximum")&&Object.prototype.hasOwnProperty.call(t,"minimum")&&Object.prototype.hasOwnProperty.call(t,"default")),pI("slider",!0)),pz(pD("Control"),pS("integer"),pI("format",!0));let pZ=(t,n,i,r,o="VerticalLayout",a,s)=>{if(a&&a.options&&a.options.detail){if("string"==typeof a.options.detail){if("GENERATE"===a.options.detail.toUpperCase())return"function"==typeof o?o():uQ(n,o,void 0,s)}else if("object"==typeof a.options.detail&&a.options.detail.type&&"string"==typeof a.options.detail.type)return a.options.detail}let l=((n,i,r)=>{let o=ux()(t,t=>t.tester(n,i,r));if(void 0!==o&&-1!==o.tester(n,i,r))return o.uischema})(n,i,r);return void 0===l?"function"==typeof o?o():uQ(n,o,"#",s):l},pJ=t=>p1(h3()(t,"jsonforms.core")),pQ=t=>p2(h3()(t,"jsonforms.core")),p0=t=>p3(h3()(t,"jsonforms.core")),p1=t=>h3()(t,"data"),p2=t=>h3()(t,"schema"),p3=t=>h3()(t,"ajv"),p5=(t,n,i,r,o,a)=>!t?.jsonforms?.readonly&&(i&&i.rule&&(i.rule.effect===k.ENABLE||i.rule.effect===k.DISABLE)?((t,n,i,r)=>{if(t.rule){let o=uN(t,n,i,r);switch(t.rule.effect){case k.DISABLE:return!o;case k.ENABLE:return o}}return!0})(i,o,n?.path,p0(t)):"boolean"==typeof i?.options?.readonly?!i.options.readonly:"boolean"==typeof i?.options?.readOnly?!i.options.readOnly:"boolean"==typeof a?.readonly?!a.readonly:"boolean"==typeof a?.readOnly?!a.readOnly:r?.readOnly!==!0&&("boolean"!=typeof n?.enabled||n.enabled)),p4=(t,n,i)=>{let r=n+i;if(r<0||r>=t.length)return;let o=[n,r].sort((t,n)=>t-n);t.splice(o[0],2,t[o[1]],t[o[0]])},p6=(t,n,i)=>`${t??""}${n&&!i?"*":""}`,p8=(t,n)=>{let i=p7(t,n);return void 0===i?{}:i},p7=(t,n)=>{let i="string"==typeof t.$ref?uz(n,t.$ref,n):t;if(void 0!==i.default)return me(i,n);if(uV(i,"string"))return"date-time"===i.format||"date"===i.format||"time"===i.format?((t,n)=>{let i=t.toISOString();if("date-time"===n);else if("date"===n)return i.split("T")[0];else if("time"===n)return i.split("T")[1].split(".")[0];return i})(new Date,i.format):"";if(uV(i,"integer")||uV(i,"number"))return 0;if(uV(i,"boolean"))return!1;if(uV(i,"array"))return[];if(uV(i,"object"))return me(i,n);if(uV(i,"null"))return null;for(let i of["oneOf","anyOf","allOf"])if(t[i]&&Array.isArray(t[i])){let r=p9(t[i],n);if(void 0!==r)return r}},p9=(t,n)=>{if(t.length>0)for(let i of t){let t=p7(i,n);if(void 0!==t)return t}},me=(t,n)=>{if(uV(t,"object")&&void 0===t.default){let i={};for(let r in t.properties){let o=t.properties[r],a=o.$ref?uz(n,o.$ref,n):o;a&&void 0!==a.default&&(i[r]=up()(a.default))}return t.allOf&&Array.isArray(t.allOf)&&t.allOf.forEach(t=>{if(t&&t.properties)for(let r in t.properties){let o=t.properties[r],a=o.$ref?uz(n,o.$ref,n):o;a&&void 0!==a.default&&(i[r]=up()(a.default))}}),i}return up()(t.default)},mt=(t,n)=>{var i,r,o,a,s,l;let c,d,h,u,{uischema:p}=n,m=pJ(t),f=uR(p,n.path),g=void 0===n.visible||uj(p)?uY(p,m,n.path,p0(t)):n.visible,b=n.id,v=pQ(t),_=void 0!==p.scope&&(i=n.schema,r=p.scope,h=uS((d=r.split("/"))[d.length-1]),void 0!==(u=uz(i,d.slice(0,d.length-2).join("/"),v))&&void 0!==u.required&&-1!==u.required.indexOf(h)),y=uz(n.schema||v,p.scope,v),x=(t=>{let n;return(n=t=>t===f,t=>{let i=t.errors??[],r=t.additionalErrors??[];return(t=>{let i=us()(t,t=>"oneOf"===t.keyword||"anyOf"===t.keyword).map(t=>uG(t));return us()(t,t=>{let r;if(-1!==uK.indexOf(t.keyword)&&!uH(t.parentSchema))return!1;let o=n(uG(t)),a=t.parentSchema;return!o||(r=a,r?.type==="object"||r?.properties)||uH(a)||-1===i.findIndex(t=>f.startsWith(t))||(o=o&&uc()(a,y)),o})})("ValidateAndHide"===t.validationMode?r:[...i,...r])})(t.jsonforms.core)})(t),w=void 0!==y?y.description:"",k=uI(m,f),M=(o=p,a=y,"boolean"==typeof(c=o.label)?uD(uL(o,a),c):"string"==typeof c?uD(c,!0):"object"==typeof c?uD("string"==typeof c.text?c.text:uL(o,a),"boolean"!=typeof c.show||c.show):uD(uL(o,a),!0)),F=M.show?M.text:"",E=t.jsonforms.config,C=p5(t,n,p,y||v,m,E),T=y??v,A=pE()(t),S=(s=t,void 0===(l=h3()(s,"jsonforms.i18n"))?pF:l.translateError),L=pw(T,p,f),D=A(pk(T,p,f,"label"),F,{schema:T,uischema:p,path:f,errors:x});return{data:k,description:A(pk(T,p,f,"description"),w,{schema:T,uischema:p,path:f,errors:x}),errors:((t,n,i,r,o,a)=>{var s;if(t.length>0&&i){let n=i(pk(r,o,a,"error.custom"),void 0,{schema:r,uischema:o,path:a,errors:t});if(void 0!==n)return n}return null==(s=t.map(t=>n(t,i,o)))?"":s.join("\n")})(x,S,A,T,p,f),label:D,visible:g,enabled:C,id:b,path:f,required:_,uischema:p,schema:T,config:t.jsonforms.config,cells:n.cells||t.jsonforms.cells,rootSchema:v,i18nKeyPrefix:L}},mn=t=>({handleChange(n,i){t(pd(n,()=>i))}}),mi=(t,n)=>{let{...i}=mt(t,n);return{...i,uischemas:t.jsonforms.uischemas}},mr={visible:!0,enabled:!0,path:"",direction:"column"};({...mr,errors:[]});var mo=o(76674),ma=o.n(mo);o(4452),o(48833),o(25505);var ms=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 ml extends CustomEvent{constructor(t,n){super(ml.NAME,{bubbles:!0,composed:!0,detail:{value:t,valid:n}})}}ml.NAME="or-ace-editor-changed";class mc extends CustomEvent{constructor(){super(mc.NAME,{bubbles:!0,composed:!0})}}mc.NAME="or-ace-editor-edit";let md=class extends eN{constructor(){super(...arguments),this.mode="ace/mode/json",this._lastValue="",this._editing=!1}static get styles(){return R`
|
|
1270
|
+
`}updated(t){var n;super.updated(t),(t.has("center")||t.has("zoom"))&&this.flyTo(this.center,this.zoom),t.has("boundary")&&this.showBoundaryBoxControl&&(null==(n=this._map)||n.createBoundaryBox(this.boundary))}refresh(){this._map&&this._map.loadViewSettings().then(()=>{this._map&&(this._map.setCenter(),this._map.flyTo())})}loadMap(){this._loaded||(this._mapContainer&&this._slotElement&&(this._map=new lN(this.shadowRoot,this._mapContainer,this.showGeoCodingControl,this.showBoundaryBoxControl,this.useZoomControl,this.showGeoJson,this.cluster).setCenter(this.center).setZoom(this.zoom).setControls(this.controls).setGeoJson(this.geoJson),this._map.build().then(()=>{var t,n;null==(t=this._resizeObserver)||t.disconnect(),this._resizeObserver=new ResizeObserver(lL()(()=>{this.resize()},200));let i=null==(n=this._mapContainer)?void 0:n.parentElement;i&&this._resizeObserver.observe(i),this._slotElement.assignedNodes({flatten:!0}).forEach(t=>{t instanceof hh&&this._map.addMarker(t)})})),this._loaded=!0)}resize(){this._map&&this._map.resize()}flyTo(t,n){this._map&&this._map.flyTo(t,n)}_removeMarker(t){var n;null==(n=this._map)||n.removeMarker(t)}_onMarkerChangedEvent(t){this._map&&this._map.onMarkerChanged(t.detail.marker,t.detail.property)}};hq.styles=lH,hj([eV({type:Object})],hq.prototype,"cluster",void 0),hj([eV({type:String,converter:{fromAttribute(t,n){if(!t)return;let i=t.split(",");if(2===i.length)return new lE.LngLat(Number(i[0]),Number(i[1]))},toAttribute(t,n){let i=lD(t);return i?""+i.lng+","+i.lat:""}}})],hq.prototype,"center",void 0),hj([eV({type:Number})],hq.prototype,"zoom",void 0),hj([eV({type:Boolean})],hq.prototype,"showGeoCodingControl",void 0),hj([eV({type:Boolean})],hq.prototype,"showBoundaryBoxControl",void 0),hj([eV({type:Boolean})],hq.prototype,"useZoomControl",void 0),hj([eV({type:Object})],hq.prototype,"geoJson",void 0),hj([eV({type:Boolean})],hq.prototype,"showGeoJson",void 0),hj([eV({type:Array})],hq.prototype,"boundary",void 0),hj([eq("#map")],hq.prototype,"_mapContainer",void 0),hj([eq("slot")],hq.prototype,"_slotElement",void 0),hq=hj([eY("or-map")],hq);var hG=o(55359),hK=o.n(hG),hX=o(71770),hZ=o.n(hX),hJ=o(38420),hQ=o.n(hJ),h0=o(95355),h1=o.n(h0),h2=o(29650),h3=o.n(h2),h5=o(59974),h4=o.n(h5),h6=o(29475),h8=o.n(h6),h7=o(64383),h9=o.n(h7),ue=o(22485),ut=o.n(ue),un=o(18508),ui=o.n(un),ur=o(16372),uo=o.n(ur),ua=o(58466),us=o.n(ua),ul=o(78434),uc=o.n(ul),ud=o(51582),uh=o.n(ud),uu=o(81285),up=o.n(uu),um=o(26461),uf=o.n(um),ug=o(97564),ub=o.n(ug),uv=o(94360),u_=o.n(uv),uy=o(20469),ux=o.n(uy);o(96672),o(6994),o(19804),o(81370),o(86520),o(55482);let uw="additionalProperties",uk="required";class uM{constructor(t){this.findOption=t,this.schemaObject=t=>{let n=this.properties(t),i={type:"object",properties:n,additionalProperties:this.findOption(n)(uw)},r=this.findOption(n)(uk);return r.length>0&&(i.required=r),i},this.properties=t=>Object.keys(t).reduce((n,i)=>(n[i]=this.property(t[i]),n),{}),this.property=t=>{switch(typeof t){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(t))return{type:"integer"};return{type:"number"};case"object":if(null==t)return{type:"null"};return this.schemaObjectOrArray(t);default:return{}}},this.schemaObjectOrArray=t=>t instanceof Array?this.schemaArray(t):this.schemaObject(t),this.schemaArray=t=>{if(!(t.length>0))return{type:"array",items:{}};{var n,i;let r,o=(n=t.map(this.property),i=t=>JSON.stringify(t),r={},n.filter(t=>{let n=i(t);return!Object.prototype.hasOwnProperty.call(r,n)&&(r[n]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let uF=(t,n={})=>new uM(t=>i=>{switch(i){case uw:if(Object.prototype.hasOwnProperty.call(n,uw))return n[uw];return!0;case uk:if(Object.prototype.hasOwnProperty.call(n,uk))return n[uk](t);return Object.keys(t);default:return}}).schemaObject(t),uE=new Set,uC=(t,n)=>n<=1?t:t+n.toString(),uT=(t,n)=>{let i=uC(t,n);return!uE.has(i)},uA=(t,n)=>{let i=t;return(hK()(t)||hK()(n)||n.startsWith("[")||(i=t+"."),hK()(i))?n:hK()(n)?i:`${i}${n}`},uS=t=>t?.replace(/~1/g,"/").replace(/~0/,"~"),uL=(t,n)=>{if(n&&"string"==typeof n.title)return n.title;if("string"==typeof t.scope){let n=t.scope,i=uS(n.substr(n.lastIndexOf("/")+1));return hZ()(i)}return""},uD=(t,n)=>({text:t,show:n}),uI=(t,n)=>hK()(n)?t:n.split(".").reduce((t,n)=>{if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},t),uz=(t,n,i)=>uO(t,n?.split("/").map(uS),i),uO=(t,n,i)=>{if(hK()(t))return;if("string"==typeof t.$ref&&(t=uz(i,t.$ref,i)),!n||0===n.length)return t;let[r,...o]=n;if("#"===r||void 0===r||""===r)return uO(t,o,i);let a=uO(h3()(t,r),o,i);if(a)return a;if("properties"===r||"items"===r){let n;for(let a of[].concat(t.oneOf??[],t.allOf??[],t.anyOf??[],t.then??[],t.else??[]))if(n=uO(a,[r,...o],i))break;return n}};(b=k||(k={})).HIDE="HIDE",b.SHOW="SHOW",b.ENABLE="ENABLE",b.DISABLE="DISABLE";let uR=(t,n)=>{let i,r;if(!u$(t))return n??"";let o=(r="#"===(i=t.scope.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(uS))[0]||""===i[0],h1()(r?2:1,i.length,2).map(t=>i[t]));return hK()(o)?n??"":uA(n,o.join("."))},uP=t=>"object"==typeof t&&null!==t&&"string"==typeof t.i18n,u$=t=>!!t&&"object"==typeof t&&"string"==typeof t.scope,uB=(t,n,i,r)=>{if("AND"===n.type)return n.conditions.reduce((n,o)=>n&&uB(t,o,i,r),!0);if("OR"===n.type)return n.conditions.reduce((n,o)=>n||uB(t,o,i,r),!1);if("LEAF"===n.type)return uI(t,uR(n,i))===n.expectedValue;if(!h4()(n,"schema"))return!0;{let o=uI(t,uR(n,i));return(!n.failWhenUndefined||void 0!==o)&&r.validate(n.schema,o)}},uN=(t,n,i,r)=>uB(n,t.rule.condition,i,r),uj=t=>!!t.rule&&(t.rule.effect===k.SHOW||t.rule.effect===k.HIDE),uY=(t,n,i,r)=>{if(t.rule){let o=uN(t,n,i,r);switch(t.rule.effect){case k.HIDE:return!o;case k.SHOW:return o}}return!0},uH=t=>!!t&&Object.prototype.hasOwnProperty.call(t,"oneOf")&&t.oneOf&&t.oneOf.every(t=>void 0!==t.const),uV=(t,n)=>ut()(uU(t),n),uU=t=>{if(hK()(t))return[];if(!hK()(t.type)&&"string"==typeof t.type)return[t.type];if(h9()(t.type))return t.type;if(!hK()(t.properties)||!hK()(t.additionalProperties))return["object"];if(!hK()(t.items))return["array"];if(!hK()(t.enum)){let n=new Set;return t.enum.forEach(t=>{"string"==typeof t?n.add("string"):uU(t).forEach(t=>n.add(t))}),Array.from(n)}if(!hK()(t.allOf)){let n=h8()(t.allOf,t=>0!==uU(t).length);if(n)return uU(n)}return[]},uW=t=>{let n=new(ui())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...t});return uo()(n),n},uq=(t,n)=>void 0===t||t(n)?[]:t.errors,uG=t=>{let n=t.dataPath||t.instancePath||"";n=n.replace(/\//g,".");let i=(t=>{switch(t.keyword){case"required":case"dependencies":return t.params.missingProperty;case"additionalProperties":return t.params.additionalProperty;default:return}})(t);return void 0===i||n.endsWith(i)||(n=`${n}.${i}`),n=uS(n=n.replace(/^./,""))},uK=["additionalProperties","allOf","anyOf","oneOf"],uX=t=>({type:t,elements:[]}),uZ=t=>({type:"Control",scope:t}),uJ=(t,n,i,r,o,a)=>{if(!hK()(t)&&void 0!==t.$ref)return uJ(uz(a,t.$ref,a),n,i,r,o,a);if(!hK()(t)&&(!hK()(t.oneOf)||!hK()(t.anyOf)||!hK()(t.allOf))){let t=uZ(i);return n.push(t),t}let s=uU(t);if(0===s.length)return null;if(s.length>1){let t=uZ(i);return n.push(t),t}if("#"===i&&"object"===s[0]){let s=uX(o);if(n.push(s),t.properties&&hQ()(t.properties).length>1&&((t,n)=>{if(!hK()(n)){let i=hZ()(n);"Group"===t.type?t.label=i:t.elements.push({type:"Label",text:i})}})(s,r),!hK()(t.properties)){let n=i+"/properties";Object.keys(t.properties).map(i=>{let r,l=t.properties[i],c=`${n}/${(r=i,r?.replace(/~/g,"~0").replace(/\//g,"~1"))}`;void 0!==l.$ref&&(l=uz(a,l.$ref,a)),uJ(l,s.elements,c,i,o,a)})}return s}switch(s[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let t=uZ(i);return n.push(t),t}default:throw Error("Unknown type: "+JSON.stringify(t))}},uQ=(t,n="VerticalLayout",i="#",r=t)=>((t,n)=>{if(!hK()(t)&&void 0===t.elements){let i=uX(n);return i.elements.push(t),i}return t})(uJ(t,[],i,"",n,r),n),u0="jsonforms/INIT",u1="jsonforms/UPDATE_CORE",u2="jsonforms/SET_AJV",u3="jsonforms/UPDATE",u5="jsonforms/UPDATE_ERRORS",u4="jsonforms/ADD_RENDERER",u6="jsonforms/REMOVE_RENDERER",u8="jsonforms/ADD_CELL",u7="jsonforms/REMOVE_CELL",u9="jsonforms/SET_CONFIG",pe="jsonforms/ADD_UI_SCHEMA",pt="jsonforms/REMOVE_UI_SCHEMA",pn="jsonforms/SET_SCHEMA",pi="jsonforms/SET_UISCHEMA",pr="jsonforms/SET_VALIDATION_MODE",po="jsonforms/SET_LOCALE",pa="jsonforms/SET_TRANSLATOR",ps="jsonforms/UPDATE_I18N",pl="jsonforms/ADD_DEFAULT_DATA",pc="jsonforms/REMOVE_DEFAULT_DATA",pd=(t,n,i)=>({type:u3,path:t,updater:n,context:i}),ph=t=>({type:u9,config:t});var pu=Object.freeze({__proto__:null,INIT:u0,UPDATE_CORE:u1,SET_AJV:u2,UPDATE_DATA:u3,UPDATE_ERRORS:u5,VALIDATE:"jsonforms/VALIDATE",ADD_RENDERER:u4,REMOVE_RENDERER:u6,ADD_CELL:u8,REMOVE_CELL:u7,SET_CONFIG:u9,ADD_UI_SCHEMA:pe,REMOVE_UI_SCHEMA:pt,SET_SCHEMA:pn,SET_UISCHEMA:pi,SET_VALIDATION_MODE:pr,SET_LOCALE:po,SET_TRANSLATOR:pa,UPDATE_I18N:ps,ADD_DEFAULT_DATA:pl,REMOVE_DEFAULT_DATA:pc,isUpdateArrayContext:t=>{if(!("type"in t)||"string"!=typeof t.type)return!1;switch(t.type){case"ADD":return"values"in t&&Array.isArray(t.values)&&t.values.length>0;case"REMOVE":return"indices"in t&&Array.isArray(t.indices)&&t.indices.length>0&&t.indices.every(t=>"number"==typeof t);case"MOVE":return"moves"in t&&Array.isArray(t.moves)&&t.moves.length>0&&t.moves.every(t=>"object"==typeof t&&null!==t&&"from"in t&&"to"in t&&"number"==typeof t.from&&"number"==typeof t.to);default:return!1}},init:(t,n=uF(t),i,r)=>({type:u0,data:t,schema:n,uischema:"object"==typeof i?i:uQ(n),options:r}),updateCore:(t,n,i,r)=>({type:u1,data:t,schema:n,uischema:i,options:r}),registerDefaultData:(t,n)=>({type:pl,schemaPath:t,data:n}),unregisterDefaultData:t=>({type:pc,schemaPath:t}),setAjv:t=>({type:u2,ajv:t}),update:pd,updateErrors:t=>({type:u5,errors:t}),registerRenderer:(t,n)=>({type:u4,tester:t,renderer:n}),registerCell:(t,n)=>({type:u8,tester:t,cell:n}),unregisterCell:(t,n)=>({type:u7,tester:t,cell:n}),unregisterRenderer:(t,n)=>({type:u6,tester:t,renderer:n}),setConfig:ph,setValidationMode:t=>({type:pr,validationMode:t}),registerUISchema:(t,n)=>({type:pe,tester:t,uischema:n}),unregisterUISchema:t=>({type:pt,tester:t}),setLocale:t=>({type:po,locale:t}),setSchema:t=>({type:pn,schema:t}),setTranslator:(t,n)=>({type:pa,translator:t,errorTranslator:n}),updateI18n:(t,n,i)=>({type:ps,locale:t,translator:n,errorTranslator:i}),setUISchema:t=>({type:pi,uischema:t})});let pp={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},pm=(t={})=>uh()({},pp,t),pf={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},pg=(t,n)=>n&&pb(n.options)?n.options.validationMode:t.validationMode,pb=t=>!!t&&void 0!==t.validationMode,pv=(t,n)=>{var i;return n&&(i=n.options)&&void 0!==i.additionalErrors?n.options.additionalErrors:t.additionalErrors},p_=(t,n)=>{if(n){if(py(n.options))return n.options.ajv;else if(void 0!==n.options&&u_()(n.options.compile))return n.options}return t.ajv?t.ajv:uW()},py=t=>!!t&&void 0!==t.ajv;(v=M||(M={})).addTooltip="addTooltip",v.addAriaLabel="addAriaLabel",v.removeTooltip="removeTooltip",v.upAriaLabel="upAriaLabel",v.downAriaLabel="downAriaLabel",v.noSelection="noSelection",v.removeAriaLabel="removeAriaLabel",v.noDataMessage="noDataMessage",v.deleteDialogTitle="deleteDialogTitle",v.deleteDialogMessage="deleteDialogMessage",v.deleteDialogAccept="deleteDialogAccept",v.deleteDialogDecline="deleteDialogDecline",v.up="up",v.down="down",M.addTooltip,M.addAriaLabel,M.removeTooltip,M.removeAriaLabel,M.upAriaLabel,M.up,M.down,M.downAriaLabel,M.noDataMessage,M.noSelection,M.deleteDialogTitle,M.deleteDialogMessage,M.deleteDialogAccept,M.deleteDialogDecline,(_=F||(F={})).clearDialogTitle="clearDialogTitle",_.clearDialogMessage="clearDialogMessage",_.clearDialogAccept="clearDialogAccept",_.clearDialogDecline="clearDialogDecline",F.clearDialogTitle,F.clearDialogMessage,F.clearDialogAccept,F.clearDialogDecline;let px=(t,n)=>uP(n)?n.i18n:t?.i18n??void 0,pw=(t,n,i)=>px(t,n)??(i?.split(".").filter(t=>!/^\d+$/.test(t)).join(".")||"root"),pk=(t,n,i,r)=>`${pw(t,n,i)}.${r}`,pM=(t,n)=>n,pF=(t,n,i)=>{let r=n(pk(t.parentSchema,i,uG(t),`error.${t.keyword}`),void 0,{error:t});if(void 0!==r)return r;let o=n(`error.${t.keyword}`,void 0,{error:t});if(void 0!==o)return o;let a=n(t.message,void 0,{error:t});return void 0!==a?a:"required"===t.keyword&&t.message?.startsWith("must have required property")?n("is a required property","is a required property",{error:t}):t.message},pE=()=>t=>{var n;return void 0===(n=h3()(t,"jsonforms.i18n"))?pM:n.translate},pC=t=>!hK()(t)&&void 0!==t.scope,pT=t=>(n,i,r)=>{if(hK()(n)||!pC(n)||hK()(i))return!1;let o=n.scope;if(hK()(o))return!1;let a=i;return uV(i,"object")&&(a=uz(i,o,r?.rootSchema)),void 0!==a&&t(a,r?.rootSchema)},pA=(t,n)=>(i,r,o)=>{if(hK()(i)||!pC(i))return!1;let a=i.scope,s=r;return uV(r,"object")&&(s=uz(r,a,o?.rootSchema)),void 0!==(s=h3()(s,t))&&n(s,o?.rootSchema)},pS=t=>pT(n=>!hK()(n)&&uV(n,t)),pL=t=>pT(n=>!hK()(n)&&n.format===t&&uV(n,"string")),pD=t=>n=>!hK()(n)&&n.type===t,pI=(t,n)=>i=>{if(hK()(i))return!1;let r=i.options;return!hK()(r)&&r[t]===n},pz=(...t)=>(n,i,r)=>t.reduce((t,o)=>t&&o(n,i,r),!0),pO=(...t)=>(n,i,r)=>t.reduce((t,o)=>t||o(n,i,r),!1),pR=(t,n)=>(i,r,o)=>n(i,r,o)?t:-1,pP=pz(pD("Control"),pS("boolean")),p$=pz(pD("Control"),pS("object")),pB=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"allOf"))),pN=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"anyOf"))),pj=pz(pD("Control"),pT(t=>Object.prototype.hasOwnProperty.call(t,"oneOf"))),pY=pz(pD("Control"),pT(t=>!!t&&"object"==typeof t&&(Object.prototype.hasOwnProperty.call(t,"enum")||Object.prototype.hasOwnProperty.call(t,"const")))),pH=pz(pD("Control"),pT(t=>uH(t))),pV=pz(pD("Control"),pS("integer")),pU=pz(pD("Control"),pS("number")),pW=pz(pD("Control"),pS("string"));pz(pD("Control"),pI("multi",!0));let pq=pz(pD("Control"),pO(pL("date"),pI("format","date"))),pG=pz(pD("Control"),pO(pL("time"),pI("format","time"))),pK=pz(pD("Control"),pO(pL("date-time"),pI("format","date-time"))),pX=pz(pT((t,n)=>uV(t,"array")&&!Array.isArray(uz(t,"items",n))),pA("items",(t,n)=>uV(t.$ref?uz(n,t.$ref,n):t,"object")));pz(pD("Control"),pX),pz(pD("Control"),pT((t,n)=>0!==uU(t).length&&!Array.isArray(uz(t,"items",n))),pA("items",(t,n)=>{let i=uU(t.$ref?uz(n,t.$ref,n):t);return 1===i.length&&ut()(["integer","number","boolean","string"],i[0])})),pz(pD("Control"),pO(pS("number"),pS("integer")),pT(t=>Object.prototype.hasOwnProperty.call(t,"maximum")&&Object.prototype.hasOwnProperty.call(t,"minimum")&&Object.prototype.hasOwnProperty.call(t,"default")),pI("slider",!0)),pz(pD("Control"),pS("integer"),pI("format",!0));let pZ=(t,n,i,r,o="VerticalLayout",a,s)=>{if(a&&a.options&&a.options.detail){if("string"==typeof a.options.detail){if("GENERATE"===a.options.detail.toUpperCase())return"function"==typeof o?o():uQ(n,o,void 0,s)}else if("object"==typeof a.options.detail&&a.options.detail.type&&"string"==typeof a.options.detail.type)return a.options.detail}let l=((n,i,r)=>{let o=ux()(t,t=>t.tester(n,i,r));if(void 0!==o&&-1!==o.tester(n,i,r))return o.uischema})(n,i,r);return void 0===l?"function"==typeof o?o():uQ(n,o,"#",s):l},pJ=t=>p1(h3()(t,"jsonforms.core")),pQ=t=>p2(h3()(t,"jsonforms.core")),p0=t=>p3(h3()(t,"jsonforms.core")),p1=t=>h3()(t,"data"),p2=t=>h3()(t,"schema"),p3=t=>h3()(t,"ajv"),p5=(t,n,i,r,o,a)=>!t?.jsonforms?.readonly&&(i&&i.rule&&(i.rule.effect===k.ENABLE||i.rule.effect===k.DISABLE)?((t,n,i,r)=>{if(t.rule){let o=uN(t,n,i,r);switch(t.rule.effect){case k.DISABLE:return!o;case k.ENABLE:return o}}return!0})(i,o,n?.path,p0(t)):"boolean"==typeof i?.options?.readonly?!i.options.readonly:"boolean"==typeof i?.options?.readOnly?!i.options.readOnly:"boolean"==typeof a?.readonly?!a.readonly:"boolean"==typeof a?.readOnly?!a.readOnly:r?.readOnly!==!0&&("boolean"!=typeof n?.enabled||n.enabled)),p4=(t,n,i)=>{let r=n+i;if(r<0||r>=t.length)return;let o=[n,r].sort((t,n)=>t-n);t.splice(o[0],2,t[o[1]],t[o[0]])},p6=(t,n,i)=>`${t??""}${n&&!i?"*":""}`,p8=(t,n)=>{let i=p7(t,n);return void 0===i?{}:i},p7=(t,n)=>{let i="string"==typeof t.$ref?uz(n,t.$ref,n):t;if(void 0!==i.default)return me(i,n);if(uV(i,"string"))return"date-time"===i.format||"date"===i.format||"time"===i.format?((t,n)=>{let i=t.toISOString();if("date-time"===n);else if("date"===n)return i.split("T")[0];else if("time"===n)return i.split("T")[1].split(".")[0];return i})(new Date,i.format):"";if(uV(i,"integer")||uV(i,"number"))return 0;if(uV(i,"boolean"))return!1;if(uV(i,"array"))return[];if(uV(i,"object"))return me(i,n);if(uV(i,"null"))return null;for(let i of["oneOf","anyOf","allOf"])if(t[i]&&Array.isArray(t[i])){let r=p9(t[i],n);if(void 0!==r)return r}},p9=(t,n)=>{if(t.length>0)for(let i of t){let t=p7(i,n);if(void 0!==t)return t}},me=(t,n)=>{if(uV(t,"object")&&void 0===t.default){let i={};for(let r in t.properties){let o=t.properties[r],a=o.$ref?uz(n,o.$ref,n):o;a&&void 0!==a.default&&(i[r]=up()(a.default))}return t.allOf&&Array.isArray(t.allOf)&&t.allOf.forEach(t=>{if(t&&t.properties)for(let r in t.properties){let o=t.properties[r],a=o.$ref?uz(n,o.$ref,n):o;a&&void 0!==a.default&&(i[r]=up()(a.default))}}),i}return up()(t.default)},mt=(t,n)=>{var i,r,o,a,s,l;let c,d,h,u,{uischema:p}=n,m=pJ(t),f=uR(p,n.path),g=void 0===n.visible||uj(p)?uY(p,m,n.path,p0(t)):n.visible,b=n.id,v=pQ(t),_=void 0!==p.scope&&(i=n.schema,r=p.scope,h=uS((d=r.split("/"))[d.length-1]),void 0!==(u=uz(i,d.slice(0,d.length-2).join("/"),v))&&void 0!==u.required&&-1!==u.required.indexOf(h)),y=uz(n.schema||v,p.scope,v),x=(t=>{let n;return(n=t=>t===f,t=>{let i=t.errors??[],r=t.additionalErrors??[];return(t=>{let i=us()(t,t=>"oneOf"===t.keyword||"anyOf"===t.keyword).map(t=>uG(t));return us()(t,t=>{let r;if(-1!==uK.indexOf(t.keyword)&&!uH(t.parentSchema))return!1;let o=n(uG(t)),a=t.parentSchema;return!o||(r=a,r?.type==="object"||r?.properties)||uH(a)||-1===i.findIndex(t=>f.startsWith(t))||(o=o&&uc()(a,y)),o})})("ValidateAndHide"===t.validationMode?r:[...i,...r])})(t.jsonforms.core)})(t),w=void 0!==y?y.description:"",k=uI(m,f),M=(o=p,a=y,"boolean"==typeof(c=o.label)?uD(uL(o,a),c):"string"==typeof c?uD(c,!0):"object"==typeof c?uD("string"==typeof c.text?c.text:uL(o,a),"boolean"!=typeof c.show||c.show):uD(uL(o,a),!0)),F=M.show?M.text:"",E=t.jsonforms.config,C=p5(t,n,p,y||v,m,E),T=y??v,A=pE()(t),S=(s=t,void 0===(l=h3()(s,"jsonforms.i18n"))?pF:l.translateError),L=pw(T,p,f),D=A(pk(T,p,f,"label"),F,{schema:T,uischema:p,path:f,errors:x});return{data:k,description:A(pk(T,p,f,"description"),w,{schema:T,uischema:p,path:f,errors:x}),errors:((t,n,i,r,o,a)=>{var s;if(t.length>0&&i){let n=i(pk(r,o,a,"error.custom"),void 0,{schema:r,uischema:o,path:a,errors:t});if(void 0!==n)return n}return null==(s=t.map(t=>n(t,i,o)))?"":s.join("\n")})(x,S,A,T,p,f),label:D,visible:g,enabled:C,id:b,path:f,required:_,uischema:p,schema:T,config:t.jsonforms.config,cells:n.cells||t.jsonforms.cells,rootSchema:v,i18nKeyPrefix:L}},mn=t=>({handleChange(n,i){t(pd(n,()=>i))}}),mi=(t,n)=>{let{...i}=mt(t,n);return{...i,uischemas:t.jsonforms.uischemas}},mr={visible:!0,enabled:!0,path:"",direction:"column"};({...mr,errors:[]});var mo=o(76674),ma=o.n(mo);o(4452),o(48833),o(25505);var ms=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 ml extends CustomEvent{constructor(t,n){super(ml.NAME,{bubbles:!0,composed:!0,detail:{value:t,valid:n}})}}ml.NAME="or-ace-editor-changed";class mc extends CustomEvent{constructor(){super(mc.NAME,{bubbles:!0,composed:!0})}}mc.NAME="or-ace-editor-edit";let md=class extends eN{constructor(){super(...arguments),this.mode="ace/mode/json",this._lastValue="",this._editing=!1}static get styles(){return R`
|
|
1271
1271
|
:host {
|
|
1272
1272
|
display: block;
|
|
1273
1273
|
width: 100%;
|