@openremote/or-gauge 1.32.0 → 1.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var ORGauge;(()=>{var e={3260(e){"use strict";let t=(async function(){}).constru
7
7
  font-weight: 600;
8
8
  line-height: 125.303%;
9
9
  }
10
- `;class nM extends ny{static finalizeStyles(e){return[nv,...super.finalizeStyles(e)]}}let nw=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nD={attribute:!0,type:String,converter:tz,reflect:!1,hasChanged:t$};function nL(e){return(t,n)=>{let o;return"object"==typeof n?((e=nD,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}function nE(e){return nL({...e,state:!0,attribute:!1})}let nA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nT(e,t){return(n,o,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof o?n:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return nA(n,o,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&a.call(this,e),e}})}return nA(n,o,{get(){return i(this)}})}}(m=eM||(eM={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",m.DELETE_FINISHED="DELETE_FINISHED",(u=ew||(ew={})).LOW="LOW",u.MEDIUM="MEDIUM",u.HIGH="HIGH",(f=eD||(eD={})).MANUAL="MANUAL",f.CLIENT="CLIENT",f.GLOBAL_RULESET="GLOBAL_RULESET",f.REALM_RULESET="REALM_RULESET",f.ASSET_RULESET="ASSET_RULESET",f.AGENT="AGENT",(b=eL||(eL={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(h=eE||(eE={})).BOTTOM_LEFT="BOTTOM_LEFT",h.BOTTOM_RIGHT="BOTTOM_RIGHT",h.TOP_LEFT="TOP_LEFT",h.TOP_RIGHT="TOP_RIGHT",(p=eA||(eA={})).CREATE="CREATE",p.READ="READ",p.UPDATE="UPDATE",p.DELETE="DELETE",(F=eT||(eT={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(_=eS||(eS={})).DISCONNECTED="DISCONNECTED",_.CONNECTING="CONNECTING",_.DISCONNECTING="DISCONNECTING",_.CONNECTED="CONNECTED",_.DISABLED="DISABLED",_.WAITING="WAITING",_.ERROR="ERROR",_.STOPPED="STOPPED",(g=eC||(eC={})).REQUEST_START="REQUEST_START",g.REQUEST_REPEATING="REQUEST_REPEATING",g.REQUEST_CANCEL="REQUEST_CANCEL",g.READY="READY",g.COMPLETED="COMPLETED",g.RUNNING="RUNNING",g.CANCELLED="CANCELLED",(y=eY||(eY={})).TOGGLE="TOGGLE",y.INCREMENT="INCREMENT",y.DECREMENT="DECREMENT",y.NEGATE="NEGATE",(k=ex||(ex={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",k.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",k.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",k.INVALID_VALUE="INVALID_VALUE",k.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",k.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",k.CANNOT_PROCESS="CANNOT_PROCESS",k.QUEUE_FULL="QUEUE_FULL",k.UNKNOWN="UNKNOWN",k.ASSET_ID_MISSING="ASSET_ID_MISSING",k.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(v=eO||(eO={})).PUBLIC="PUBLIC",v.SHARED="SHARED",v.PRIVATE="PRIVATE",(M=eB||(eB={})).OFF="OFF",M.ONE_MIN="ONE_MIN",M.FIVE_MIN="FIVE_MIN",M.QUARTER="QUARTER",M.ONE_HOUR="ONE_HOUR",(w=eR||(eR={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",w.KEEP_LAYOUT="KEEP_LAYOUT",w.REDIRECT="REDIRECT",w.BLOCK_DEVICE="BLOCK_DEVICE",(D=eP||(eP={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(L=ej||(ej={})).MINUTE="MINUTE",L.HOUR="HOUR",L.DAY="DAY",L.WEEK="WEEK",L.MONTH="MONTH",L.YEAR="YEAR",(E=eN||(eN={})).MIN="MIN",E.AVG="AVG",E.MAX="MAX",E.DIFFERENCE="DIFFERENCE",E.COUNT="COUNT",E.SUM="SUM",E.MODE="MODE",E.MEDIAN="MEDIAN",(A=eI||(eI={})).TERMINATING="TERMINATING",A.DISABLED="DISABLED",A.ALREADY_CONNECTED="ALREADY_CONNECTED",A.UNRECOGNISED="UNRECOGNISED",A.PERMANENT_ERROR="PERMANENT_ERROR",A.SYNC_ERROR="SYNC_ERROR",(T=eH||(eH={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eU||(eU={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(C=eW||(eW={})).KEYCLOAK="KEYCLOAK",C.NONE="NONE",(Y=ez||(ez={})).WEBSOCKET="WEBSOCKET",Y.POLLING="POLLING",(x=e$||(e$={})).INTERNAL="INTERNAL",x.CLIENT="CLIENT",x.GLOBAL_RULESET="GLOBAL_RULESET",x.REALM_RULESET="REALM_RULESET",x.ASSET_RULESET="ASSET_RULESET",(O=eG||(eG={})).REALM="REALM",O.USER="USER",O.ASSET="ASSET",O.CUSTOM="CUSTOM",(B=eq||(eq={})).NORMAL="NORMAL",B.HIGH="HIGH",(R=eV||(eV={})).DEVICE="DEVICE",R.TOPIC="TOPIC",R.CONDITION="CONDITION",(P=eJ||(eJ={})).ALWAYS="ALWAYS",P.ONCE="ONCE",P.HOURLY="HOURLY",P.DAILY="DAILY",P.WEEKLY="WEEKLY",P.MONTHLY="MONTHLY",P.ANNUALLY="ANNUALLY",(j=eK||(eK={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(N=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",N.CERTIFICATE_INVALID="CERTIFICATE_INVALID",N.UNAUTHORIZED="UNAUTHORIZED",N.FORBIDDEN="FORBIDDEN",N.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",N.CONFIG_DISABLED="CONFIG_DISABLED",N.USER_DISABLED="USER_DISABLED",N.SERVER_ERROR="SERVER_ERROR",N.ASSET_ERROR="ASSET_ERROR",N.SERVER_BUSY="SERVER_BUSY",(I=eQ||(eQ={})).PRIVATE="PRIVATE",I.PROTECTED="PROTECTED",I.PUBLIC="PUBLIC",(H=eZ||(eZ={})).EXACT="EXACT",H.BEGIN="BEGIN",H.END="END",H.CONTAINS="CONTAINS",(U=e0||(e0={})).EQUALS="EQUALS",U.GREATER_THAN="GREATER_THAN",U.GREATER_EQUALS="GREATER_EQUALS",U.LESS_THAN="LESS_THAN",U.LESS_EQUALS="LESS_EQUALS",U.BETWEEN="BETWEEN",(W=e1||(e1={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(z=e2||(e2={})).RESTRICTED="RESTRICTED",z.LINKED="LINKED",z.REALM="REALM",(G=e4||(e4={})).AT_LEAST_ONE="AT_LEAST_ONE",G.ALL="ALL",G.NONE="NONE",(q=e3||(e3={})).AND="AND",q.OR="OR",(V=e6||(e6={})).CREATED_ON="CREATED_ON",V.FIRST_NAME="FIRST_NAME",V.LAST_NAME="LAST_NAME",V.USERNAME="USERNAME",V.EMAIL="EMAIL",(J=e5||(e5={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(K=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",K.GROOVY="GROOVY",K.JSON="JSON",K.FLOW="FLOW",(X=e7||(e7={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e9||(e9={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=tn||(tn={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(en=to||(to={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(eo=tr||(tr={})).ADD="ADD",eo.ADD_OR_REPLACE="ADD_OR_REPLACE",eo.REPLACE="REPLACE",eo.DELETE="DELETE",eo.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=ta||(ta={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.READ_TUNNELS="read:tunnels",ei.WRITE_SERVICES="write:services",ei.WRITE_USER="write:user",ei.WRITE_ADMIN="write:admin",ei.WRITE_LOGS="write:logs",ei.WRITE_ASSETS="write:assets",ei.WRITE_ATTRIBUTES="write:attributes",ei.WRITE_RULES="write:rules",ei.WRITE_INSIGHTS="write:insights",ei.WRITE_ALARMS="write:alarms",ei.WRITE_NOTIFICATIONS="write:notifications",ei.WRITE_TUNNELS="write:tunnels",ei.READ="read",ei.WRITE="write",(ea=ts||(ts={})).REGISTER="REGISTER",ea.UPDATE="UPDATE",ea.DEREGISTER="DEREGISTER",(es=td||(td={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(ed=tc||(tc={})).ASSET="ASSET",ed.AGENT="AGENT",ed.NOTIFICATION="NOTIFICATION",ed.ALARM="ALARM",ed.RULES="RULES",ed.PROTOCOL="PROTOCOL",ed.GATEWAY="GATEWAY",ed.MODEL_AND_VALUES="MODEL_AND_VALUES",ed.API="API",ed.DATA="DATA",(ec=tl||(tl={})).INFO="INFO",ec.WARN="WARN",ec.ERROR="ERROR",(el=tm||(tm={})).NUMERIC="numeric",el.DIGIT_2="2-digit",el.FULL="full",el.LONG="long",el.MEDIUM="medium",el.SHORT="short",el.NARROW="narrow",(em=tu||(tu={})).SECONDLY="SECONDLY",em.MINUTELY="MINUTELY",em.HOURLY="HOURLY",em.DAILY="DAILY",em.WEEKLY="WEEKLY",em.MONTHLY="MONTHLY",em.YEARLY="YEARLY",(eu=tf||(tf={})).OMIT="OMIT",eu.BACKWARD="BACKWARD",eu.FORWARD="FORWARD",(ef=tb||(tb={})).JAPANESE="JAPANESE",ef.BUDDHIST="BUDDHIST",ef.ROC="ROC",ef.ISLAMIC="ISLAMIC",ef.ISO8601="ISO8601",ef.CHINESE="CHINESE",ef.ETHIOPIC="ETHIOPIC",ef.HEBREW="HEBREW",ef.GREGORIAN="GREGORIAN",(eb=th||(th={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eh=tp||(tp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eh.MAILAGENT="MailAgent",eh.UDPAGENT="UDPAgent",eh.ROOMASSET="RoomAsset",eh.CITYASSET="CityAsset",eh.VENTILATIONASSET="VentilationAsset",eh.TRADFRILIGHTASSET="TradfriLightAsset",eh.CONSOLEASSET="ConsoleAsset",eh.PRESENCESENSORASSET="PresenceSensorAsset",eh.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eh.LIGHTASSET="LightAsset",eh.KNXAGENT="KNXAgent",eh.THETHINGSSTACKAGENT="TheThingsStackAgent",eh.PLUGASSET="PlugAsset",eh.CHIRPSTACKAGENT="ChirpStackAgent",eh.WEATHERASSET="WeatherAsset",eh.THINGASSET="ThingAsset",eh.WEBSOCKETAGENT="WebsocketAgent",eh.TCPAGENT="TCPAgent",eh.GATEWAYASSET="GatewayAsset",eh.SERIALAGENT="SerialAgent",eh.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eh.PARKINGASSET="ParkingAsset",eh.TRADFRIPLUGASSET="TradfriPlugAsset",eh.SIMULATORAGENT="SimulatorAgent",eh.SNMPAGENT="SNMPAgent",eh.GROUPASSET="GroupAsset",eh.BUILDINGASSET="BuildingAsset",eh.MODBUSSERIALAGENT="ModbusSerialAgent",eh.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eh.MQTTAGENT="MQTTAgent",eh.VELBUSTCPAGENT="VelbusTCPAgent",eh.ARTNETLIGHTASSET="ArtnetLightAsset",eh.VELBUSSERIALAGENT="VelbusSerialAgent",eh.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eh.MICROPHONEASSET="MicrophoneAsset",eh.MODBUSTCPAGENT="ModbusTcpAgent",eh.ZWAVEAGENT="ZWaveAgent",eh.HTTPAGENT="HTTPAgent",eh.DOORASSET="DoorAsset",eh.THERMOSTATASSET="ThermostatAsset",eh.SHIPASSET="ShipAsset",(ep=tF||(tF={})).COLOURRGB="colourRGB",ep.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",ep.PRICEHOURLY="priceHourly",ep.MQTTPORT="MQTTPort",ep.PINGDISABLED="pingDisabled",ep.FLOW="flow",ep.CHILDASSETTYPE="childAssetType",ep.LASTACCESS="lastAccess",ep.POSITION="position",ep.NETWORKKEY="networkKey",ep.UNIVERSE="universe",ep.ROUTINGMODE="routingMode",ep.MSSINUMBER="MSSINumber",ep.LASTWILLRETAIN="lastWillRetain",ep.LASTWILLTOPIC="lastWillTopic",ep.SERIALBAUDRATE="serialBaudrate",ep.SUBSCRIBEQOS="subscribeQos",ep.LEDCOUNT="lEDCount",ep.LOCKED="locked",ep.CLOUDCOVERAGE="cloudCoverage",ep.BASEURL="baseURL",ep.PROTOCOL="protocol",ep.REQUIREDVALUES="requiredValues",ep.REGION="region",ep.CONSOLEPLATFORM="consolePlatform",ep.GATEWAYSTATUS="gatewayStatus",ep.NO2LEVEL="NO2Level",ep.ATMOSPHERICPRESSURE="atmosphericPressure",ep.SERIALPORT="serialPort",ep.APPLICATIONID="applicationId",ep.TAGS="tags",ep.UNLOCK="unlock",ep.CHECKINTERVALSECONDS="checkIntervalSeconds",ep.LOCATION="location",ep.CLIENTSECRET="clientSecret",ep.WINDDIRECTION="windDirection",ep.WINDSPEED="windSpeed",ep.PARTICLESPM10="particlesPM10",ep.APPLICATIONKEY="applicationKey",ep.LENGTH="length",ep.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",ep.USERNAMEPASSWORD="usernamePassword",ep.WATERLEVEL="waterLevel",ep.CONNECTHEADERS="connectHeaders",ep.CONSOLENAME="consoleName",ep.WEBSOCKETQUERY="websocketQuery",ep.PREFERHTML="preferHTML",ep.PARITY="parity",ep.COOLING="cooling",ep.POLLINGMILLIS="pollingMillis",ep.SOILTEMPERATURE="soilTemperature",ep.SUNIRRADIANCE="sunIrradiance",ep.MESSAGEMAXLENGTH="messageMaxLength",ep.WINDGUSTSPEED="windGustSpeed",ep.LIGHTID="lightId",ep.PROXYADDRESS="proxyAddress",ep.REQUESTQUERYPARAMETERS="requestQueryParameters",ep.MQTTHOST="MQTTHost",ep.SECUREGRPC="secureGRPC",ep.MODEL="model",ep.STREET="street",ep.MANUFACTURER="manufacturer",ep.DELETEPROCESSEDMAIL="deleteProcessedMail",ep.RESUMESESSION="resumeSession",ep.ONOFF="onOff",ep.APIKEY="ApiKey",ep.CITY="city",ep.PRESENCE="presence",ep.SPACESOCCUPIED="spacesOccupied",ep.STARTTLS="startTLS",ep.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",ep.WEBSOCKETPATH="websocketPath",ep.AGENTSTATUS="agentStatus",ep.PRICEDAILY="priceDaily",ep.COUNTGROWTHMINUTE="countGrowthMinute",ep.IMONUMBER="IMONumber",ep.ATTRIBUTION="Attribution",ep.TENANTID="tenantId",ep.REQUESTHEADERS="requestHeaders",ep.HOST="host",ep.COUNTOUTMINUTE="countOutMinute",ep.MESSAGECHARSET="messageCharset",ep.CERTIFICATEALIAS="certificateAlias",ep.EMAIL="email",ep.BINDPORT="bindPort",ep.CONSOLEVERSION="consoleVersion",ep.PARTICLESPM1="particlesPM1",ep.MTU="mtu",ep.SPEED="speed",ep.MESSAGESTRIPDELIMITER="messageStripDelimiter",ep.AREA="area",ep.COUNTRY="country",ep.SHIPTYPE="shipType",ep.CONNECTSUBSCRIPTIONS="connectSubscriptions",ep.RELATIVEHUMIDITY="relativeHumidity",ep.SOURCEADDRESS="sourceAddress",ep.RAINFALL="rainfall",ep.OAUTHGRANT="oAuthGrant",ep.OZONELEVEL="ozoneLevel",ep.SEQUENCENUMBER="sequenceNumber",ep.COUNTINMINUTE="countInMinute",ep.PORT="port",ep.SUNALTITUDE="sunAltitude",ep.COUNTOUT="countOut",ep.ROOMNUMBER="roomNumber",ep.TUNNELINGSUPPORTED="tunnelingSupported",ep.ENINUMBER="ENINumber",ep.PARTICLESPM2_5="particlesPM2_5",ep.AGENTDISABLED="agentDisabled",ep.DISABLED="disabled",ep.COUNTIN="countIn",ep.MESSAGESOURCEADDRESS="messageSourceAddress",ep.PROVISIONWEATHERASSET="ProvisionWeatherAsset",ep.TIMEINJECTIONINTERVAL="timeInjectionInterval",ep.TEMPERATURESETPOINT="temperatureSetpoint",ep.CONSOLEPROVIDERS="consoleProviders",ep.COUNTTOTAL="countTotal",ep.SPACESBUFFER="spacesBuffer",ep.DEVICECONFIG="deviceConfig",ep.SPACESTOTAL="spacesTotal",ep.BINDHOST="bindHost",ep.FANSPEED="fanSpeed",ep.MESSAGECONVERTBINARY="messageConvertBinary",ep.NOTES="notes",ep.MAILFOLDERNAME="mailFolderName",ep.MESSAGEDELIMITERS="messageDelimiters",ep.TEMPERATURE="temperature",ep.SUNZENITH="sunZenith",ep.SNMPVERSIONVALUE="SNMPVersionValue",ep.BRIGHTNESS="brightness",ep.POSTALCODE="postalCode",ep.SPACESOPEN="spacesOpen",ep.HUMIDITY="humidity",ep.SOUNDLEVEL="soundLevel",ep.SECUREMODE="secureMode",ep.DIRECTION="direction",ep.STOPBITS="stopbits",ep.UVINDEX="uVIndex",ep.CONNECTURL="connectURL",ep.CLIENTID="clientId",ep.NATMODE="NATMode",ep.UPDATEONWRITE="updateOnWrite",ep.LASTWILLPAYLOAD="lastWillPayload",ep.GROUPID="groupId",ep.FOLLOWREDIRECTS="followRedirects",ep.SUNAZIMUTH="sunAzimuth",ep.MESSAGECONVERTHEX="messageConvertHex",ep.WEBSOCKETMODE="websocketMode",ep.COLOURTEMPERATURE="colourTemperature",ep.PUBLISHQOS="publishQos",ep.DATABITS="dataBits",(eF=t_||(t_={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(e_=tg||(tg={})).ASSETQUERY="assetQuery",e_.WSURL="WS_URL",e_.COLOURRGB="colourRGB",e_.VALUEFORMAT="valueFormat",e_.TEXT="text",e_.BYTE="byte",e_.USERNAMEANDPASSWORD="usernameAndPassword",e_.HTTPURL="HTTP_URL",e_.ATTRIBUTELINK="attributeLink",e_.ASSETID="assetID",e_.NUMBERMAP="numberMap",e_.HTTPMETHOD="HTTPMethod",e_.ATTRIBUTESTATE="attributeState",e_.POSITIVENUMBER="positiveNumber",e_.POSITIVEINTEGER="positiveInteger",e_.EXECUTIONSTATUS="executionStatus",e_.BIGINTEGER="bigInteger",e_.VALUEDESCRIPTOR="valueDescriptor",e_.PERIODDURATIONISO8601="periodDurationISO8601",e_.LONG="long",e_.DATEANDTIME="dateAndTime",e_.BOOLEANMAP="booleanMap",e_.MQTTQOS="MQTTQos",e_.NEGATIVEINTEGER="negativeInteger",e_.TCPIPPORTNUMBER="TCP_IPPortNumber",e_.GEOJSONPOINT="GEO_JSONPoint",e_.SNMPVERSION="SNMPVersion",e_.ASSETTYPE="assetType",e_.JSONOBJECT="JSONObject",e_.INTEGERMAP="integerMap",e_.BIGNUMBER="bigNumber",e_.IPADDRESS="IPAddress",e_.EMAIL="email",e_.TIMESTAMP="timestamp",e_.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",e_.ATTRIBUTEREFERENCE="attributeReference",e_.UUID="UUID",e_.INTEGER="integer",e_.OAUTHGRANT="oAuthGrant",e_.NUMBER="number",e_.DEVICECONFIGMAP="DeviceConfigMap",e_.TEXTMAP="textMap",e_.WEBSOCKETSUBSCRIPTION="websocketSubscription",e_.BOOLEAN="boolean",e_.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",e_.FORECASTCONFIGURATION="forecastConfiguration",e_.TIMEDURATIONISO8601="timeDurationISO8601",e_.TIMESTAMPISO8601="timestampISO8601",e_.CONSOLEPROVIDERS="consoleProviders",e_.MULTIVALUEDTEXTMAP="multivaluedTextMap",e_.NEGATIVENUMBER="negativeNumber",e_.PARITYBIT="Paritybit",e_.JSON="JSON",e_.CRONEXPRESSION="CRONExpression",e_.INTEGERBYTE="integerByte",e_.AGENTLINK="agentLink",e_.DIRECTION="direction",e_.HOSTORIPADDRESS="hostOrIPAddress",e_.STOPBITS="Stopbits",e_.CALENDAREVENT="calendarEvent",e_.CONNECTIONSTATUS="connectionStatus",e_.VALUECONSTRAINT="valueConstraint",(eg=ty||(ty={})).MONTH="month",eg.MILE_SCANDINAVIAN="mile_scandinavian",eg.VAR="var",eg.OUNCE="ounce",eg.HECTARE="hectare",eg.YARD="yard",eg.YEAR="year",eg.GIGA="giga",eg.JOULE="joule",eg.VOLT="volt",eg.HERTZ="hertz",eg.MILE="mile",eg.DEGREE="degree",eg.KILO="kilo",eg.BTU="btu",eg.TERA="tera",eg.FOOT="foot",eg.MEGA="mega",eg.KELVIN="kelvin",eg.CARBON="carbon",eg.DECIBEL_ATTENUATED="decibel_attenuated",eg.INCH="inch",eg.SQUARED="squared",eg.PERCENTAGE="percentage",eg.IN_HG="inch_mercury",eg.CENTI="centi",eg.GRAM="gram",eg.CUBED="cubed",eg.DAY="day",eg.RADIAN="radian",eg.OHM="ohm",eg.MINUTE="minute",eg.PART_PER_MILLION="ppm",eg.AMP="amp",eg.MASS_POUND="pound",eg.KNOT="knot",eg.METRE="metre",eg.LITRE="litre",eg.FLUID_OUNCE="fluid_ounce",eg.HOUR="hour",eg.ACRE="acre",eg.CELSIUS="celsius",eg.RPM="rpm",eg.PASCAL="pascal",eg.DECIBEL="decibel",eg.LUMEN="lumen",eg.WEEK="week",eg.FAHRENHEIT="fahrenheit",eg.WATT="watt",eg.GALLON="gallon",eg.LUX="lux",eg.MILLI="milli",eg.BAR="bar",eg.HECTO="hecto",eg.PEAK="peak",eg.SECOND="second",eg.MICRO="micro",eg.PER="per",eg.STONE="stone",tk||(tk={});class nS{static getAssetDescriptors(){return nS._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nS.getValueDescriptor(t)),n=t.jsonType?t:nS.getValueDescriptor(t.type)),!n&&e&&(n=nS.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nS._assetTypeInfos=[],nS._metaItemDescriptors=[],nS._valueDescriptors=[];var nC=n(1001);n(4532);let nY=e=>"string"==typeof e,nx=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},nO=e=>null==e?"":String(e),nB=/###/g,nR=e=>e&&e.includes("###")?e.replace(nB,"."):e,nP=e=>!e||nY(e),nj=(e,t,n)=>{let o=nY(t)?t.split("."):t,r=0;for(;r<o.length-1;){if(nP(e))return{};let t=nR(o[r]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return nP(e)?{}:{obj:e,k:nR(o[r])}},nN=(e,t,n)=>{let{obj:o,k:r}=nj(e,t,Object);if(void 0!==o||1===t.length){o[r]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=nj(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,s=nj(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},nI=(e,t)=>{let{obj:n,k:o}=nj(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},nH=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?nY(e[o])||e[o]instanceof String||nY(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):nH(e[o],t[o],n):e[o]=t[o]);return e},nU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nW=e=>nY(e)?e.replace(/[&<>"'\/]/g,e=>nU[e]):e,nz=[" ",",","?","!",";"],n$=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),nG=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),r=e;for(let e=0;e<o.length;){let t;if(!r||"object"!=typeof r)return;let i="";for(let a=e;a<o.length;++a)if(a!==e&&(i+=n),i+=o[a],void 0!==(t=r[i])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}r=t}return r},nq=e=>e?.replace(/_/g,"-"),nV={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var nJ=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||nV,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>nY(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),nY(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class nK{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(e,...t)})}}class nX extends nK{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,o={}){let r,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):nY(n)&&i?r.push(...n.split(i)):r.push(n)));let s=nI(this.data,r);return(!s&&!t&&!n&&e.includes(".")&&(e=r[0],t=r[1],n=r.slice(2).join(".")),!s&&a&&nY(n))?nG(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,o,r={silent:!1}){let i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nN(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(nY(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,r,i={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=nI(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?nH(s,n,r):s={...s,...n},nN(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var nQ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,r){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,r)??t}),t}};let nZ=Symbol("i18next/PATH_KEY");function n0(e,t){let n,o,r,{[nZ]:i}=e((o=[],(r=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===nZ)?o:(o.push(t),(n=Proxy.revocable(e,r)).proxy),Proxy.revocable(Object.create(null),r).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(i.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(i[0]))return`${i[0]}${s}${i.slice(1).join(a)}`}return i.join(a)}let n1=e=>!nY(e)&&"boolean"!=typeof e&&"number"!=typeof e;class n2 extends nK{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=nJ.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let r=n1(o.res);return!1!==n.returnObjects||!r}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=nz.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let r=n$.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),i=!r.test(e);if(!i){let t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(i=!0)}return i})(e,n,o);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:nY(r)?[r]:r};let i=e.split(n);(n!==o||n===o&&this.options.ns.includes(i[0]))&&(r=i.shift()),e=i.join(o)}return{key:e,namespaces:nY(r)?[r]:r}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=n0(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?n0(e,{...this.options,...o}):String(e));let r=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],c=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let l=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?r?{res:`${d}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,b=u?.usedKey||a,h=u?.exactUsedKey||a,p=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==o.count&&!nY(o.count),g=n2.hasDefaultValue(o),y=_?this.pluralResolver.getSuffix(l,o.count,o):"",k=o.ordinal&&_?this.pluralResolver.getSuffix(l,o.count,{ordinal:!1}):"",v=_&&!o.ordinal&&0===o.count,M=v&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${y}`]||o[`defaultValue${k}`]||o.defaultValue,w=f;F&&!f&&g&&(w=M);let D=n1(w),L=Object.prototype.toString.apply(w);if(F&&w&&D&&!["[object Number]","[object Function]","[object RegExp]"].includes(L)&&!(nY(p)&&Array.isArray(w))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,w,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(i){let e=Array.isArray(w),t=e?[]:{},n=e?h:b;for(let e in w)if(Object.prototype.hasOwnProperty.call(w,e)){let r=`${n}${i}${e}`;g&&!f?t[e]=this.translate(r,{...o,defaultValue:n1(M)?M[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(r,{...o,joinArrays:!1,ns:s}),t[e]===r&&(t[e]=w[e])}f=t}}else if(F&&nY(p)&&Array.isArray(f))(f=f.join(p))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,r=!1;!this.isValidLookup(f)&&g&&(t=!0,f=M),this.isValidLookup(f)||(r=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:f,m=g&&M!==f&&this.options.updateMissing;if(r||t||m){if(this.logger.log(m?"updateKey":"missingKey",l,d,_&&!m?`${a}${this.pluralResolver.getSuffix(l,o.count,o)}`:a,m?M:f),i){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let r=g&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,r,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,r,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);v&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||M)})}):n(e,a,M))}f=this.extendTranslation(f,e,o,u,n),r&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${c}${a}`),(r||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${c}${a}`:a,t?f:void 0,o))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let i;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=nY(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=n.replace&&!nY(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let i=n.postProcess||this.options.postProcess,a=nY(i)?[i]:i;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=nQ.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,r,i,a;return nY(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?n0(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let l=void 0!==t.count&&!nY(t.count),m=l&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(nY(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;i=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;l&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(t.ordinal&&e.startsWith(r)&&s.push(d+e.replace(r,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),l&&(t.ordinal&&e.startsWith(r)&&s.push(o+e.replace(r,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(r=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:r,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!nY(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class n4{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nJ.create("languageUtils")}getScriptPartFromCode(e){if(!(e=nq(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=nq(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(nY(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!!(e.includes("-")&&!o.includes("-")&&e.slice(0,e.indexOf("-"))===o||e.startsWith(o)&&o.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),nY(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],r=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return nY(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):nY(e)&&r(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||r(this.formatLanguageCode(e))}),o}}let n3={zero:0,one:1,two:2,few:3,many:4,other:5},n6={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class n5{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=nJ.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=nq("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{n=new Intl.PluralRules(o,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),n6;if(!e.match(/-|_/))return n6;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[i]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>n3[e]-n3[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let n8=(e,t,n,o=".",r=!0)=>{let i,a=void 0!==(i=nI(e,n))?i:nI(t,n);return!a&&r&&nY(n)&&void 0===(a=nG(e,n,o))&&(a=nG(t,n,o)),a},n7=e=>e.replace(/\$/g,"$$$$");class n9{constructor(e={}){this.logger=nJ.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:r,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:b,nestingOptionsSeparator:h,maxReplaces:p,alwaysFormat:F}=e.interpolation;this.escape=void 0!==t?t:nW,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):i||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=c?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):b||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=h||",",this.maxReplaces=p||1e3,this.alwaysFormat=void 0!==F&&F,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let r,i,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let r=n8(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),i=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(n8(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;r=t.regex.exec(e);){let n=r[1].trim();if(void 0===(i=d(n)))if("function"==typeof c){let t=c(e,r,o);i=nY(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else if(l){i=r[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i="";else nY(i)||this.useRawValueToEscape||(i=nO(i));let s=t.safeValue(i);if(e=e.replace(r[0],n7(s)),l?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,r,i,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${o[1]}`;e=o[0];let a=(r=this.interpolate(r,i)).match(/'/g),s=r.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${r}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(i=(i={...n}).replace&&!nY(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let d=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==d&&(s=o[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),(r=t(a.call(this,o[1].trim(),i),i))&&o[0]===e&&!nY(r))return r;nY(r)||(r=nO(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),r.trim())),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e}}let oe=e=>{let t={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});let a=o+JSON.stringify(i),s=t[a];return s||(s=e(nq(o),r),t[a]=s),s(n)}},ot=e=>(t,n,o)=>e(nq(n),o)(t);class on{constructor(e={}){this.logger=nJ.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?oe:ot;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=oe(t)}format(e,t,n,o={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),i=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;i.push(t)}return i.reduce((e,t)=>{let{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let r=o[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=r),"false"===r&&(n[i]=!1),"true"===r&&(n[i]=!0),isNaN(r)||(n[i]=parseInt(r,10))}}):n.range||(n.range=r.trim()):n.currency||(n.currency=r.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,s,{...i,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class oo extends nK{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=nJ.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(e,t,n,o){let r={},i={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,o=!1,void 0===i[a]&&(i[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),!t&&n&&this.store.addResourceBundle(r,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:r}=nj(e,t,Object);o[r]=o[r]||[],o[r].push(n)})(n.loaded,[r],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,r=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:i});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*r,i)},r):i(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();nY(e)&&(e=this.languageUtils.toResolveHierarchy(e)),nY(t)&&(t=[t]);let r=this.queueLoad(e,t,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${o} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${r} for language ${o}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,o,r,i={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...i,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let r;(r=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let or=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),nY(e[1])&&(t.defaultValue=e[1]),nY(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),oi=e=>(nY(e.ns)&&(e.ns=[e.ns]),nY(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),nY(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),oa=()=>{};class os extends nK{constructor(e={},t){if(super(),this.options=oi(e),this.services={},this.logger=nJ,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(nY(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=or();this.options={...n,...this.options,...oi(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?nJ.init(o(this.modules.logger),this.options):nJ.init(null,this.options),e=this.modules.formatter?this.modules.formatter:on;let t=new n4(this.options);this.store=new nX(this.options.resources,this.options);let n=this.services;n.logger=nJ,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new n5(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new n9(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new oo(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new n2(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=oa),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let r=nx(),i=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),r}loadResources(e,t=oa){let n=t,o=nY(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=nx();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=oa),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nQ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=nx();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);let n=nY(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(nY(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let r=o?.scopeNs,i=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||i.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let c={...this.options,...a};Array.isArray(r)&&!d&&(c.ns=r),"function"==typeof a.keyPrefix&&(a.keyPrefix=n0(a.keyPrefix,c));let l=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=n0(e,c)),`${a.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=n0(e,c)),s=a.keyPrefix?`${a.keyPrefix}${l}${e}`:e),this.t(s,a)};return nY(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!o||i(r,e)))}loadNamespaces(e,t){let n=nx();return this.options.ns?(nY(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=nx();nY(e)&&(e=[e]);let o=this.options.preload||[],r=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=o.concat(r),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new n4(or());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new os(e,t);return n.createInstance=os.createInstance,n}cloneInstance(e={},t=oa){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},r=new os(o);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new nX(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,o)=>(n[o]={...e[t][o]},n),e[t]),e),{}),o),r.services.resourceStore=r.store),e.interpolation){let t={...or().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};r.services.interpolator=new n9(n)}return r.translator=new n2(r.services,o),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(o,t),r.translator.options=o,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let od=os.createInstance();od.createInstance,od.dir,od.init,od.loadResources,od.reloadResources,od.use,od.changeLanguage,od.getFixedT,od.t,od.exists,od.setDefaultNamespace,od.hasLoadedNamespace,od.loadNamespaces,od.loadLanguages;var oc=n(4867),ol=n.n(oc);n(3472);class om{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}class ou{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>ou._evalValuePredicate(e.name,t)))&&(!this.attributes||ou._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!ou._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?ou._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||ou._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>ou._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>ou._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>ou._collectNames(e))]}}ou._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var of=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let ob=n(4461);class oh{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=oh._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=a9.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return of(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 e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return of(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return of(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return of(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return of(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new om,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>of(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return of(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield a9.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&oh._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return of(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.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 '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.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 t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:ob.name,version:ob.version,platform:ob.os.toString(),apps:[],model:((ob.manufacturer?ob.manufacturer+" ":"")+(ob.product?ob.product:"")).trim()}}_initialiseProvider(e){return of(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function op(e,t){return function(){return e.apply(t,arguments)}}let{toString:oF}=Object.prototype,{getPrototypeOf:o_}=Object,{iterator:og,toStringTag:oy}=Symbol,ok=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ov=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),oM=(e,t,n)=>e===Object.prototype||!n&&null===t,ow=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let r=o_(n);if(oM(n,r,n===e))break;if(ok(n,t))return!0;n=r}return!1},oD=(t=Object.create(null),e=>{let n=oF.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}),oL=e=>(e=e.toLowerCase(),t=>oD(t)===e),oE=e=>t=>typeof t===e,{isArray:oA}=Array,oT=oE("undefined");function oS(e){return null!==e&&!oT(e)&&null!==e.constructor&&!oT(e.constructor)&&ox(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oC=oL("ArrayBuffer"),oY=oE("string"),ox=oE("function"),oO=oE("number"),oB=e=>null!==e&&"object"==typeof e,oR=e=>{if(!oB(e))return!1;let t=o_(e);return(null===t||t===Object.prototype||null===o_(t))&&!ow(e,oy)&&!ow(e,og)},oP=oL("Date"),oj=oL("File"),oN=oL("Blob"),oI=oL("FileList"),oH=oL("Set"),oU="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},oW=void 0!==oU.FormData?oU.FormData:void 0,oz=oL("URLSearchParams"),[o$,oG,oq,oV]=["ReadableStream","Request","Response","Headers"].map(oL);function oJ(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oA(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oS(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function oK(e,t){let n;if(oS(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let oX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,oQ=e=>!oT(e)&&e!==oX,oZ=(r="u">typeof Uint8Array&&o_(Uint8Array),e=>r&&e instanceof r),o0=oL("HTMLFormElement"),{propertyIsEnumerable:o1}=Object.prototype,o2=oL("RegExp"),o4=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};oJ(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},o3=oL("AsyncFunction"),o6=(s="function"==typeof setImmediate,d=ox(oX.postMessage),s?setImmediate:d?(c=`axios@${Math.random()}`,l=[],oX.addEventListener("message",({source:e,data:t})=>{e===oX&&t===c&&l.length&&l.shift()()},!1),e=>{l.push(e),oX.postMessage(c,"*")}):e=>setTimeout(e)),o5="u">typeof queueMicrotask?queueMicrotask.bind(oX):"u">typeof process&&process.nextTick||o6,o8=e=>null!=e&&ox(e[og]),o7={isArray:oA,isArrayBuffer:oC,isBuffer:oS,isFormData:e=>{if(!e)return!1;if(oW&&e instanceof oW)return!0;let t=o_(e);if(!t||t===Object.prototype||!ox(e.append))return!1;let n=oD(e);return"formdata"===n||"object"===n&&ox(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oC(e.buffer)},isString:oY,isNumber:oO,isBoolean:e=>!0===e||!1===e,isObject:oB,isPlainObject:oR,isEmptyObject:e=>{if(!oB(e)||oS(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:o$,isRequest:oG,isResponse:oq,isHeaders:oV,isUndefined:oT,isDate:oP,isFile:oj,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:oN,isRegExp:o2,isFunction:ox,isStream:e=>oB(e)&&ox(e.pipe),isURLSearchParams:oz,isTypedArray:oZ,isFileList:oI,forEach:oJ,merge:function e(...t){let{caseless:n,skipUndefined:o}=oQ(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&oK(r,i)||i,s=ok(r,a)?r[a]:void 0;oR(s)&&oR(t)?r[a]=e(s,t):oR(t)?r[a]=e({},t):oA(t)?r[a]=t.slice():o&&oT(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oS(n)||(oJ(n,i),"object"!=typeof n||oA(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];o1.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(oJ(t,(t,o)=>{n&&ox(t)?Object.defineProperty(e,o,{__proto__:null,value:op(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&o_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oD,kindOfTest:oL,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oA(e))return e;let t=e.length;if(!oO(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[og]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:o0,hasOwnProperty:ok,hasOwnProp:ok,hasOwnInPrototypeChain:ow,getSafeProp:(e,t)=>null!=e&&ow(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=o_(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(ov(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),r=[],i=e;for(;null!=i&&-1===r.indexOf(i);){r.push(i);let a=i===e?t:o_(i);if(oM(i,a,i===e))break;let s=Object.getOwnPropertyNames(i);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i)),s))!ov(t)&&(ok(o,t)||(n[t]=e[t],o[t]=!0));i=a}return n},reduceDescriptors:o4,freezeMethods:e=>{o4(e,(t,n)=>{if(ox(e)&&["arguments","caller","callee"].includes(n))return!1;if(ox(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oA(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:oK,global:oX,isContextDefined:oQ,isSpecCompliantForm:function(e){return!!(e&&ox(e.append)&&"FormData"===e[oy]&&e[og])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(oB(e)){if(t.has(e))return;if(oS(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),oH(e))for(let t of(o=[],e)){let e=n(t);oT(e)||o.push(e)}else o=oA(e)?[]:{},oJ(e,(e,t)=>{let r=n(e);oT(r)||(o[t]=r)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:o3,isThenable:e=>e&&(oB(e)||ox(e))&&ox(e.then)&&ox(e.catch),setImmediate:o6,asap:o5,isIterable:o8,isSafeIterable:e=>null!=e&&ow(e,og)&&o8(e)},o9=o7.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"]),re=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rt=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rn(e,t){return o7.isArray(e)?e.map(e=>rn(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ro(e){let t=Object.create(null);return o7.forEach(e.toJSON(),(e,n)=>{t[n]=rn(e,rt)}),t}let rr=Symbol("internals");function ri(e){return e&&String(e).trim().toLowerCase()}function ra(e){return!1===e||null==e?e:o7.isArray(e)?e.map(ra):rn(String(e),re)}let rs=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rd(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function rc(e,t,n,o,r){if(o7.isFunction(o))return o.call(this,t,n);if(r&&(t=n),o7.isString(t)){if(o7.isString(o))return -1!==t.indexOf(o);if(o7.isRegExp(o))return o.test(t)}}class rl{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=ri(t);if(!r)return;let i=o7.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=ra(e))}let i=(e,t)=>o7.forEach(e,(e,n)=>r(e,n,t));if(o7.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(o7.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim();let t=o7.hasOwnProp(s,n);!n||t&&o7.hasOwnProp(o9,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(o7.isObject(e)&&o7.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!o7.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],o7.hasOwnProp(n,r)?(o=n[r],n[r]=o7.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=ri(e)){let n=o7.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(o7.isFunction(t))return t.call(this,e,n);if(o7.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ri(e)){let n=o7.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rc(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=ri(e)){let r=o7.findKey(n,e);r&&(!t||rc(n,n[r],r,t))&&(delete n[r],o=!0)}}return o7.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rc(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return o7.forEach(this,(o,r)=>{let i=o7.findKey(n,r);if(i){t[i]=ra(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=ra(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return o7.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&o7.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return o7.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,r=!1,i=!1;function a(e){let r=rd(n.slice(o,e)),i=r.indexOf("=");if(i<1)return;let a=rd(r.slice(0,i));if(!rs.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=rd(r.slice(i+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let r=e.charCodeAt(o);if(34===r||92===r&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);r?i?i=!1:92===t?i=!0:34===t&&(r=!1):34===t?r=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rr]=this[rr]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=ri(e);if(!t[o]){let r;r=o7.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return o7.isArray(e)?e.forEach(o):o(e),this}}rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),o7.reduceDescriptors(rl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),o7.freezeMethods(rl);let rm="[REDACTED ****]";function ru(e){try{return String(e)}catch(e){return""}}class rf extends Error{static from(e,t,n,o,r,i){let a=e.message;!a&&o7.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?ru(e.message):ru(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new rf(a,t||e.code,n,o,r);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&o7.hasOwnProp(o,"redact")?o.redact:void 0,i=o7.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||o7.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rl&&(o=o.toJSON()),t.push(o),o7.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);o7.isUndefined(o)||(r[t]=o)});else{if(!o7.isPlainObject(o)&&function(e){if(o7.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(o7.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?rm:n(i);o7.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):o7.toJSONObject(o);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:i,code:this.code,status:this.status}}}rf.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rf.ERR_BAD_OPTION="ERR_BAD_OPTION",rf.ECONNABORTED="ECONNABORTED",rf.ETIMEDOUT="ETIMEDOUT",rf.ECONNREFUSED="ECONNREFUSED",rf.ERR_NETWORK="ERR_NETWORK",rf.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rf.ERR_DEPRECATED="ERR_DEPRECATED",rf.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rf.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rf.ERR_CANCELED="ERR_CANCELED",rf.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rf.ERR_INVALID_URL="ERR_INVALID_URL",rf.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rb=rf;function rh(e){return o7.isPlainObject(e)||o7.isArray(e)}function rp(e){return o7.endsWith(e,"[]")?e.slice(0,-2):e}function rF(e,t,n){return e?e.concat(t).map(function(e,t){return e=rp(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let r_=o7.toFlatObject(o7,{},null,function(e){return/^is[A-Z]/.test(e)}),rg=function(e,t,n){if(!o7.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=o7.getSafeProp(n,e);return o7.isUndefined(o)?t:o},r=o("metaTokens",!0),i=o("visitor")||b,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,c=o("maxDepth",100),l=d&&o7.isSpecCompliantForm(t),m=[];if(!o7.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(o7.isDate(e))return e.toISOString();if(o7.isBoolean(e))return e.toString();if(!l&&o7.isBlob(e))throw new rb("Blob is not supported. Use a Buffer instead.");if(o7.isArrayBuffer(e)||o7.isTypedArray(e)){if(l&&"function"==typeof d)return new d([e]);throw new rb("Blob is not supported. Use a Buffer instead.",rb.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rb("Object is too deeply nested ("+e+" levels). Max depth: "+c,rb.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(e,n,o){let i=e;if(o7.isReactNative(t)&&o7.isReactNativeBlob(e))return t.append(rF(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(o7.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!o7.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(o7.isArray(e)&&(d=e,o7.isArray(d)&&!d.some(rh))||(o7.isFileList(e)||o7.endsWith(n,"[]"))&&(i=o7.toArray(e)))return n=rp(n),i.forEach(function(e,o){o7.isUndefined(e)||null===e||t.append(!0===s?rF([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!rh(e)||(t.append(rF(o,n,a),u(e)),!1)}let h=Object.assign(r_,{defaultVisitor:b,convertValue:u,isVisitable:rh});if(!o7.isObject(e))throw TypeError("data must be an object");return!function e(n,o,r=0){if(!o7.isUndefined(n)){if(f(r),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),o7.forEach(n,function(n,a){!0===(!(o7.isUndefined(n)||null===n)&&i.call(t,n,o7.isString(a)?a.trim():a,o,h))&&e(n,o?o.concat(a):[a],r+1)}),m.pop()}}(e),t};function ry(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rk(e,t){this._pairs=[],e&&rg(e,this,t)}let rv=rk.prototype;function rM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rw(e,t,n){let o;if(!t)return e;e=e||"";let r=o7.isFunction(n)?{serialize:n}:n,i=o7.getSafeProp(r,"encode")||rM,a=o7.getSafeProp(r,"serialize");if(o=a?a(t,r):o7.isURLSearchParams(t)?t.toString():new rk(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}rv.append=function(e,t){this._pairs.push([e,t])},rv.toString=function(e){let t=e?t=>e.call(this,t,ry):ry;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rD=Symbol("internals");function rL(e){return e?e.length:0}function rE(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function rA(e,t){let n=e.handlers,o=rL(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let rT=class{constructor(){this.handlers=[],this[rD]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},r=this[rD];null==this.handlers&&(this.handlers=[]),rA(this,r);let i=r.nextId++;return this.handlers.push(o),r.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,i}eject(e){let t=this[rD];rA(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(rE(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],rA(this,this[rD]))}forEach(e){let t=this[rD];rA(this,t),t.iterationDepth++;try{o7.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(rA(this,t),rE(this.handlers),t.handlersLength=rL(this.handlers))}}},rS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rC="u">typeof URLSearchParams?URLSearchParams:rk,rY="u">typeof FormData?FormData:null,rx="u">typeof Blob?Blob:null,rO="u">typeof window&&"u">typeof document,rB="object"==typeof navigator&&navigator||void 0,rR=rO&&(!rB||0>["ReactNative","NativeScript","NS"].indexOf(rB.product)),rP="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rj=rO&&window.location.href||"http://localhost",rN={...tD,isBrowser:!0,classes:{URLSearchParams:rC,FormData:rY,Blob:rx},protocols:["http","https","file","blob","url","data"]};function rI(e){if(e>100)throw new rb("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rb.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rH=function(e){if(o7.isFormData(e)&&o7.isFunction(e.entries)){let t={};return o7.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rI(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&o7.isArray(o)?o.length:i,s)?o7.hasOwnProp(o,i)?o[i]=o7.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(o7.hasOwnProp(o,i)&&o7.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&o7.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)rI(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rU=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),rW=(e,t)=>null!=e&&o7.hasOwnProp(e,t)?e[t]:void 0,rz={transitional:rS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=o7.isObject(e);if(i&&o7.isHTMLForm(e)&&(e=new FormData(e)),o7.isFormData(e))return r?JSON.stringify(rH(e)):e;if(o7.isArrayBuffer(e)||o7.isBuffer(e)||o7.isStream(e)||o7.isFile(e)||o7.isBlob(e)||o7.isReadableStream(e))return e;if(o7.isArrayBufferView(e))return e.buffer;if(o7.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rW(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rg(e,new rN.classes.URLSearchParams,{visitor:function(e,t,n,o){return rN.isNode&&o7.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=o7.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rW(this,"env"),r=o&&o.FormData;return rg(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(o7.isString(a))try{return(0,JSON.parse)(a),o7.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rW(this,"transitional")||rz.transitional,n=t&&t.forcedJSONParsing,o=rW(this,"responseType"),r="json"===o;if(o7.isResponse(e)||o7.isReadableStream(e))return e;if(e&&o7.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rW(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rb.from(e,rb.ERR_BAD_RESPONSE,this,null,rW(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rN.classes.FormData,Blob:rN.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r$(e,t){let n=this||rz,o=t||n,r=rl.from(o.headers),i=o.data;return o7.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rG(e){return!!(e&&e.__CANCEL__)}o7.forEach(rU,e=>{rz.headers[e]={}});let rq=class extends rb{constructor(e,t,n){super(null==e?"canceled":e,rb.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function rV(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rb("Request failed with status code "+n.status,n.status>=400&&n.status<500?rb.ERR_BAD_REQUEST:rb.ERR_BAD_RESPONSE,n.config,n.request,n))}let rJ=/[\t\n\r]/g;function rK(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(rJ,"")}function rX(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let rQ=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},rZ=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]},r0=(e,t,n=3)=>{let o=0,r=rQ(50,250);return rZ(n=>{if(!n||!o7.isNumber(n.loaded))return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r1=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},r2=(e,t=o7.asap)=>(...n)=>t(()=>e(...n)),r4=rN.hasStandardBrowserEnv?(i=new URL(rN.origin),a=rN.navigator&&/(msie|trident)/i.test(rN.navigator.userAgent),e=>(e=new URL(e,rN.origin),i.protocol===e.protocol&&i.host===e.host&&(a||i.port===e.port))):()=>!0,r3=rN.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];o7.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),o7.isString(o)&&s.push(`path=${o}`),o7.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),o7.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r6=/^https?:(?!\/\/)/i;function r5(e,t){if("string"==typeof e){let o=rK(e);if(r6.test(o)){var n;let e,r,i;throw new rb(`Invalid URL ${JSON.stringify((i=(-1===(r=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${rm}@`)).indexOf("#"))?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${rm}`),-1===r?i:`${i}#${!(n=e.slice(r+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${rm}`)}`))}: missing "//" after protocol`,rb.ERR_INVALID_URL,t)}}}function r8(e,t,n,o){r5(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(r||!1===n)){r5(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let r7=e=>e instanceof rl?{...e}:e;function r9(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function r(e,t,n,o){return o7.isPlainObject(e)&&o7.isPlainObject(t)?o7.merge.call({caseless:o},e,t):o7.isPlainObject(t)?o7.merge({},t):o7.isArray(t)?t.slice():t}function i(e,t,n,o){return o7.isUndefined(t)?o7.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function a(e,t){if(!o7.isUndefined(t))return r(void 0,t)}function s(e,t){return o7.isUndefined(t)?o7.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function d(n,o,i){return o7.hasOwnProp(t,i)?r(n,o):o7.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>i(r7(e),r7(t),n,!0)};return o7.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=o7.hasOwnProp(c,n)?c[n]:i,a=r(o7.hasOwnProp(e,n)?e[n]:void 0,o7.hasOwnProp(t,n)?t[n]:void 0,n);o7.isUndefined(a)&&r!==d||(o[n]=a)}),o7.hasOwnProp(t,"validateStatus")&&o7.isUndefined(t.validateStatus)&&!1===function(n){let o=o7.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!o7.isUndefined(o)){if(!o7.isPlainObject(o))return;else if(o7.hasOwnProp(o,n))return o[n]}let r=o7.hasOwnProp(e,"transitional")?e.transitional:void 0;if(o7.isPlainObject(r)&&o7.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(o7.hasOwnProp(e,"validateStatus")?o.validateStatus=r(void 0,e.validateStatus):delete o.validateStatus),o}let ie=["content-type","content-length"],it=function(e){let t=r9({},e),n=e=>o7.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rl.from(s),t.url=rw(r8(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=o7.getSafeProp(d,"username")||"",n=o7.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rb.from(t,rb.ERR_BAD_OPTION_VALUE,e)}}if(o7.isFormData(o)){let e=o7.getSafeProp(o,"getHeaders");if(rN.hasStandardBrowserEnv||rN.hasStandardBrowserWebWorkerEnv||o7.isReactNative(o))s.setContentType(void 0);else{var u,f;o7.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{ie.includes(e.toLowerCase())&&u.set(e,t)}))}}if(rN.hasStandardBrowserEnv&&(o7.isFunction(r)&&(r=r(t)),!0===r||null==r&&r4(t.url))){let e=i&&a&&r3.read(a);e&&s.set(i,e)}return t},io="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,r,i,a,s,d,c=it(e),l=c.data,m=rl.from(c.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:b}=c;function h(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let p=new XMLHttpRequest;function F(o){if(!p)return;if(0===p.status&&"file"!==(rX(rK(c.url))||rX(rN.origin))&&!(p.responseURL&&p.responseURL.startsWith("file:"))){n(new rb("Request aborted",rb.ECONNABORTED,e,p)),h(),p=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!p)return;let r=rl.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());rV(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(c.method.toUpperCase(),c.url,!0),p.timeout=c.timeout,"onloadend"in p?p.onloadend=F:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(F)},p.onabort=function(){p&&(n(new rb("Request aborted",rb.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let o=new rb(t&&t.message?t.message:"Network Error",rb.ERR_NETWORK,e,p);o.event=t||null,n(o),h(),p=null},p.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",o=c.transitional||rS;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new rb(t,o.clarifyTimeoutError?rb.ETIMEDOUT:rb.ECONNABORTED,e,p)),h(),p=null},void 0===l&&m.setContentType(null),"setRequestHeader"in p&&o7.forEach(ro(m),function(e,t){p.setRequestHeader(t,e)}),o7.isUndefined(c.withCredentials)||(p.withCredentials=!!c.withCredentials),u&&"json"!==u&&(p.responseType=c.responseType),b&&([i,s,d]=r0(b,!0),p.addEventListener("progress",i)),f&&p.upload&&([r,a]=r0(f),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{p&&(n(!t||t.type?new rq(null,e,p):t),p.abort(),h(),p=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o)));let _=rX(c.url);if(_&&!rN.protocols.includes(_)){n(new rb("Unsupported protocol "+_+":",rb.ERR_BAD_REQUEST,e)),h();return}p.send(l||null)})},ir=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ii=async function*(e,t){for await(let n of ia(e))yield*ir(n,t)},ia=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},is=(e,t,n,o)=>{let r,i=ii(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},id=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ic=(e,t,n)=>t+2<n&&id(e.charCodeAt(t+1))&&id(e.charCodeAt(t+2)),il=e=>e<=57?e-48:(223&e)-55,im=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,iu=e=>9===e||10===e||12===e||13===e||32===e,ib=e=>{var t;let n,o,r=e.length,i=0,a=0,s=!1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(37===n&&ic(e,t,r)&&(n=16*il(e.charCodeAt(t+1))+il(e.charCodeAt(t+2)),t+=2),!iu(n)){if(61===n){a++;continue}if(!im(n)||a>0){s=!0;continue}i++}}if(s||a>2||a>0&&(i+a)%4!=0||i%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=i)/4),3*n+(2==(o=t%4)?1:2*(3===o))},ih={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ip}=o7,iF=e=>{if(!o7.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},i_=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ig=e=>{let t,n=void 0!==o7.global&&null!==o7.global?o7.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=o7.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?ip(i):"function"==typeof fetch,c=ip(a),l=ip(s);if(!d)return!1;let m=d&&ip(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&i_(()=>{let e=!1,t=new a(rN.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&i_(()=>o7.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rb(`Response type '${e}' is not supported`,rb.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(o7.isBlob(e))return e.size;if(o7.isSpecCompliantForm(e)){let t=new a(rN.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return o7.isArrayBufferView(e)||o7.isArrayBuffer(e)?e.byteLength:(o7.isURLSearchParams(e)&&(e+=""),o7.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let n=o7.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:_,onDownloadProgress:g,onUploadProgress:y,responseType:k,headers:v,withCredentials:M="same-origin",fetchOptions:w,maxContentLength:D,maxBodyLength:L,maxRedirects:E}=it(e),A=o7.isNumber(D)&&D>-1,T=o7.isNumber(L)&&L>-1,S=i||fetch;k=k?(k+"").toLowerCase():"text";let C=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rb?t:new rq(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rb(`timeout of ${t}ms exceeded`,rb.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void r.call(e);e.addEventListener("abort",r,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>o7.asap(a),s})([l,u&&u.toAbortSignal()],_),Y=null,x=C&&C.unsubscribe&&(()=>{C.unsubscribe()}),O=null,B=()=>new rb("Request body larger than maxBodyLength limit",rb.ERR_BAD_REQUEST,e,Y);try{var R,P;let i,l,u,_,j=(l="auth",o7.hasOwnProp(e,l)?e[l]:void 0);if(j){let e=o7.getSafeProp(j,"username")||"",t=o7.getSafeProp(j,"password")||"";i={username:e,password:t}}if(u=(R=n).indexOf("://"),_=R,-1!==u&&(_=_.slice(u+3)),_.includes("@")||_.includes(":")){let e=new URL(n,rN.origin);if(!i&&(e.username||e.password)){let t=iF(e.username),n=iF(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;v.delete("authorization"),v.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(P=n,t="string"==typeof P?P.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(o))return t(r);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(37===n&&ic(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?P:P.slice(0,t),ib)>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}if(T&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw B()}let N=T&&(o7.isReadableStream(d)||o7.isStream(d)),I=(e,t,n)=>is(e,65536,e=>{if(T&&e>L)throw O=B();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||N)){if(t=null==t?await F(v,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(o7.isFormData(d)&&(e=o.headers.get("content-type"))&&v.setContentType(e),o.body){let[e,n]=y&&r1(t,r0(r2(y)))||[];d=I(o.body,e,n)}}}else if(N&&!c&&m&&"get"!==o&&"head"!==o)d=I(d);else if(N&&c&&!f&&"get"!==o&&"head"!==o)throw new rb("Stream request bodies are not supported by the current fetch implementation",rb.ERR_NOT_SUPPORT,e,Y);o7.isString(M)||(M=M?"include":"omit");let H=c&&"credentials"in a.prototype;if(o7.isFormData(d)){let e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.set("User-Agent","axios/1.20.0",!1);let U=null==w?w:Object.assign(Object.create(null),w);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let W=Object.assign(Object.create(null),U,{signal:C,method:o.toUpperCase(),headers:ro(v.normalize()),body:d,duplex:"half",credentials:H?M:void 0});c&&(o7.forEach(ih,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===E&&(W.redirect="manual",U&&(U.redirect="manual")),Y=c&&new a(n,W);let z=await (c?S(Y,U):S(n,W)),G=rl.from(z.headers);if(A){let t=o7.toFiniteNumber(G.getContentLength());if(null!=t&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}let q=b&&("stream"===k||"response"===k);if(b&&z.body&&(g||A||q&&x)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=o7.toFiniteNumber(G.getContentLength()),[o,r]=g&&r1(n,r0(r2(g),!0))||[];z=new s(is(z.body,65536,t=>{if(A&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y);o&&o(t)},()=>{r&&r(),x&&x()}),t)}k=k||"text";let V=await h[o7.findKey(h,k)||"text"](z,e);if(A&&!b&&!q){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof r?new r().encode(V).byteLength:V.length)),"number"==typeof t&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}return!q&&x&&x(),await new Promise((t,n)=>{rV(t,n,{data:V,headers:rl.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:Y})})}catch(t){if(x&&x(),C&&C.aborted&&C.reason instanceof rb){let n=C.reason;throw n.config=e,Y&&(n.request=Y),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw Y&&!O.request&&(O.request=Y),O;if(t instanceof rb)throw Y&&!t.request&&(t.request=Y),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rb("Network Error",rb.ERR_NETWORK,e,Y,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rb.from(t,t&&t.code,e,Y,t&&t.response)}}},iy=new Map,ik=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iy;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:ig(t)),c=d;return d};ik();let iv={http:null,xhr:io,fetch:{get:ik}};o7.forEach(iv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iM=e=>`- ${e}`,iw=e=>o7.isFunction(e)||null===e||!1===e,iD=function(e,t){let n,o,{length:r}=e=o7.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iw(n)&&void 0===(o=iv[(r=String(n)).toLowerCase()]))throw new rb(`Unknown adapter '${r}'`);if(o&&(o7.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rb("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iM).join("\n"):" "+iM(e[0]):"as no adapter specified"),rb.ERR_NOT_SUPPORT)}return o};function iL(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rq(null,e)}function iE(e){let t=o7.toSafeFlatObject(e);return iL(t),t.headers=rl.from(o7.getSafeProp(t,"headers")),t.data=r$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iD(t.adapter||rz.adapter,t)(t).then(function(e){iL(t),t.response=e;try{e.data=r$.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=rl.from(e.headers),e},function(e){if(!rG(e)&&(iL(t),e&&e.response)){t.response=e.response;try{e.response.data=r$.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=rl.from(e.response.headers)}return Promise.reject(e)})}let iA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iA[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iT={};iA.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rb(o(r," has been removed"+(t?" in "+t:"")),rb.ERR_DEPRECATED);return t&&!iT[r]&&(iT[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iA.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iS=function(e,t,n){if("object"!=typeof e||null===e)throw new rb("options must be an object",rb.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rb("option "+i+" must be "+n,rb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rb("Unknown option "+i,rb.ERR_BAD_OPTION)}};class iC{constructor(e){this.defaults=e||{},this.interceptors={request:new rT,response:new rT}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=r9(this.defaults,t);void 0!==r&&iS(r,{silentJSONParsing:iA.transitional(iA.boolean),forcedJSONParsing:iA.transitional(iA.boolean),clarifyTimeoutError:iA.transitional(iA.boolean),legacyInterceptorReqResOrdering:iA.transitional(iA.boolean),advertiseZstdAcceptEncoding:iA.transitional(iA.boolean),validateStatusUndefinedResolves:iA.transitional(iA.boolean)},!1),null!=i&&(o7.isFunction(i)?t.paramsSerializer={serialize:i}:iS(i,{encode:iA.function,serialize:iA.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iS(t,{baseUrl:iA.spelling("baseURL"),withXsrfToken:iA.spelling("withXSRFToken")},!0),t.method=(o7.getSafeProp(t,"method")||o7.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&o7.merge(a.common,a[t.method]);a&&o7.forEach(rU.concat("common"),e=>{delete a[e]}),t.headers=rl.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rS;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iE.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);o7.isThenable(o)&&(n=Promise.resolve(o).then(()=>iE.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=iE.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rw(r8((e=r9(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}o7.forEach(["delete","get","head","options"],function(e){iC.prototype[e]=function(t,n){return this.request(r9(n||{},{method:e,url:t,data:n&&o7.hasOwnProp(n,"data")?n.data:void 0}))}}),o7.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(r9(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iC.prototype[e]=t(),"query"!==e&&(iC.prototype[e+"Form"]=t(!0))});let iY=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new rq(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},ix={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ix).forEach(([e,t])=>{void 0===ix[t]&&(ix[t]=e)});let iO=function e(t){let n=new iC(t),o=op(iC.prototype.request,n);return o7.extend(o,iC.prototype,n,{allOwnKeys:!0}),o7.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(r9(t,n))},o}(rz);iO.Axios=iC,iO.CanceledError=rq,iO.CancelToken=iY,iO.isCancel=rG,iO.VERSION="1.20.0",iO.toFormData=rg,iO.AxiosError=rb,iO.Cancel=iO.CanceledError,iO.all=function(e){return Promise.all(e)},iO.spread=function(e){return function(t){return e.apply(null,t)}},iO.isAxiosError=function(e){return o7.isObject(e)&&!0===e.isAxiosError},iO.mergeConfig=r9,iO.AxiosHeaders=rl,iO.formToJSON=e=>rH(o7.isHTMLForm(e)?new FormData(e):e),iO.getAdapter=iD,iO.HttpStatusCode=ix,iO.default=iO;class iB{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i4`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i4`info`,options:e})}}class iR{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i4`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i4`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i4`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i4`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i4`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i4`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i4`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i4`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:i4`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i4`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:i4`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/${t}`,options:n})}}class iP{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i4`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i4`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i4`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:i4`provisioning/${e}`,data:t,options:n})}}class ij{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`asset/predicted/${e}/${t}`,data:n,options:o})}}class iN{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i4`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i4`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i4`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:i4`dashboard/${e}/${t}`,options:n})}}class iI{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:i4`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i4`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i4`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i4`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i4`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i4`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:i4`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:i4`alarm/${e}/assets`,queryParams:t,options:n})}}class iH{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i4`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:i4`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/status/${e}`,options:t})}}class iU{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i4`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i4`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i4`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i4`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i4`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i4`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i4`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i4`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i4`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i4`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i4`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i4`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:i4`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:i4`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/child`,queryParams:t,options:n})}}class iW{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i4`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i4`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:i4`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i4`configuration/manager/image/${e}`,options:t})}}class iz{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i4`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i4`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i4`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i4`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:i4`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:i4`service/${e}/${t}`,options:n})}}class i${constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i4`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i4`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i4`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i4`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:i4`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i4`map/upload`,queryParams:e,options:t})}}class iG{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i4`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i4`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`asset/datapoint/${e}/${t}`,data:n,options:o})}}class iq{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i4`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i4`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i4`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i4`syslog/event`,queryParams:e,options:t})}}class iV{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i4`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i4`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i4`flow/${e}`,options:t})}}class iJ{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i4`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i4`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i4`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i4`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i4`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:i4`notification/${e}/delivered`,queryParams:t,options:n})}}class iK{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i4`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i4`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i4`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i4`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i4`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i4`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i4`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/${e}`,data:t,options:n})}}class iX{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:i4`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i4`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i4`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/valueDescriptors`,queryParams:e,options:t})}}class iQ{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i4`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class iZ{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i4`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i4`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i4`apps/info`,options:e})}}class i0{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i4`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i4`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i4`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i4`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`realm/${e}`,data:t,options:n})}}class i1{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i4`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i4`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class i2{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i4`console/register`,data:e,options:t})}}function i4(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class i3{constructor(e,t=iO.create()){this._statusResource=new i5(e,t),this._userResource=new i8(e,t),this._provisioningResource=new i7(e,t),this._assetPredictedDatapointResource=new i9(e,t),this._dashboardResource=new ae(e,t),this._alarmResource=new at(e,t),this._gatewayClientResource=new an(e,t),this._assetResource=new ao(e,t),this._configurationResource=new ar(e,t),this._externalServiceResource=new ai(e,t),this._mapResource=new aa(e,t),this._assetDatapointResource=new as(e,t),this._syslogResource=new ad(e,t),this._flowResource=new ac(e,t),this._notificationResource=new al(e,t),this._rulesResource=new am(e,t),this._assetModelResource=new au(e,t),this._gatewayServiceResource=new af(e,t),this._appResource=new ab(e,t),this._realmResource=new ah(e,t),this._agentResource=new ap(e,t),this._consoleResource=new aF(e,t),this._assetResource=new ao(e,t)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class i6{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class i5 extends iB{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i8 extends iR{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i7 extends iP{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i9 extends ij{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ae extends iN{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class at extends iI{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class an extends iH{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ao extends iU{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ar extends iW{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ai extends iz{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class aa extends i${constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class as extends iG{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ad extends iq{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ac extends iV{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class al extends iJ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class am extends iK{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class au extends iX{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class af extends iQ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ab extends iZ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ah extends i0{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ap extends i1{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class aF extends i2{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}var a_=n(8183),ag=n.n(a_);iO.isAxiosError;let ay=new class{get api(){return this._client}constructor(){this._axiosInstance=iO.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ag().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new i3(e,this._axiosInstance)}};var ak=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ey=tv||(tv={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let av="SUBSCRIBED:",aM="UNAUTHORIZED:",aw="TRIGGERED:",aD="EVENT:";class aL{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aE.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tv.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(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tv.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tv.CONNECTING),this._connectingDeferred=new om,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aE.MIN_RECONNECT_DELAY,this._onStatusChanged(tv.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tv.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new om};return null!=this._pendingSubscription||this._status!==tv.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ak(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tv.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tv.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aL._subscriptionCounter++;if(!this._assetEventPromise){let e;a9.authenticated||(e={filterType:"asset",realm:a9.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===a9.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aL._subscriptionCounter++;if(!this._attributeEventPromise){let e;a9.authenticated||(e={filterType:"asset",realm:a9.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===a9.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tv.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tv.CONNECTED&&this._onStatusChanged(tv.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tv.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<aE.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aE.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aL.MIN_RECONNECT_DELAY=0,aL.MAX_RECONNECT_DELAY=3e4,aL._subscriptionCounter=0;class aE extends aL{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+a9.config.realm;return this._connectDeferred=new om,(a9.authenticated?a9.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(av)){let e=JSON.parse(t.substring(av.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aM)){let e=JSON.parse(t.substring(aM.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aw)){let e=JSON.parse(t.substring(aw.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aD)){let e=JSON.parse(t.substring(aD.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new om,e.subscriptionId||(e.subscriptionId=aE._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aD+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new om;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aD+JSON.stringify(e)),t.promise}}aE._subscriptionCounter=1;let aA=["__proto__","constructor","prototype"];function aT(e){return!("string"!=typeof e||0===e.length||e.length>128||aA.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aS(e){return!(!aT(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let aC={lng:aS,ns:function(e){return!(!aT(e)||e.indexOf("//")>-1)}};function aY(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ax(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aO=/\{\{(.+?)\}\}/g;function aB(e,t){let n=!1,o=e.replace(aO,(e,o)=>{let r=o.trim();if(aA.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aC[r]||aS,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let aR="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:aR&&"function"==typeof aR.fetch&&(e=aR.fetch);let aP=ax()&&aR?aR.XMLHttpRequest:void 0,aj="function"==typeof ActiveXObject&&aR?aR.ActiveXObject:void 0,aN=["__proto__","constructor","prototype"],aI=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aN.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aH=(t,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let e=r(t,n);if(e instanceof Promise)return void e.then(i).catch(o)}"function"==typeof fetch?fetch(t,n).then(i).catch(o):e(t,n).then(i).catch(o)},aU=(t,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),e&&0!==n.indexOf("file:")){var i=n,a=o,s=r;t.queryStringParams&&(i=aI(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let d="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:d},l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{aH(i,c,s,l)}catch(e){if(!d||0===Object.keys(d).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(d).forEach(e=>{delete c[e]}),aH(i,c,s,l),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(ax()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aI("",c).slice(1)),t.queryStringParams&&(d=aI(d,t.queryStringParams));try{let e=aP?new aP:new aj("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",d,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))aN.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&l(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aW=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aU,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aB(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aY).join(", ")+"] namespaces=["+n.map(aY).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aY(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aY(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=aB(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aW.type="backend";let az=e=>(...t)=>({_$litDirective$:e,values:t});class a${constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class aG extends a${constructor(e){if(super(e),this.it=ni,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ni||null==e)return this._t=void 0,this.it=e;if(e===nr)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}aG.directiveName="unsafeHTML",aG.resultType=1,az(aG);class aq extends aG{}aq.directiveName="unsafeSVG",aq.resultType=2;let aV=az(aq),aJ={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var aK=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class aX extends CustomEvent{constructor(){super(aX.NAME,{bubbles:!0,composed:!0})}}aX.NAME="or-iconset-added";let aQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new aX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return no``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):no``}},aZ=class extends nM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tY`
10
+ `;class nM extends ny{static finalizeStyles(e){return[nv,...super.finalizeStyles(e)]}}let nw=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nD={attribute:!0,type:String,converter:tz,reflect:!1,hasChanged:t$};function nL(e){return(t,n)=>{let o;return"object"==typeof n?((e=nD,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}function nE(e){return nL({...e,state:!0,attribute:!1})}let nA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nT(e,t){return(n,o,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof o?n:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return nA(n,o,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&a.call(this,e),e}})}return nA(n,o,{get(){return i(this)}})}}(m=eM||(eM={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",m.DELETE_FINISHED="DELETE_FINISHED",(u=ew||(ew={})).LOW="LOW",u.MEDIUM="MEDIUM",u.HIGH="HIGH",(f=eD||(eD={})).MANUAL="MANUAL",f.CLIENT="CLIENT",f.GLOBAL_RULESET="GLOBAL_RULESET",f.REALM_RULESET="REALM_RULESET",f.ASSET_RULESET="ASSET_RULESET",f.AGENT="AGENT",(b=eL||(eL={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(h=eE||(eE={})).BOTTOM_LEFT="BOTTOM_LEFT",h.BOTTOM_RIGHT="BOTTOM_RIGHT",h.TOP_LEFT="TOP_LEFT",h.TOP_RIGHT="TOP_RIGHT",(p=eA||(eA={})).CREATE="CREATE",p.READ="READ",p.UPDATE="UPDATE",p.DELETE="DELETE",(F=eT||(eT={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(_=eS||(eS={})).DISCONNECTED="DISCONNECTED",_.CONNECTING="CONNECTING",_.DISCONNECTING="DISCONNECTING",_.CONNECTED="CONNECTED",_.DISABLED="DISABLED",_.WAITING="WAITING",_.ERROR="ERROR",_.STOPPED="STOPPED",(g=eC||(eC={})).REQUEST_START="REQUEST_START",g.REQUEST_REPEATING="REQUEST_REPEATING",g.REQUEST_CANCEL="REQUEST_CANCEL",g.READY="READY",g.COMPLETED="COMPLETED",g.RUNNING="RUNNING",g.CANCELLED="CANCELLED",(y=eY||(eY={})).TOGGLE="TOGGLE",y.INCREMENT="INCREMENT",y.DECREMENT="DECREMENT",y.NEGATE="NEGATE",(k=ex||(ex={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",k.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",k.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",k.INVALID_VALUE="INVALID_VALUE",k.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",k.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",k.CANNOT_PROCESS="CANNOT_PROCESS",k.QUEUE_FULL="QUEUE_FULL",k.UNKNOWN="UNKNOWN",k.ASSET_ID_MISSING="ASSET_ID_MISSING",k.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(v=eO||(eO={})).PUBLIC="PUBLIC",v.SHARED="SHARED",v.PRIVATE="PRIVATE",(M=eB||(eB={})).OFF="OFF",M.ONE_MIN="ONE_MIN",M.FIVE_MIN="FIVE_MIN",M.QUARTER="QUARTER",M.ONE_HOUR="ONE_HOUR",(w=eR||(eR={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",w.KEEP_LAYOUT="KEEP_LAYOUT",w.REDIRECT="REDIRECT",w.BLOCK_DEVICE="BLOCK_DEVICE",(D=eP||(eP={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(L=ej||(ej={})).MINUTE="MINUTE",L.HOUR="HOUR",L.DAY="DAY",L.WEEK="WEEK",L.MONTH="MONTH",L.YEAR="YEAR",(E=eN||(eN={})).MIN="MIN",E.AVG="AVG",E.MAX="MAX",E.DIFFERENCE="DIFFERENCE",E.COUNT="COUNT",E.SUM="SUM",E.MODE="MODE",E.MEDIAN="MEDIAN",(A=eI||(eI={})).TERMINATING="TERMINATING",A.DISABLED="DISABLED",A.ALREADY_CONNECTED="ALREADY_CONNECTED",A.UNRECOGNISED="UNRECOGNISED",A.PERMANENT_ERROR="PERMANENT_ERROR",A.SYNC_ERROR="SYNC_ERROR",(T=eH||(eH={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eU||(eU={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(C=eW||(eW={})).KEYCLOAK="KEYCLOAK",C.NONE="NONE",(Y=ez||(ez={})).WEBSOCKET="WEBSOCKET",Y.POLLING="POLLING",(x=e$||(e$={})).INTERNAL="INTERNAL",x.CLIENT="CLIENT",x.GLOBAL_RULESET="GLOBAL_RULESET",x.REALM_RULESET="REALM_RULESET",x.ASSET_RULESET="ASSET_RULESET",(O=eG||(eG={})).REALM="REALM",O.USER="USER",O.ASSET="ASSET",O.CUSTOM="CUSTOM",(B=eq||(eq={})).NORMAL="NORMAL",B.HIGH="HIGH",(R=eV||(eV={})).DEVICE="DEVICE",R.TOPIC="TOPIC",R.CONDITION="CONDITION",(P=eJ||(eJ={})).ALWAYS="ALWAYS",P.ONCE="ONCE",P.HOURLY="HOURLY",P.DAILY="DAILY",P.WEEKLY="WEEKLY",P.MONTHLY="MONTHLY",P.ANNUALLY="ANNUALLY",(j=eK||(eK={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(N=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",N.CERTIFICATE_INVALID="CERTIFICATE_INVALID",N.UNAUTHORIZED="UNAUTHORIZED",N.FORBIDDEN="FORBIDDEN",N.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",N.CONFIG_DISABLED="CONFIG_DISABLED",N.USER_DISABLED="USER_DISABLED",N.SERVER_ERROR="SERVER_ERROR",N.ASSET_ERROR="ASSET_ERROR",N.SERVER_BUSY="SERVER_BUSY",(I=eQ||(eQ={})).PRIVATE="PRIVATE",I.PROTECTED="PROTECTED",I.PUBLIC="PUBLIC",(H=eZ||(eZ={})).EXACT="EXACT",H.BEGIN="BEGIN",H.END="END",H.CONTAINS="CONTAINS",(U=e0||(e0={})).EQUALS="EQUALS",U.GREATER_THAN="GREATER_THAN",U.GREATER_EQUALS="GREATER_EQUALS",U.LESS_THAN="LESS_THAN",U.LESS_EQUALS="LESS_EQUALS",U.BETWEEN="BETWEEN",(W=e1||(e1={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(z=e2||(e2={})).RESTRICTED="RESTRICTED",z.LINKED="LINKED",z.REALM="REALM",(G=e4||(e4={})).AT_LEAST_ONE="AT_LEAST_ONE",G.ALL="ALL",G.NONE="NONE",(q=e3||(e3={})).AND="AND",q.OR="OR",(V=e6||(e6={})).CREATED_ON="CREATED_ON",V.FIRST_NAME="FIRST_NAME",V.LAST_NAME="LAST_NAME",V.USERNAME="USERNAME",V.EMAIL="EMAIL",(J=e5||(e5={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(K=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",K.GROOVY="GROOVY",K.JSON="JSON",K.FLOW="FLOW",(X=e7||(e7={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e9||(e9={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=tn||(tn={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(en=to||(to={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(eo=tr||(tr={})).ADD="ADD",eo.ADD_OR_REPLACE="ADD_OR_REPLACE",eo.REPLACE="REPLACE",eo.DELETE="DELETE",eo.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=ta||(ta={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.READ_TUNNELS="read:tunnels",ei.WRITE_SERVICES="write:services",ei.WRITE_USER="write:user",ei.WRITE_ADMIN="write:admin",ei.WRITE_LOGS="write:logs",ei.WRITE_ASSETS="write:assets",ei.WRITE_ATTRIBUTES="write:attributes",ei.WRITE_RULES="write:rules",ei.WRITE_INSIGHTS="write:insights",ei.WRITE_ALARMS="write:alarms",ei.WRITE_NOTIFICATIONS="write:notifications",ei.WRITE_TUNNELS="write:tunnels",ei.READ="read",ei.WRITE="write",(ea=ts||(ts={})).REGISTER="REGISTER",ea.UPDATE="UPDATE",ea.DEREGISTER="DEREGISTER",(es=td||(td={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(ed=tc||(tc={})).ASSET="ASSET",ed.AGENT="AGENT",ed.NOTIFICATION="NOTIFICATION",ed.ALARM="ALARM",ed.RULES="RULES",ed.PROTOCOL="PROTOCOL",ed.GATEWAY="GATEWAY",ed.MODEL_AND_VALUES="MODEL_AND_VALUES",ed.API="API",ed.DATA="DATA",(ec=tl||(tl={})).INFO="INFO",ec.WARN="WARN",ec.ERROR="ERROR",(el=tm||(tm={})).NUMERIC="numeric",el.DIGIT_2="2-digit",el.FULL="full",el.LONG="long",el.MEDIUM="medium",el.SHORT="short",el.NARROW="narrow",(em=tu||(tu={})).SECONDLY="SECONDLY",em.MINUTELY="MINUTELY",em.HOURLY="HOURLY",em.DAILY="DAILY",em.WEEKLY="WEEKLY",em.MONTHLY="MONTHLY",em.YEARLY="YEARLY",(eu=tf||(tf={})).OMIT="OMIT",eu.BACKWARD="BACKWARD",eu.FORWARD="FORWARD",(ef=tb||(tb={})).JAPANESE="JAPANESE",ef.BUDDHIST="BUDDHIST",ef.ROC="ROC",ef.ISLAMIC="ISLAMIC",ef.ISO8601="ISO8601",ef.CHINESE="CHINESE",ef.ETHIOPIC="ETHIOPIC",ef.HEBREW="HEBREW",ef.GREGORIAN="GREGORIAN",(eb=th||(th={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eh=tp||(tp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eh.MAILAGENT="MailAgent",eh.UDPAGENT="UDPAgent",eh.ROOMASSET="RoomAsset",eh.CITYASSET="CityAsset",eh.VENTILATIONASSET="VentilationAsset",eh.TRADFRILIGHTASSET="TradfriLightAsset",eh.CONSOLEASSET="ConsoleAsset",eh.PRESENCESENSORASSET="PresenceSensorAsset",eh.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eh.LIGHTASSET="LightAsset",eh.KNXAGENT="KNXAgent",eh.THETHINGSSTACKAGENT="TheThingsStackAgent",eh.PLUGASSET="PlugAsset",eh.CHIRPSTACKAGENT="ChirpStackAgent",eh.WEATHERASSET="WeatherAsset",eh.THINGASSET="ThingAsset",eh.WEBSOCKETAGENT="WebsocketAgent",eh.TCPAGENT="TCPAgent",eh.GATEWAYASSET="GatewayAsset",eh.SERIALAGENT="SerialAgent",eh.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eh.PARKINGASSET="ParkingAsset",eh.TRADFRIPLUGASSET="TradfriPlugAsset",eh.SIMULATORAGENT="SimulatorAgent",eh.SNMPAGENT="SNMPAgent",eh.GROUPASSET="GroupAsset",eh.BUILDINGASSET="BuildingAsset",eh.MODBUSSERIALAGENT="ModbusSerialAgent",eh.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eh.MQTTAGENT="MQTTAgent",eh.VELBUSTCPAGENT="VelbusTCPAgent",eh.ARTNETLIGHTASSET="ArtnetLightAsset",eh.VELBUSSERIALAGENT="VelbusSerialAgent",eh.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eh.MICROPHONEASSET="MicrophoneAsset",eh.MODBUSTCPAGENT="ModbusTcpAgent",eh.ZWAVEAGENT="ZWaveAgent",eh.HTTPAGENT="HTTPAgent",eh.DOORASSET="DoorAsset",eh.THERMOSTATASSET="ThermostatAsset",eh.SHIPASSET="ShipAsset",(ep=tF||(tF={})).COLOURRGB="colourRGB",ep.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",ep.PRICEHOURLY="priceHourly",ep.MQTTPORT="MQTTPort",ep.PINGDISABLED="pingDisabled",ep.FLOW="flow",ep.CHILDASSETTYPE="childAssetType",ep.LASTACCESS="lastAccess",ep.POSITION="position",ep.NETWORKKEY="networkKey",ep.UNIVERSE="universe",ep.ROUTINGMODE="routingMode",ep.MSSINUMBER="MSSINumber",ep.LASTWILLRETAIN="lastWillRetain",ep.LASTWILLTOPIC="lastWillTopic",ep.SERIALBAUDRATE="serialBaudrate",ep.SUBSCRIBEQOS="subscribeQos",ep.LEDCOUNT="lEDCount",ep.LOCKED="locked",ep.CLOUDCOVERAGE="cloudCoverage",ep.BASEURL="baseURL",ep.PROTOCOL="protocol",ep.REQUIREDVALUES="requiredValues",ep.REGION="region",ep.CONSOLEPLATFORM="consolePlatform",ep.GATEWAYSTATUS="gatewayStatus",ep.NO2LEVEL="NO2Level",ep.ATMOSPHERICPRESSURE="atmosphericPressure",ep.SERIALPORT="serialPort",ep.APPLICATIONID="applicationId",ep.TAGS="tags",ep.UNLOCK="unlock",ep.CHECKINTERVALSECONDS="checkIntervalSeconds",ep.LOCATION="location",ep.CLIENTSECRET="clientSecret",ep.WINDDIRECTION="windDirection",ep.WINDSPEED="windSpeed",ep.PARTICLESPM10="particlesPM10",ep.APPLICATIONKEY="applicationKey",ep.LENGTH="length",ep.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",ep.USERNAMEPASSWORD="usernamePassword",ep.WATERLEVEL="waterLevel",ep.CONNECTHEADERS="connectHeaders",ep.CONSOLENAME="consoleName",ep.WEBSOCKETQUERY="websocketQuery",ep.PREFERHTML="preferHTML",ep.PARITY="parity",ep.COOLING="cooling",ep.POLLINGMILLIS="pollingMillis",ep.SOILTEMPERATURE="soilTemperature",ep.SUNIRRADIANCE="sunIrradiance",ep.MESSAGEMAXLENGTH="messageMaxLength",ep.WINDGUSTSPEED="windGustSpeed",ep.LIGHTID="lightId",ep.PROXYADDRESS="proxyAddress",ep.REQUESTQUERYPARAMETERS="requestQueryParameters",ep.MQTTHOST="MQTTHost",ep.SECUREGRPC="secureGRPC",ep.MODEL="model",ep.STREET="street",ep.MANUFACTURER="manufacturer",ep.DELETEPROCESSEDMAIL="deleteProcessedMail",ep.RESUMESESSION="resumeSession",ep.ONOFF="onOff",ep.APIKEY="ApiKey",ep.CITY="city",ep.PRESENCE="presence",ep.SPACESOCCUPIED="spacesOccupied",ep.STARTTLS="startTLS",ep.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",ep.WEBSOCKETPATH="websocketPath",ep.AGENTSTATUS="agentStatus",ep.PRICEDAILY="priceDaily",ep.COUNTGROWTHMINUTE="countGrowthMinute",ep.IMONUMBER="IMONumber",ep.ATTRIBUTION="Attribution",ep.TENANTID="tenantId",ep.REQUESTHEADERS="requestHeaders",ep.HOST="host",ep.COUNTOUTMINUTE="countOutMinute",ep.MESSAGECHARSET="messageCharset",ep.CERTIFICATEALIAS="certificateAlias",ep.EMAIL="email",ep.BINDPORT="bindPort",ep.CONSOLEVERSION="consoleVersion",ep.PARTICLESPM1="particlesPM1",ep.MTU="mtu",ep.SPEED="speed",ep.MESSAGESTRIPDELIMITER="messageStripDelimiter",ep.AREA="area",ep.COUNTRY="country",ep.SHIPTYPE="shipType",ep.CONNECTSUBSCRIPTIONS="connectSubscriptions",ep.RELATIVEHUMIDITY="relativeHumidity",ep.SOURCEADDRESS="sourceAddress",ep.RAINFALL="rainfall",ep.OAUTHGRANT="oAuthGrant",ep.OZONELEVEL="ozoneLevel",ep.SEQUENCENUMBER="sequenceNumber",ep.COUNTINMINUTE="countInMinute",ep.PORT="port",ep.SUNALTITUDE="sunAltitude",ep.COUNTOUT="countOut",ep.ROOMNUMBER="roomNumber",ep.TUNNELINGSUPPORTED="tunnelingSupported",ep.ENINUMBER="ENINumber",ep.PARTICLESPM2_5="particlesPM2_5",ep.AGENTDISABLED="agentDisabled",ep.DISABLED="disabled",ep.COUNTIN="countIn",ep.MESSAGESOURCEADDRESS="messageSourceAddress",ep.PROVISIONWEATHERASSET="ProvisionWeatherAsset",ep.TIMEINJECTIONINTERVAL="timeInjectionInterval",ep.TEMPERATURESETPOINT="temperatureSetpoint",ep.CONSOLEPROVIDERS="consoleProviders",ep.COUNTTOTAL="countTotal",ep.SPACESBUFFER="spacesBuffer",ep.DEVICECONFIG="deviceConfig",ep.SPACESTOTAL="spacesTotal",ep.BINDHOST="bindHost",ep.FANSPEED="fanSpeed",ep.MESSAGECONVERTBINARY="messageConvertBinary",ep.NOTES="notes",ep.MAILFOLDERNAME="mailFolderName",ep.MESSAGEDELIMITERS="messageDelimiters",ep.TEMPERATURE="temperature",ep.SUNZENITH="sunZenith",ep.SNMPVERSIONVALUE="SNMPVersionValue",ep.BRIGHTNESS="brightness",ep.POSTALCODE="postalCode",ep.SPACESOPEN="spacesOpen",ep.HUMIDITY="humidity",ep.SOUNDLEVEL="soundLevel",ep.SECUREMODE="secureMode",ep.DIRECTION="direction",ep.STOPBITS="stopbits",ep.UVINDEX="uVIndex",ep.CONNECTURL="connectURL",ep.CLIENTID="clientId",ep.NATMODE="NATMode",ep.UPDATEONWRITE="updateOnWrite",ep.LASTWILLPAYLOAD="lastWillPayload",ep.GROUPID="groupId",ep.FOLLOWREDIRECTS="followRedirects",ep.SUNAZIMUTH="sunAzimuth",ep.MESSAGECONVERTHEX="messageConvertHex",ep.WEBSOCKETMODE="websocketMode",ep.COLOURTEMPERATURE="colourTemperature",ep.PUBLISHQOS="publishQos",ep.DATABITS="dataBits",(eF=t_||(t_={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(e_=tg||(tg={})).ASSETQUERY="assetQuery",e_.WSURL="WS_URL",e_.COLOURRGB="colourRGB",e_.VALUEFORMAT="valueFormat",e_.TEXT="text",e_.BYTE="byte",e_.USERNAMEANDPASSWORD="usernameAndPassword",e_.HTTPURL="HTTP_URL",e_.ATTRIBUTELINK="attributeLink",e_.ASSETID="assetID",e_.NUMBERMAP="numberMap",e_.HTTPMETHOD="HTTPMethod",e_.ATTRIBUTESTATE="attributeState",e_.POSITIVENUMBER="positiveNumber",e_.POSITIVEINTEGER="positiveInteger",e_.EXECUTIONSTATUS="executionStatus",e_.BIGINTEGER="bigInteger",e_.VALUEDESCRIPTOR="valueDescriptor",e_.PERIODDURATIONISO8601="periodDurationISO8601",e_.LONG="long",e_.DATEANDTIME="dateAndTime",e_.BOOLEANMAP="booleanMap",e_.MQTTQOS="MQTTQos",e_.NEGATIVEINTEGER="negativeInteger",e_.TCPIPPORTNUMBER="TCP_IPPortNumber",e_.GEOJSONPOINT="GEO_JSONPoint",e_.SNMPVERSION="SNMPVersion",e_.ASSETTYPE="assetType",e_.JSONOBJECT="JSONObject",e_.INTEGERMAP="integerMap",e_.BIGNUMBER="bigNumber",e_.IPADDRESS="IPAddress",e_.EMAIL="email",e_.TIMESTAMP="timestamp",e_.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",e_.ATTRIBUTEREFERENCE="attributeReference",e_.UUID="UUID",e_.INTEGER="integer",e_.OAUTHGRANT="oAuthGrant",e_.NUMBER="number",e_.DEVICECONFIGMAP="DeviceConfigMap",e_.TEXTMAP="textMap",e_.WEBSOCKETSUBSCRIPTION="websocketSubscription",e_.BOOLEAN="boolean",e_.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",e_.FORECASTCONFIGURATION="forecastConfiguration",e_.TIMEDURATIONISO8601="timeDurationISO8601",e_.TIMESTAMPISO8601="timestampISO8601",e_.CONSOLEPROVIDERS="consoleProviders",e_.MULTIVALUEDTEXTMAP="multivaluedTextMap",e_.NEGATIVENUMBER="negativeNumber",e_.PARITYBIT="Paritybit",e_.JSON="JSON",e_.CRONEXPRESSION="CRONExpression",e_.INTEGERBYTE="integerByte",e_.AGENTLINK="agentLink",e_.DIRECTION="direction",e_.HOSTORIPADDRESS="hostOrIPAddress",e_.STOPBITS="Stopbits",e_.CALENDAREVENT="calendarEvent",e_.CONNECTIONSTATUS="connectionStatus",e_.VALUECONSTRAINT="valueConstraint",(eg=ty||(ty={})).MONTH="month",eg.MILE_SCANDINAVIAN="mile_scandinavian",eg.VAR="var",eg.OUNCE="ounce",eg.HECTARE="hectare",eg.YARD="yard",eg.YEAR="year",eg.GIGA="giga",eg.JOULE="joule",eg.VOLT="volt",eg.HERTZ="hertz",eg.MILE="mile",eg.DEGREE="degree",eg.KILO="kilo",eg.BTU="btu",eg.TERA="tera",eg.FOOT="foot",eg.MEGA="mega",eg.KELVIN="kelvin",eg.CARBON="carbon",eg.DECIBEL_ATTENUATED="decibel_attenuated",eg.INCH="inch",eg.SQUARED="squared",eg.PERCENTAGE="percentage",eg.IN_HG="inch_mercury",eg.CENTI="centi",eg.GRAM="gram",eg.CUBED="cubed",eg.DAY="day",eg.RADIAN="radian",eg.OHM="ohm",eg.MINUTE="minute",eg.PART_PER_MILLION="ppm",eg.AMP="amp",eg.MASS_POUND="pound",eg.KNOT="knot",eg.METRE="metre",eg.LITRE="litre",eg.FLUID_OUNCE="fluid_ounce",eg.HOUR="hour",eg.ACRE="acre",eg.CELSIUS="celsius",eg.RPM="rpm",eg.PASCAL="pascal",eg.DECIBEL="decibel",eg.LUMEN="lumen",eg.WEEK="week",eg.FAHRENHEIT="fahrenheit",eg.WATT="watt",eg.GALLON="gallon",eg.LUX="lux",eg.MILLI="milli",eg.BAR="bar",eg.HECTO="hecto",eg.PEAK="peak",eg.SECOND="second",eg.MICRO="micro",eg.PER="per",eg.STONE="stone",tk||(tk={});class nS{static getAssetDescriptors(){return nS._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nS.getValueDescriptor(t)),n=t.jsonType?t:nS.getValueDescriptor(t.type)),!n&&e&&(n=nS.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nS._assetTypeInfos=[],nS._metaItemDescriptors=[],nS._valueDescriptors=[];var nC=n(1001);n(4532);let nY=e=>"string"==typeof e,nx=()=>{let e,t,n=new Promise((n,o)=>{e=n,t=o});return n.resolve=e,n.reject=t,n},nO=e=>null==e?"":String(e),nB=/###/g,nR=e=>e&&e.includes("###")?e.replace(nB,"."):e,nP=e=>!e||nY(e),nj=(e,t,n)=>{let o=nY(t)?t.split("."):t,r=0;for(;r<o.length-1;){if(nP(e))return{};let t=nR(o[r]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++r}return nP(e)?{}:{obj:e,k:nR(o[r])}},nN=(e,t,n)=>{let{obj:o,k:r}=nj(e,t,Object);if(void 0!==o||1===t.length){o[r]=n;return}let i=t[t.length-1],a=t.slice(0,t.length-1),s=nj(e,a,Object);for(;void 0===s.obj&&a.length;)i=`${a[a.length-1]}.${i}`,s=nj(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${i}`]&&(s.obj=void 0);s.obj[`${s.k}.${i}`]=n},nI=(e,t)=>{let{obj:n,k:o}=nj(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,o))return n[o]},nH=(e,t,n)=>{for(let o in t)"__proto__"!==o&&"constructor"!==o&&(Object.prototype.hasOwnProperty.call(e,o)?nY(e[o])||e[o]instanceof String||nY(t[o])||t[o]instanceof String?n&&(e[o]=t[o]):nH(e[o],t[o],n):e[o]=t[o]);return e},nU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},nW=e=>nY(e)?e.replace(/[&<>"'\/]/g,e=>nU[e]):e,nz=[" ",",","?","!",";"],n$=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),nG=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let o=t.split(n),r=e;for(let e=0;e<o.length;){let t;if(!r||"object"!=typeof r)return;let i="";for(let a=e;a<o.length;++a)if(a!==e&&(i+=n),i+=o[a],void 0!==(t=r[i])){if(["string","number","boolean"].includes(typeof t)&&a<o.length-1)continue;e+=a-e+1;break}r=t}return r},nq=e=>e?.replace(/_/g,"-"),nV={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var nJ=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||nV,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,o){return o&&!this.debug?null:(e=e.map(e=>nY(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),nY(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class nK{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...o)=>{t(...o),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let o=0;o<n;o++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,o])=>{for(let r=0;r<o;r++)n(e,...t)})}}class nX extends nK{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,o={}){let r,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?r=e.split("."):(r=[e,t],n&&(Array.isArray(n)?r.push(...n):nY(n)&&i?r.push(...n.split(i)):r.push(n)));let s=nI(this.data,r);return(!s&&!t&&!n&&e.includes(".")&&(e=r[0],t=r[1],n=r.slice(2).join(".")),!s&&a&&nY(n))?nG(this.data?.[e]?.[t],n,i):s}addResource(e,t,n,o,r={silent:!1}){let i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.includes(".")&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nN(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}addResources(e,t,n,o={silent:!1}){for(let o in n)(nY(n[o])||Array.isArray(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});o.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,o,r,i={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);let s=nI(this.data,a)||{};i.skipCopy||(n=JSON.parse(JSON.stringify(n))),o?nH(s,n,r):s={...s,...n},nN(this.data,a,s),i.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var nQ={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,o,r){return e.forEach(e=>{t=this.processors[e]?.process(t,n,o,r)??t}),t}};let nZ=Symbol("i18next/PATH_KEY");function n0(e,t){let n,o,r,{[nZ]:i}=e((o=[],(r=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===nZ)?o:(o.push(t),(n=Proxy.revocable(e,r)).proxy),Proxy.revocable(Object.create(null),r).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",d=t?.enableSelector==="strict";if(i.length>1&&s){let e=t?.ns,n=d?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(d?n:n.length>1?n.slice(1):[]).includes(i[0]))return`${i[0]}${s}${i.slice(1).join(a)}`}return i.join(a)}let n1=e=>!nY(e)&&"boolean"!=typeof e&&"number"!=typeof e;class n2 extends nK{constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=nJ.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let o=this.resolve(e,n);if(o?.res===void 0)return!1;let r=n1(o.res);return!1!==n.returnObjects||!r}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let o=nz.filter(e=>!t.includes(e)&&!n.includes(e));if(0===o.length)return!0;let r=n$.getRegExp(`(${o.map(e=>"?"===e?"\\?":e).join("|")})`),i=!r.test(e);if(!i){let t=e.indexOf(n);t>0&&!r.test(e.substring(0,t))&&(i=!0)}return i})(e,n,o);if(i&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:nY(r)?[r]:r};let i=e.split(n);(n!==o||n===o&&this.options.ns.includes(i[0]))&&(r=i.shift()),e=i.join(o)}return{key:e,namespaces:nY(r)?[r]:r}}translate(e,t,n){let o="object"==typeof t?{...t}:t;if("object"!=typeof o&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof o&&(o={...o}),o||(o={}),null==e)return"";"function"==typeof e&&(e=n0(e,{...this.options,...o})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?n0(e,{...this.options,...o}):String(e));let r=void 0!==o.returnDetails?o.returnDetails:this.options.returnDetails,i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],o),d=s[s.length-1],c=void 0!==o.nsSeparator?o.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let l=o.lng||this.language,m=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l?.toLowerCase()==="cimode")return m?r?{res:`${d}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:`${d}${c}${a}`:r?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:d,usedParams:this.getUsedParamsDetails(o)}:a;let u=this.resolve(e,o),f=u?.res,b=u?.usedKey||a,h=u?.exactUsedKey||a,p=void 0!==o.joinArrays?o.joinArrays:this.options.joinArrays,F=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==o.count&&!nY(o.count),g=n2.hasDefaultValue(o),y=_?this.pluralResolver.getSuffix(l,o.count,o):"",k=o.ordinal&&_?this.pluralResolver.getSuffix(l,o.count,{ordinal:!1}):"",v=_&&!o.ordinal&&0===o.count,M=v&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${y}`]||o[`defaultValue${k}`]||o.defaultValue,w=f;F&&!f&&g&&(w=M);let D=n1(w),L=Object.prototype.toString.apply(w);if(F&&w&&D&&!["[object Number]","[object Function]","[object RegExp]"].includes(L)&&!(nY(p)&&Array.isArray(w))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,w,{...o,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(o),u):e}if(i){let e=Array.isArray(w),t=e?[]:{},n=e?h:b;for(let e in w)if(Object.prototype.hasOwnProperty.call(w,e)){let r=`${n}${i}${e}`;g&&!f?t[e]=this.translate(r,{...o,defaultValue:n1(M)?M[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(r,{...o,joinArrays:!1,ns:s}),t[e]===r&&(t[e]=w[e])}f=t}}else if(F&&nY(p)&&Array.isArray(f))(f=f.join(p))&&(f=this.extendTranslation(f,e,o,n));else{let t=!1,r=!1;!this.isValidLookup(f)&&g&&(t=!0,f=M),this.isValidLookup(f)||(r=!0,f=a);let s=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&r?void 0:f,m=g&&M!==f&&this.options.updateMissing;if(r||t||m){if(this.logger.log(m?"updateKey":"missingKey",l,d,_&&!m?`${a}${this.pluralResolver.getSuffix(l,o.count,o)}`:a,m?M:f),i){let e=this.resolve(a,{...o,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(o.lng||this.language):e.push(o.lng||this.language);let n=(e,t,n)=>{let r=g&&n!==f?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,d,t,r,m,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,d,t,r,m,o),this.emit("missingKey",e,d,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,o);v&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,o[`defaultValue${t}`]||M)})}):n(e,a,M))}f=this.extendTranslation(f,e,o,u,n),r&&f===a&&this.options.appendNamespaceToMissingKey&&(f=`${d}${c}${a}`),(r||t)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}${c}${a}`:a,t?f:void 0,o))}return r?(u.res=f,u.usedParams=this.getUsedParamsDetails(o),u):f}extendTranslation(e,t,n,o,r){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){let i;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=nY(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);i=t&&t.length}let s=n.replace&&!nY(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||o.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);i<(t&&t.length)&&(n.nest=!1)}!n.lng&&o&&o.res&&(n.lng=this.language||o.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>r?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let i=n.postProcess||this.options.postProcess,a=nY(i)?[i]:i;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=nQ.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,o,r,i,a;return nY(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?n0(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),d=s.key;o=d;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let l=void 0!==t.count&&!nY(t.count),m=l&&!t.ordinal&&0===t.count,u=void 0!==t.context&&(nY(t.context)||"number"==typeof t.context)&&""!==t.context,f=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${f[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${f[0]}-${e}`]=!0,this.logger.warn(`key "${o}" for languages "${f.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(o=>{let a;if(this.isValidLookup(n))return;i=o;let s=[d];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,d,o,e,t);else{let e;l&&(e=this.pluralResolver.getSuffix(o,t.count,t));let n=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(l&&(t.ordinal&&e.startsWith(r)&&s.push(d+e.replace(r,this.options.pluralSeparator)),s.push(d+e),m&&s.push(d+n)),u){let o=`${d}${this.options.contextSeparator||"_"}${t.context}`;s.push(o),l&&(t.ordinal&&e.startsWith(r)&&s.push(o+e.replace(r,this.options.pluralSeparator)),s.push(o+e),m&&s.push(o+n))}}for(;a=s.pop();)this.isValidLookup(n)||(r=a,n=this.getResource(o,e,a,t))}))})}),{res:n,usedKey:o,exactUsedKey:r,usedLng:i,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}getUsedParamsDetails(e={}){let t=e.replace&&!nY(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class n4{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nJ.create("languageUtils")}getScriptPartFromCode(e){if(!(e=nq(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=nq(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(nY(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let o=this.getLanguagePartFromCode(e);if(this.isSupportedCode(o))return t=o;t=this.options.supportedLngs.find(e=>e===o||(!!e.includes("-")||!!o.includes("-"))&&!!(e.includes("-")&&!o.includes("-")&&e.slice(0,e.indexOf("-"))===o||e.startsWith(o)&&o.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),nY(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),o=[],r=e=>{e&&(this.isSupportedCode(e)?o.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return nY(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):nY(e)&&r(this.formatLanguageCode(e)),n.forEach(e=>{o.includes(e)||r(this.formatLanguageCode(e))}),o}}let n3={zero:0,one:1,two:2,few:3,many:4,other:5},n6={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class n5{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=nJ.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,o=nq("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];try{n=new Intl.PluralRules(o,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),n6;if(!e.match(/-|_/))return n6;let o=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(o,t)}return this.pluralRulesCache[i]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>n3[e]-n3[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let o=this.getRule(e,n);return o?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let n8=(e,t,n,o=".",r=!0)=>{let i,a=void 0!==(i=nI(e,n))?i:nI(t,n);return!a&&r&&nY(n)&&void 0===(a=nG(e,n,o))&&(a=nG(t,n,o)),a},n7=e=>e.replace(/\$/g,"$$$$");class n9{constructor(e={}){this.logger=nJ.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:o,prefix:r,prefixEscaped:i,suffix:a,suffixEscaped:s,formatSeparator:d,unescapeSuffix:c,unescapePrefix:l,nestingPrefix:m,nestingPrefixEscaped:u,nestingSuffix:f,nestingSuffixEscaped:b,nestingOptionsSeparator:h,maxReplaces:p,alwaysFormat:F}=e.interpolation;this.escape=void 0!==t?t:nW,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==o&&o,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):i||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=d||",",this.unescapePrefix=c?"":l?l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=m?m.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):u||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=f?f.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):b||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=h||",",this.maxReplaces=p||1e3,this.alwaysFormat=void 0!==F&&F,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,o){let r,i,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},d=e=>{if(!e.includes(this.formatSeparator)){let r=n8(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(r,void 0,n,{...o,...t,interpolationkey:e}):r}let r=e.split(this.formatSeparator),i=r.shift().trim(),a=r.join(this.formatSeparator).trim();return this.format(n8(t,s,i,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...o,...t,interpolationkey:i})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,l=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;r=t.regex.exec(e);){let n=r[1].trim();if(void 0===(i=d(n)))if("function"==typeof c){let t=c(e,r,o);i=nY(t)?t:""}else if(o&&Object.prototype.hasOwnProperty.call(o,n))i="";else if(l){i=r[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),i="";else nY(i)||this.useRawValueToEscape||(i=nO(i));let s=t.safeValue(i);if(e=e.replace(r[0],n7(s)),l?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let o,r,i,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let o=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${o[1]}`;e=o[0];let a=(r=this.interpolate(r,i)).match(/'/g),s=r.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${r}`}return i.defaultValue&&i.defaultValue.includes(this.prefix)&&delete i.defaultValue,e};for(;o=this.nestingRegexp.exec(e);){let s=[];(i=(i={...n}).replace&&!nY(i.replace)?i.replace:i).applyPostProcessor=!1,delete i.defaultValue;let d=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(-1!==d&&(s=o[1].slice(d).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),o[1]=o[1].slice(0,d)),(r=t(a.call(this,o[1].trim(),i),i))&&o[0]===e&&!nY(r))return r;nY(r)||(r=nO(r)),r||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${e}`),r=""),s.length&&(r=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:o[1].trim()}),r.trim())),e=e.replace(o[0],r),this.regexp.lastIndex=0}return e}}let oe=e=>{let t={};return(n,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});let a=o+JSON.stringify(i),s=t[a];return s||(s=e(nq(o),r),t[a]=s),s(n)}},ot=e=>(t,n,o)=>e(nq(n),o)(t);class on{constructor(e={}){this.logger=nJ.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?oe:ot;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=oe(t)}format(e,t,n,o={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),i=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;i.push(t)}return i.reduce((e,t)=>{let{formatName:r,formatOptions:i}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let o=e.split("(");t=o[0].toLowerCase().trim();let r=o[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...o]=e.split(":"),r=o.join(":").trim().replace(/^'+|'+$/g,""),i=t.trim();n[i]||(n[i]=r),"false"===r&&(n[i]=!1),"true"===r&&(n[i]=!0),isNaN(r)||(n[i]=parseInt(r,10))}}):n.range||(n.range=r.trim()):n.currency||(n.currency=r.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[r]){let t=e;try{let a=o?.formatParams?.[o.interpolationkey]||{},s=a.locale||a.lng||o.locale||o.lng||n;t=this.formats[r](e,s,{...i,...o,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class oo extends nK{constructor(e,t,n,o={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=o,this.logger=nJ.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,o.backend,o)}queueLoad(e,t,n,o){let r={},i={},a={},s={};return e.forEach(e=>{let o=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===i[a]&&(i[a]=!0):(this.state[a]=1,o=!1,void 0===i[a]&&(i[a]=!0),void 0===r[a]&&(r[a]=!0),void 0===s[t]&&(s[t]=!0)))}),o||(a[e]=!0)}),(Object.keys(r).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(r),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),!t&&n&&this.store.addResourceBundle(r,i,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:o,k:r}=nj(e,t,Object);o[r]=o[r]||[],o[r].push(n)})(n.loaded,[r],i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,o=0,r=this.retryTimeout,i){if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:i});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&o<this.maxRetries?setTimeout(()=>{this.read(e,t,n,o+1,2*r,i)},r):i(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();nY(e)&&(e=this.languageUtils.toResolveHierarchy(e)),nY(t)&&(t=[t]);let r=this.queueLoad(e,t,n,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),o=n[0],r=n[1];this.read(o,r,"read",void 0,void 0,(n,i)=>{n&&this.logger.warn(`${t}loading namespace ${r} for language ${o} failed`,n),!n&&i&&this.logger.log(`${t}loaded namespace ${r} for language ${o}`,i),this.loaded(e,n,i)})}saveMissing(e,t,n,o,r,i={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...i,isUpdate:r},d=this.backend.create.bind(this.backend);if(d.length<6)try{let r;(r=5===d.length?d(e,t,n,o,s):d(e,t,n,o))&&"function"==typeof r.then?r.then(e=>a(null,e)).catch(a):a(null,r)}catch(e){a(e)}else d(e,t,n,o,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,o)}}}let or=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),nY(e[1])&&(t.defaultValue=e[1]),nY(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),oi=e=>(nY(e.ns)&&(e.ns=[e.ns]),nY(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),nY(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),oa=()=>{};class os extends nK{constructor(e={},t){if(super(),this.options=oi(e),this.services={},this.logger=nJ,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(nY(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=or();this.options={...n,...this.options,...oi(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let o=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?nJ.init(o(this.modules.logger),this.options):nJ.init(null,this.options),e=this.modules.formatter?this.modules.formatter:on;let t=new n4(this.options);this.store=new nX(this.options.resources,this.options);let n=this.services;n.logger=nJ,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new n5(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=o(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new n9(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new oo(o(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=o(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=o(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new n2(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=oa),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let r=nx(),i=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?i():setTimeout(i,0),r}loadResources(e,t=oa){let n=t,o=nY(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};o?t(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let o=nx();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=oa),this.services.backendConnector.reload(e,t,e=>{o.resolve(),n(e)}),o}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&nQ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=nx();this.emit("languageChanging",e);let o=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},r=(r,i)=>{i?this.isLanguageChangingTo===e&&(o(i),this.translator.changeLanguage(i),this.isLanguageChangingTo=void 0,this.emit("languageChanged",i),this.logger.log("languageChanged",i)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(r,(...e)=>this.t(...e))},i=t=>{e||t||!this.services.languageDetector||(t=[]);let n=nY(t)?t:t&&t[0],i=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(nY(t)?[t]:t);i&&(this.language||o(i),this.translator.language||this.translator.changeLanguage(i),this.services.languageDetector?.cacheUserLanguage?.(i)),this.loadResources(i,e=>{r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),n}getFixedT(e,t,n,o){let r=o?.scopeNs,i=(e,t,...o)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(o)):{...t}).lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs;let d=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||i.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let c={...this.options,...a};Array.isArray(r)&&!d&&(c.ns=r),"function"==typeof a.keyPrefix&&(a.keyPrefix=n0(a.keyPrefix,c));let l=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=n0(e,c)),`${a.keyPrefix}${l}${e}`)):("function"==typeof e&&(e=n0(e,c)),s=a.keyPrefix?`${a.keyPrefix}${l}${e}`:e),this.t(s,a)};return nY(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let i=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,i);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(n,e)&&(!o||i(r,e)))}loadNamespaces(e,t){let n=nx();return this.options.ns?(nY(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=nx();nY(e)&&(e=[e]);let o=this.options.preload||[],r=e.filter(e=>!o.includes(e)&&this.services.languageUtils.isSupportedCode(e));return r.length?(this.options.preload=o.concat(r),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new n4(or());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new os(e,t);return n.createInstance=os.createInstance,n}cloneInstance(e={},t=oa){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let o={...this.options,...e,isClone:!0},r=new os(o);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},n&&(r.store=new nX(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,o)=>(n[o]={...e[t][o]},n),e[t]),e),{}),o),r.services.resourceStore=r.store),e.interpolation){let t={...or().interpolation,...this.options.interpolation,...e.interpolation},n={...o,interpolation:t};r.services.interpolator=new n9(n)}return r.translator=new n2(r.services,o),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(o,t),r.translator.options=o,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let od=os.createInstance();od.createInstance,od.dir,od.init,od.loadResources,od.reloadResources,od.use,od.changeLanguage,od.getFixedT,od.t,od.exists,od.setDefaultNamespace,od.hasLoadedNamespace,od.loadNamespaces,od.loadLanguages;var oc=n(4867),ol=n.n(oc);n(3472);class om{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}class ou{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>ou._evalValuePredicate(e.name,t)))&&(!this.attributes||ou._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!ou._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?ou._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||ou._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>ou._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>ou._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>ou._collectNames(e))]}}ou._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var of=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};let ob=n(4461);class oh{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),d=o.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let l=oh._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let u=l.providers;for(let e of(l.providers={},c)){let t=u&&u.hasOwnProperty(e)?u[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let f=a9.getAppName();f.length>0&&0>l.apps.indexOf(f)&&l.apps.push(f),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),d&&(this._autoEnable="TRUE"===d||"true"===d)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return of(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 e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return of(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return of(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return of(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(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return of(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new om,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>of(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return of(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield a9.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&oh._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return of(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.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 '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.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 t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:ob.name,version:ob.version,platform:ob.os.toString(),apps:[],model:((ob.manufacturer?ob.manufacturer+" ":"")+(ob.product?ob.product:"")).trim()}}_initialiseProvider(e){return of(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function op(e,t){return function(){return e.apply(t,arguments)}}let{toString:oF}=Object.prototype,{getPrototypeOf:o_}=Object,{iterator:og,toStringTag:oy}=Symbol,ok=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ov=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),oM=(e,t,n)=>e===Object.prototype||!n&&null===t,ow=(e,t)=>{let n=e,o=[];for(;null!=n&&-1===o.indexOf(n);){o.push(n);let r=o_(n);if(oM(n,r,n===e))break;if(ok(n,t))return!0;n=r}return!1},oD=(t=Object.create(null),e=>{let n=oF.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}),oL=e=>(e=e.toLowerCase(),t=>oD(t)===e),oE=e=>t=>typeof t===e,{isArray:oA}=Array,oT=oE("undefined");function oS(e){return null!==e&&!oT(e)&&null!==e.constructor&&!oT(e.constructor)&&ox(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oC=oL("ArrayBuffer"),oY=oE("string"),ox=oE("function"),oO=oE("number"),oB=e=>null!==e&&"object"==typeof e,oR=e=>{if(!oB(e))return!1;let t=o_(e);return(null===t||t===Object.prototype||null===o_(t))&&!ow(e,oy)&&!ow(e,og)},oP=oL("Date"),oj=oL("File"),oN=oL("Blob"),oI=oL("FileList"),oH=oL("Set"),oU="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},oW=void 0!==oU.FormData?oU.FormData:void 0,oz=oL("URLSearchParams"),[o$,oG,oq,oV]=["ReadableStream","Request","Response","Headers"].map(oL);function oJ(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oA(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oS(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function oK(e,t){let n;if(oS(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let oX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,oQ=e=>!oT(e)&&e!==oX,oZ=(r="u">typeof Uint8Array&&o_(Uint8Array),e=>r&&e instanceof r),o0=oL("HTMLFormElement"),{propertyIsEnumerable:o1}=Object.prototype,o2=oL("RegExp"),o4=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};oJ(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},o3=oL("AsyncFunction"),o6=(s="function"==typeof setImmediate,d=ox(oX.postMessage),s?setImmediate:d?(c=`axios@${Math.random()}`,l=[],oX.addEventListener("message",({source:e,data:t})=>{e===oX&&t===c&&l.length&&l.shift()()},!1),e=>{l.push(e),oX.postMessage(c,"*")}):e=>setTimeout(e)),o5="u">typeof queueMicrotask?queueMicrotask.bind(oX):"u">typeof process&&process.nextTick||o6,o8=e=>null!=e&&ox(e[og]),o7={isArray:oA,isArrayBuffer:oC,isBuffer:oS,isFormData:e=>{if(!e)return!1;if(oW&&e instanceof oW)return!0;let t=o_(e);if(!t||t===Object.prototype||!ox(e.append))return!1;let n=oD(e);return"formdata"===n||"object"===n&&ox(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oC(e.buffer)},isString:oY,isNumber:oO,isBoolean:e=>!0===e||!1===e,isObject:oB,isPlainObject:oR,isEmptyObject:e=>{if(!oB(e)||oS(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:o$,isRequest:oG,isResponse:oq,isHeaders:oV,isUndefined:oT,isDate:oP,isFile:oj,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:oN,isRegExp:o2,isFunction:ox,isStream:e=>oB(e)&&ox(e.pipe),isURLSearchParams:oz,isTypedArray:oZ,isFileList:oI,forEach:oJ,merge:function e(...t){let{caseless:n,skipUndefined:o}=oQ(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&oK(r,i)||i,s=ok(r,a)?r[a]:void 0;oR(s)&&oR(t)?r[a]=e(s,t):oR(t)?r[a]=e({},t):oA(t)?r[a]=t.slice():o&&oT(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oS(n)||(oJ(n,i),"object"!=typeof n||oA(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];o1.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(oJ(t,(t,o)=>{n&&ox(t)?Object.defineProperty(e,o,{__proto__:null,value:op(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&o_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oD,kindOfTest:oL,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oA(e))return e;let t=e.length;if(!oO(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[og]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:o0,hasOwnProperty:ok,hasOwnProp:ok,hasOwnInPrototypeChain:ow,getSafeProp:(e,t)=>null!=e&&ow(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=o_(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(ov(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),o=Object.create(null),r=[],i=e;for(;null!=i&&-1===r.indexOf(i);){r.push(i);let a=i===e?t:o_(i);if(oM(i,a,i===e))break;let s=Object.getOwnPropertyNames(i);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(i)),s))!ov(t)&&(ok(o,t)||(n[t]=e[t],o[t]=!0));i=a}return n},reduceDescriptors:o4,freezeMethods:e=>{o4(e,(t,n)=>{if(ox(e)&&["arguments","caller","callee"].includes(n))return!1;if(ox(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oA(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:oK,global:oX,isContextDefined:oQ,isSpecCompliantForm:function(e){return!!(e&&ox(e.append)&&"FormData"===e[oy]&&e[og])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(oB(e)){if(t.has(e))return;if(oS(e))return e;if(!("toJSON"in e)){let o;if(t.add(e),oH(e))for(let t of(o=[],e)){let e=n(t);oT(e)||o.push(e)}else o=oA(e)?[]:{},oJ(e,(e,t)=>{let r=n(e);oT(r)||(o[t]=r)});return t.delete(e),o}}return e};return n(e)},isAsyncFn:o3,isThenable:e=>e&&(oB(e)||ox(e))&&ox(e.then)&&ox(e.catch),setImmediate:o6,asap:o5,isIterable:o8,isSafeIterable:e=>null!=e&&ow(e,og)&&o8(e)},o9=o7.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"]),re=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rt=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rn(e,t){return o7.isArray(e)?e.map(e=>rn(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function ro(e){let t=Object.create(null);return o7.forEach(e.toJSON(),(e,n)=>{t[n]=rn(e,rt)}),t}let rr=Symbol("internals");function ri(e){return e&&String(e).trim().toLowerCase()}function ra(e){return!1===e||null==e?e:o7.isArray(e)?e.map(ra):rn(String(e),re)}let rs=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function rd(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function rc(e,t,n,o,r){if(o7.isFunction(o))return o.call(this,t,n);if(r&&(t=n),o7.isString(t)){if(o7.isString(o))return -1!==t.indexOf(o);if(o7.isRegExp(o))return o.test(t)}}class rl{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=ri(t);if(!r)return;let i=o7.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=ra(e))}let i=(e,t)=>o7.forEach(e,(e,n)=>r(e,n,t));if(o7.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(o7.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim();let t=o7.hasOwnProp(s,n);!n||t&&o7.hasOwnProp(o9,n)||("set-cookie"===n?t?s[n].push(o):s[n]=[o]:s[n]=t?s[n]+", "+o:o)}),s),t)}else if(o7.isObject(e)&&o7.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!o7.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],o7.hasOwnProp(n,r)?(o=n[r],n[r]=o7.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=ri(e)){let n=o7.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(o7.isFunction(t))return t.call(this,e,n);if(o7.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ri(e)){let n=o7.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rc(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=ri(e)){let r=o7.findKey(n,e);r&&(!t||rc(n,n[r],r,t))&&(delete n[r],o=!0)}}return o7.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rc(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return o7.forEach(this,(o,r)=>{let i=o7.findKey(n,r);if(i){t[i]=ra(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=ra(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return o7.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&o7.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return o7.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),o=0,r=!1,i=!1;function a(e){let r=rd(n.slice(o,e)),i=r.indexOf("=");if(i<1)return;let a=rd(r.slice(0,i));if(!rs.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let d=rd(r.slice(i+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let o=1;o<t;o++){let r=e.charCodeAt(o);if(34===r||92===r&&(o+=1)>=t)return e;n+=e[o]}return n}(d)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);r?i?i=!1:92===t?i=!0:34===t&&(r=!1):34===t?r=!0:(44===t||59===t)&&(a(e),o=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rr]=this[rr]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=ri(e);if(!t[o]){let r;r=o7.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return o7.isArray(e)?e.forEach(o):o(e),this}}rl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),o7.reduceDescriptors(rl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),o7.freezeMethods(rl);let rm="[REDACTED ****]";function ru(e){try{return String(e)}catch(e){return""}}class rf extends Error{static from(e,t,n,o,r,i){let a=e.message;!a&&o7.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?ru(e.message):ru(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new rf(a,t||e.code,n,o,r);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&o7.hasOwnProp(o,"redact")?o.redact:void 0,i=o7.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||o7.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rl&&(o=o.toJSON()),t.push(o),o7.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);o7.isUndefined(o)||(r[t]=o)});else{if(!o7.isPlainObject(o)&&function(e){if(o7.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(o7.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?rm:n(i);o7.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):o7.toJSONObject(o);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:i,code:this.code,status:this.status}}}rf.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rf.ERR_BAD_OPTION="ERR_BAD_OPTION",rf.ECONNABORTED="ECONNABORTED",rf.ETIMEDOUT="ETIMEDOUT",rf.ECONNREFUSED="ECONNREFUSED",rf.ERR_NETWORK="ERR_NETWORK",rf.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rf.ERR_DEPRECATED="ERR_DEPRECATED",rf.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rf.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rf.ERR_CANCELED="ERR_CANCELED",rf.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rf.ERR_INVALID_URL="ERR_INVALID_URL",rf.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rb=rf;function rh(e){return o7.isPlainObject(e)||o7.isArray(e)}function rp(e){return o7.endsWith(e,"[]")?e.slice(0,-2):e}function rF(e,t,n){return e?e.concat(t).map(function(e,t){return e=rp(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let r_=o7.toFlatObject(o7,{},null,function(e){return/^is[A-Z]/.test(e)}),rg=function(e,t,n){if(!o7.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(e,t)=>{let o=o7.getSafeProp(n,e);return o7.isUndefined(o)?t:o},r=o("metaTokens",!0),i=o("visitor")||b,a=o("dots",!1),s=o("indexes",!1),d=o("Blob")||"u">typeof Blob&&Blob,c=o("maxDepth",100),l=d&&o7.isSpecCompliantForm(t),m=[];if(!o7.isFunction(i))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(o7.isDate(e))return e.toISOString();if(o7.isBoolean(e))return e.toString();if(!l&&o7.isBlob(e))throw new rb("Blob is not supported. Use a Buffer instead.");if(o7.isArrayBuffer(e)||o7.isTypedArray(e)){if(l&&"function"==typeof d)return new d([e]);throw new rb("Blob is not supported. Use a Buffer instead.",rb.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rb("Object is too deeply nested ("+e+" levels). Max depth: "+c,rb.ERR_FORM_DATA_DEPTH_EXCEEDED)}function b(e,n,o){let i=e;if(o7.isReactNative(t)&&o7.isReactNativeBlob(e))return t.append(rF(o,n,a),u(e)),!1;if(e&&!o&&"object"==typeof e)if(o7.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!o7.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(o7.isArray(e)&&(d=e,o7.isArray(d)&&!d.some(rh))||(o7.isFileList(e)||o7.endsWith(n,"[]"))&&(i=o7.toArray(e)))return n=rp(n),i.forEach(function(e,o){o7.isUndefined(e)||null===e||t.append(!0===s?rF([n],o,a):null===s?n:n+"[]",u(e))}),!1}return!!rh(e)||(t.append(rF(o,n,a),u(e)),!1)}let h=Object.assign(r_,{defaultVisitor:b,convertValue:u,isVisitable:rh});if(!o7.isObject(e))throw TypeError("data must be an object");return!function e(n,o,r=0){if(!o7.isUndefined(n)){if(f(r),-1!==m.indexOf(n))throw Error("Circular reference detected in "+o.join("."));m.push(n),o7.forEach(n,function(n,a){!0===(!(o7.isUndefined(n)||null===n)&&i.call(t,n,o7.isString(a)?a.trim():a,o,h))&&e(n,o?o.concat(a):[a],r+1)}),m.pop()}}(e),t};function ry(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rk(e,t){this._pairs=[],e&&rg(e,this,t)}let rv=rk.prototype;function rM(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rw(e,t,n){let o;if(!t)return e;e=e||"";let r=o7.isFunction(n)?{serialize:n}:n,i=o7.getSafeProp(r,"encode")||rM,a=o7.getSafeProp(r,"serialize");if(o=a?a(t,r):o7.isURLSearchParams(t)?t.toString():new rk(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}rv.append=function(e,t){this._pairs.push([e,t])},rv.toString=function(e){let t=e?t=>e.call(this,t,ry):ry;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rD=Symbol("internals");function rL(e){return e?e.length:0}function rE(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function rA(e,t){let n=e.handlers,o=rL(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):o!==t.handlersLength&&(o?t.handlerEntries.forEach(function(e,o){n[e.index]!==e.handler&&t.handlerEntries.delete(o)}):t.handlerEntries.clear()),t.handlersLength=o}let rT=class{constructor(){this.handlers=[],this[rD]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let o={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},r=this[rD];null==this.handlers&&(this.handlers=[]),rA(this,r);let i=r.nextId++;return this.handlers.push(o),r.handlerEntries.set(i,{handler:o,index:this.handlers.length-1}),r.handlersLength=this.handlers.length,i}eject(e){let t=this[rD];rA(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(rE(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],rA(this,this[rD]))}forEach(e){let t=this[rD];rA(this,t),t.iterationDepth++;try{o7.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(rA(this,t),rE(this.handlers),t.handlersLength=rL(this.handlers))}}},rS={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rC="u">typeof URLSearchParams?URLSearchParams:rk,rY="u">typeof FormData?FormData:null,rx="u">typeof Blob?Blob:null,rO="u">typeof window&&"u">typeof document,rB="object"==typeof navigator&&navigator||void 0,rR=rO&&(!rB||0>["ReactNative","NativeScript","NS"].indexOf(rB.product)),rP="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rj=rO&&window.location.href||"http://localhost",rN={...tD,isBrowser:!0,classes:{URLSearchParams:rC,FormData:rY,Blob:rx},protocols:["http","https","file","blob","url","data"]};function rI(e){if(e>100)throw new rb("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rb.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rH=function(e){if(o7.isFormData(e)&&o7.isFunction(e.entries)){let t={};return o7.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rI(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&o7.isArray(o)?o.length:i,s)?o7.hasOwnProp(o,i)?o[i]=o7.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(o7.hasOwnProp(o,i)&&o7.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&o7.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=o.exec(e));)rI(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rU=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),rW=(e,t)=>null!=e&&o7.hasOwnProp(e,t)?e[t]:void 0,rz={transitional:rS,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=o7.isObject(e);if(i&&o7.isHTMLForm(e)&&(e=new FormData(e)),o7.isFormData(e))return r?JSON.stringify(rH(e)):e;if(o7.isArrayBuffer(e)||o7.isBuffer(e)||o7.isStream(e)||o7.isFile(e)||o7.isBlob(e)||o7.isReadableStream(e))return e;if(o7.isArrayBufferView(e))return e.buffer;if(o7.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rW(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rg(e,new rN.classes.URLSearchParams,{visitor:function(e,t,n,o){return rN.isNode&&o7.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=o7.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rW(this,"env"),r=o&&o.FormData;return rg(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(o7.isString(a))try{return(0,JSON.parse)(a),o7.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rW(this,"transitional")||rz.transitional,n=t&&t.forcedJSONParsing,o=rW(this,"responseType"),r="json"===o;if(o7.isResponse(e)||o7.isReadableStream(e))return e;if(e&&o7.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rW(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rb.from(e,rb.ERR_BAD_RESPONSE,this,null,rW(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rN.classes.FormData,Blob:rN.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r$(e,t){let n=this||rz,o=t||n,r=rl.from(o.headers),i=o.data;return o7.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rG(e){return!!(e&&e.__CANCEL__)}o7.forEach(rU,e=>{rz.headers[e]={}});let rq=class extends rb{constructor(e,t,n){super(null==e?"canceled":e,rb.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function rV(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rb("Request failed with status code "+n.status,n.status>=400&&n.status<500?rb.ERR_BAD_REQUEST:rb.ERR_BAD_RESPONSE,n.config,n.request,n))}let rJ=/[\t\n\r]/g;function rK(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(rJ,"")}function rX(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let rQ=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let d=Date.now(),c=r[a];n||(n=d),o[i]=s,r[i]=d;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),d-n<t)return;let u=c&&d-c;return u?Math.round(1e3*m/u):void 0}},rZ=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n),(...e)=>a(e)]},r0=(e,t,n=3)=>{let o=0,r=rQ(50,250);return rZ(n=>{if(!n||!o7.isNumber(n.loaded))return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(i,a):i),d=Math.max(0,s-o),c=r(d);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:d,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r1=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},r2=(e,t=o7.asap)=>(...n)=>t(()=>e(...n)),r4=rN.hasStandardBrowserEnv?(i=new URL(rN.origin),a=rN.navigator&&/(msie|trident)/i.test(rN.navigator.userAgent),e=>(e=new URL(e,rN.origin),i.protocol===e.protocol&&i.host===e.host&&(a||i.port===e.port))):()=>!0,r3=rN.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];o7.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),o7.isString(o)&&s.push(`path=${o}`),o7.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),o7.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r6=/^https?:(?!\/\/)/i;function r5(e,t){if("string"==typeof e){let o=rK(e);if(r6.test(o)){var n;let e,r,i;throw new rb(`Invalid URL ${JSON.stringify((i=(-1===(r=(e=o.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${rm}@`)).indexOf("#"))?e:e.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${rm}`),-1===r?i:`${i}#${!(n=e.slice(r+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${rm}`)}`))}: missing "//" after protocol`,rb.ERR_INVALID_URL,t)}}}function r8(e,t,n,o){r5(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(r||!1===n)){r5(e,o);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let r7=e=>e instanceof rl?{...e}:e;function r9(e,t){var n;e=e||{},t=t||{};let o=Object.create(null);function r(e,t,n,o){return o7.isPlainObject(e)&&o7.isPlainObject(t)?o7.merge.call({caseless:o},e,t):o7.isPlainObject(t)?o7.merge({},t):o7.isArray(t)?t.slice():t}function i(e,t,n,o){return o7.isUndefined(t)?o7.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function a(e,t){if(!o7.isUndefined(t))return r(void 0,t)}function s(e,t){return o7.isUndefined(t)?o7.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function d(n,o,i){return o7.hasOwnProp(t,i)?r(n,o):o7.hasOwnProp(e,i)?r(void 0,n):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:d,headers:(e,t,n)=>i(r7(e),r7(t),n,!0)};return o7.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let r=o7.hasOwnProp(c,n)?c[n]:i,a=r(o7.hasOwnProp(e,n)?e[n]:void 0,o7.hasOwnProp(t,n)?t[n]:void 0,n);o7.isUndefined(a)&&r!==d||(o[n]=a)}),o7.hasOwnProp(t,"validateStatus")&&o7.isUndefined(t.validateStatus)&&!1===function(n){let o=o7.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!o7.isUndefined(o)){if(!o7.isPlainObject(o))return;else if(o7.hasOwnProp(o,n))return o[n]}let r=o7.hasOwnProp(e,"transitional")?e.transitional:void 0;if(o7.isPlainObject(r)&&o7.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(o7.hasOwnProp(e,"validateStatus")?o.validateStatus=r(void 0,e.validateStatus):delete o.validateStatus),o}let ie=["content-type","content-length"],it=function(e){let t=r9({},e),n=e=>o7.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),d=n("auth"),c=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rl.from(s),t.url=rw(r8(c,m,l,t),n("params"),n("paramsSerializer")),d){let t=o7.getSafeProp(d,"username")||"",n=o7.getSafeProp(d,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rb.from(t,rb.ERR_BAD_OPTION_VALUE,e)}}if(o7.isFormData(o)){let e=o7.getSafeProp(o,"getHeaders");if(rN.hasStandardBrowserEnv||rN.hasStandardBrowserWebWorkerEnv||o7.isReactNative(o))s.setContentType(void 0);else{var u,f;o7.isFunction(e)&&(u=s,f=e.call(o),"content-only"!==n("formDataHeaderPolicy")?u.set(f):Object.entries(f||{}).forEach(([e,t])=>{ie.includes(e.toLowerCase())&&u.set(e,t)}))}}if(rN.hasStandardBrowserEnv&&(o7.isFunction(r)&&(r=r(t)),!0===r||null==r&&r4(t.url))){let e=i&&a&&r3.read(a);e&&s.set(i,e)}return t},io="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let o,r,i,a,s,d,c=it(e),l=c.data,m=rl.from(c.headers).normalize(),{responseType:u,onUploadProgress:f,onDownloadProgress:b}=c;function h(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let p=new XMLHttpRequest;function F(o){if(!p)return;if(0===p.status&&"file"!==(rX(rK(c.url))||rX(rN.origin))&&!(p.responseURL&&p.responseURL.startsWith("file:"))){n(new rb("Request aborted",rb.ECONNABORTED,e,p)),h(),p=null;return}try{o?d&&d(o):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!p)return;let r=rl.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());rV(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(c.method.toUpperCase(),c.url,!0),p.timeout=c.timeout,"onloadend"in p?p.onloadend=F:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(F)},p.onabort=function(){p&&(n(new rb("Request aborted",rb.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let o=new rb(t&&t.message?t.message:"Network Error",rb.ERR_NETWORK,e,p);o.event=t||null,n(o),h(),p=null},p.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",o=c.transitional||rS;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new rb(t,o.clarifyTimeoutError?rb.ETIMEDOUT:rb.ECONNABORTED,e,p)),h(),p=null},void 0===l&&m.setContentType(null),"setRequestHeader"in p&&o7.forEach(ro(m),function(e,t){p.setRequestHeader(t,e)}),o7.isUndefined(c.withCredentials)||(p.withCredentials=!!c.withCredentials),u&&"json"!==u&&(p.responseType=c.responseType),b&&([i,s,d]=r0(b,!0),p.addEventListener("progress",i)),f&&p.upload&&([r,a]=r0(f),p.upload.addEventListener("progress",r),p.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{p&&(n(!t||t.type?new rq(null,e,p):t),p.abort(),h(),p=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o)));let _=rX(c.url);if(_&&!rN.protocols.includes(_)){n(new rb("Unsupported protocol "+_+":",rb.ERR_BAD_REQUEST,e)),h();return}p.send(l||null)})},ir=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ii=async function*(e,t){for await(let n of ia(e))yield*ir(n,t)},ia=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},is=(e,t,n,o)=>{let r,i=ii(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},id=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ic=(e,t,n)=>t+2<n&&id(e.charCodeAt(t+1))&&id(e.charCodeAt(t+2)),il=e=>e<=57?e-48:(223&e)-55,im=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,iu=e=>9===e||10===e||12===e||13===e||32===e,ib=e=>{var t;let n,o,r=e.length,i=0,a=0,s=!1;for(let t=0;t<r;t++){let n=e.charCodeAt(t);if(37===n&&ic(e,t,r)&&(n=16*il(e.charCodeAt(t+1))+il(e.charCodeAt(t+2)),t+=2),!iu(n)){if(61===n){a++;continue}if(!im(n)||a>0){s=!0;continue}i++}}if(s||a>2||a>0&&(i+a)%4!=0||i%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=i)/4),3*n+(2==(o=t%4)?1:2*(3===o))},ih={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ip}=o7,iF=e=>{if(!o7.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},i_=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ig=e=>{let t,n=void 0!==o7.global&&null!==o7.global?o7.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=o7.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),d=i?ip(i):"function"==typeof fetch,c=ip(a),l=ip(s);if(!d)return!1;let m=d&&ip(o),u=d&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&m&&i_(()=>{let e=!1,t=new a(rN.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&i_(()=>o7.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};d&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rb(`Response type '${e}' is not supported`,rb.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(o7.isBlob(e))return e.size;if(o7.isSpecCompliantForm(e)){let t=new a(rN.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return o7.isArrayBufferView(e)||o7.isArrayBuffer(e)?e.byteLength:(o7.isURLSearchParams(e)&&(e+=""),o7.isString(e))?(await u(e)).byteLength:void 0},F=async(e,t)=>{let n=o7.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:d,signal:l,cancelToken:u,timeout:_,onDownloadProgress:g,onUploadProgress:y,responseType:k,headers:v,withCredentials:M="same-origin",fetchOptions:w,maxContentLength:D,maxBodyLength:L,maxRedirects:E}=it(e),A=o7.isNumber(D)&&D>-1,T=o7.isNumber(L)&&L>-1,S=i||fetch;k=k?(k+"").toLowerCase():"text";let C=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rb?t:new rq(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rb(`timeout of ${t}ms exceeded`,rb.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>{if(!o){if(e.aborted)return void r.call(e);e.addEventListener("abort",r,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>o7.asap(a),s})([l,u&&u.toAbortSignal()],_),Y=null,x=C&&C.unsubscribe&&(()=>{C.unsubscribe()}),O=null,B=()=>new rb("Request body larger than maxBodyLength limit",rb.ERR_BAD_REQUEST,e,Y);try{var R,P;let i,l,u,_,j=(l="auth",o7.hasOwnProp(e,l)?e[l]:void 0);if(j){let e=o7.getSafeProp(j,"username")||"",t=o7.getSafeProp(j,"password")||"";i={username:e,password:t}}if(u=(R=n).indexOf("://"),_=R,-1!==u&&(_=_.slice(u+3)),_.includes("@")||_.includes(":")){let e=new URL(n,rN.origin);if(!i&&(e.username||e.password)){let t=iF(e.username),n=iF(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;v.delete("authorization"),v.set("Authorization","Basic "+btoa((e=(i.username||"")+":"+(i.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")){let t;if(P=n,t="string"==typeof P?P.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let o=e.slice(5,n),r=e.slice(n+1);if(/;base64/i.test(o))return t(r);let i=0;for(let e=0,t=r.length;e<t;e++){let n=r.charCodeAt(e);if(37===n&&ic(r,e,t))i+=1,e+=2;else if(n<128)i+=1;else if(n<2048)i+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=r.charCodeAt(e+1);t>=56320&&t<=57343?(i+=4,e++):i+=3}else i+=3}return i})(-1===t?P:P.slice(0,t),ib)>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}if(T&&"get"!==o&&"head"!==o){let e=await p(d);if("number"==typeof e&&isFinite(e)&&(t=e,e>L))throw B()}let N=T&&(o7.isReadableStream(d)||o7.isStream(d)),I=(e,t,n)=>is(e,65536,e=>{if(T&&e>L)throw O=B();t&&t(e)},n);if(f&&"get"!==o&&"head"!==o&&(y||N)){if(t=null==t?await F(v,d):t,0!==t||N){let e,o=new a(n,{method:"POST",body:d,duplex:"half"});if(o7.isFormData(d)&&(e=o.headers.get("content-type"))&&v.setContentType(e),o.body){let[e,n]=y&&r1(t,r0(r2(y)))||[];d=I(o.body,e,n)}}}else if(N&&!c&&m&&"get"!==o&&"head"!==o)d=I(d);else if(N&&c&&!f&&"get"!==o&&"head"!==o)throw new rb("Stream request bodies are not supported by the current fetch implementation",rb.ERR_NOT_SUPPORT,e,Y);o7.isString(M)||(M=M?"include":"omit");let H=c&&"credentials"in a.prototype;if(o7.isFormData(d)){let e=v.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&v.delete("content-type")}v.set("User-Agent","axios/1.20.0",!1);let U=null==w?w:Object.assign(Object.create(null),w);U&&(delete U.body,delete U.headers,delete U.method,delete U.signal,delete U.duplex,delete U.credentials);let W=Object.assign(Object.create(null),U,{signal:C,method:o.toUpperCase(),headers:ro(v.normalize()),body:d,duplex:"half",credentials:H?M:void 0});c&&(o7.forEach(ih,(e,t)=>{void 0===W[t]&&(W[t]=e)}),void 0===W.signal&&(W.signal=null),void 0===W.body&&(W.body=null)),0===E&&(W.redirect="manual",U&&(U.redirect="manual")),Y=c&&new a(n,W);let z=await (c?S(Y,U):S(n,W)),G=rl.from(z.headers);if(A){let t=o7.toFiniteNumber(G.getContentLength());if(null!=t&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}let q=b&&("stream"===k||"response"===k);if(b&&z.body&&(g||A||q&&x)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=o7.toFiniteNumber(G.getContentLength()),[o,r]=g&&r1(n,r0(r2(g),!0))||[];z=new s(is(z.body,65536,t=>{if(A&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y);o&&o(t)},()=>{r&&r(),x&&x()}),t)}k=k||"text";let V=await h[o7.findKey(h,k)||"text"](z,e);if(A&&!b&&!q){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof r?new r().encode(V).byteLength:V.length)),"number"==typeof t&&t>D)throw new rb("maxContentLength size of "+D+" exceeded",rb.ERR_BAD_RESPONSE,e,Y)}return!q&&x&&x(),await new Promise((t,n)=>{rV(t,n,{data:V,headers:rl.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:Y})})}catch(t){if(x&&x(),C&&C.aborted&&C.reason instanceof rb){let n=C.reason;throw n.config=e,Y&&(n.request=Y),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw Y&&!O.request&&(O.request=Y),O;if(t instanceof rb)throw Y&&!t.request&&(t.request=Y),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rb("Network Error",rb.ERR_NETWORK,e,Y,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rb.from(t,t&&t.code,e,Y,t&&t.response)}}},iy=new Map,ik=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,d,c=iy;for(;a--;)s=i[a],void 0===(d=c.get(s))&&c.set(s,d=a?new Map:ig(t)),c=d;return d};ik();let iv={http:null,xhr:io,fetch:{get:ik}};o7.forEach(iv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iM=e=>`- ${e}`,iw=e=>o7.isFunction(e)||null===e||!1===e,iD=function(e,t){let n,o,{length:r}=e=o7.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iw(n)&&void 0===(o=iv[(r=String(n)).toLowerCase()]))throw new rb(`Unknown adapter '${r}'`);if(o&&(o7.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rb("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iM).join("\n"):" "+iM(e[0]):"as no adapter specified"),rb.ERR_NOT_SUPPORT)}return o};function iL(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new rq(null,e)}function iE(e){let t=o7.toSafeFlatObject(e);return iL(t),t.headers=rl.from(o7.getSafeProp(t,"headers")),t.data=r$.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),iD(t.adapter||rz.adapter,t)(t).then(function(e){iL(t),t.response=e;try{e.data=r$.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=rl.from(e.headers),e},function(e){if(!rG(e)&&(iL(t),e&&e.response)){t.response=e.response;try{e.response.data=r$.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=rl.from(e.response.headers)}return Promise.reject(e)})}let iA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iA[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iT={};iA.transitional=function(e,t,n){function o(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rb(o(r," has been removed"+(t?" in "+t:"")),rb.ERR_DEPRECATED);return t&&!iT[r]&&(iT[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iA.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let iS=function(e,t,n){if("object"!=typeof e||null===e)throw new rb("options must be an object",rb.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rb("option "+i+" must be "+n,rb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rb("Unknown option "+i,rb.ERR_BAD_OPTION)}};class iC{constructor(e){this.defaults=e||{},this.interceptors={request:new rT,response:new rT}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,o="";if("string"==typeof n){let e=n.indexOf("\n");o=-1===e?"":n.slice(e+1)}if(e.stack){if(o){let t=o.indexOf("\n"),n=-1===t?-1:o.indexOf("\n",t+1),r=-1===n?"":o.slice(n+1);String(e.stack).endsWith(r)||(e.stack+="\n"+o)}}else e.stack=o}catch(e){}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=r9(this.defaults,t);void 0!==r&&iS(r,{silentJSONParsing:iA.transitional(iA.boolean),forcedJSONParsing:iA.transitional(iA.boolean),clarifyTimeoutError:iA.transitional(iA.boolean),legacyInterceptorReqResOrdering:iA.transitional(iA.boolean),advertiseZstdAcceptEncoding:iA.transitional(iA.boolean),validateStatusUndefinedResolves:iA.transitional(iA.boolean)},!1),null!=i&&(o7.isFunction(i)?t.paramsSerializer={serialize:i}:iS(i,{encode:iA.function,serialize:iA.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iS(t,{baseUrl:iA.spelling("baseURL"),withXsrfToken:iA.spelling("withXSRFToken")},!0),t.method=(o7.getSafeProp(t,"method")||o7.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&o7.merge(a.common,a[t.method]);a&&o7.forEach(rU.concat("common"),e=>{delete a[e]}),t.headers=rl.concat(s,a);let d=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||rS;n&&n.legacyInterceptorReqResOrdering?d.unshift(e.fulfilled,e.rejected):d.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!c){let e=[iE.bind(this),void 0];for(e.unshift(...d),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=d.length;let u=t;for(;m<o;){let e=d[m++],t=d[m++];try{u=e?e(u):u}catch(e){if(!t){n=Promise.reject(e);break}try{let o=t.call(this,e);o7.isThenable(o)&&(n=Promise.resolve(o).then(()=>iE.call(this,u)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=iE.call(this,u)}catch(e){n=Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rw(r8((e=r9(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}o7.forEach(["delete","get","head","options"],function(e){iC.prototype[e]=function(t,n){return this.request(r9(n||{},{method:e,url:t,data:n&&o7.hasOwnProp(n,"data")?n.data:void 0}))}}),o7.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(r9(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iC.prototype[e]=t(),"query"!==e&&(iC.prototype[e+"Form"]=t(!0))});let iY=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new rq(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},ix={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ix).forEach(([e,t])=>{void 0===ix[t]&&(ix[t]=e)});let iO=function e(t){let n=new iC(t),o=op(iC.prototype.request,n);return o7.extend(o,iC.prototype,n,{allOwnKeys:!0}),o7.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(r9(t,n))},o}(rz);iO.Axios=iC,iO.CanceledError=rq,iO.CancelToken=iY,iO.isCancel=rG,iO.VERSION="1.20.0",iO.toFormData=rg,iO.AxiosError=rb,iO.Cancel=iO.CanceledError,iO.all=function(e){return Promise.all(e)},iO.spread=function(e){return function(t){return e.apply(null,t)}},iO.isAxiosError=function(e){return o7.isObject(e)&&!0===e.isAxiosError},iO.mergeConfig=r9,iO.AxiosHeaders=rl,iO.formToJSON=e=>rH(o7.isHTMLForm(e)?new FormData(e):e),iO.getAdapter=iD,iO.HttpStatusCode=ix,iO.default=iO;class iB{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i4`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i4`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i4`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:i4`dashboard/${e}/${t}`,options:n})}}class iR{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i4`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i4`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i4`apps/info`,options:e})}}class iP{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i4`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i4`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i4`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:i4`provisioning/${e}`,data:t,options:n})}}class ij{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i4`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:i4`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class iN{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i4`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i4`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`asset/datapoint/${e}/${t}`,data:n,options:o})}}class iI{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i4`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i4`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i4`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i4`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:i4`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:i4`service/${e}/${t}`,options:n})}}class iH{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i4`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i4`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:i4`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i4`gateway/status/${e}`,options:t})}}class iU{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i4`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i4`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i4`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i4`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:i4`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i4`map/upload`,queryParams:e,options:t})}}class iW{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i4`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i4`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i4`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i4`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i4`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i4`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i4`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i4`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i4`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i4`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`rules/${e}`,data:t,options:n})}}class iz{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i4`console/register`,data:e,options:t})}}class i${constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i4`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i4`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i4`flow/${e}`,options:t})}}class iG{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i4`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i4`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i4`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i4`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i4`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i4`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i4`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i4`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:i4`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i4`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:i4`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:i4`user/${e}/${t}`,options:n})}}class iq{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i4`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i4`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i4`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i4`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i4`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:i4`notification/${e}/delivered`,queryParams:t,options:n})}}class iV{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`asset/predicted/${e}/${t}`,data:n,options:o})}}class iJ{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:i4`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i4`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i4`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i4`model/valueDescriptors`,queryParams:e,options:t})}}class iK{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i4`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i4`info`,options:e})}}class iX{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i4`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:i4`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i4`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class iQ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i4`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i4`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i4`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i4`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i4`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i4`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i4`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i4`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i4`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i4`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i4`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i4`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:i4`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:i4`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:i4`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:i4`asset/${e}/child`,queryParams:t,options:n})}}class iZ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i4`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i4`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i4`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i4`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i4`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i4`realm/${e}`,data:t,options:n})}}class i0{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:i4`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i4`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i4`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i4`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i4`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i4`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:i4`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:i4`alarm/${e}/assets`,queryParams:t,options:n})}}class i1{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i4`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i4`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:i4`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i4`configuration/manager/image/${e}`,options:t})}}class i2{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i4`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i4`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i4`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i4`syslog/event`,queryParams:e,options:t})}}function i4(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class i3{constructor(e,t=iO.create()){this._dashboardResource=new i5(e,t),this._appResource=new i8(e,t),this._provisioningResource=new i7(e,t),this._gatewayServiceResource=new i9(e,t),this._assetDatapointResource=new ae(e,t),this._externalServiceResource=new at(e,t),this._gatewayClientResource=new an(e,t),this._mapResource=new ao(e,t),this._rulesResource=new ar(e,t),this._consoleResource=new ai(e,t),this._flowResource=new aa(e,t),this._userResource=new as(e,t),this._notificationResource=new ad(e,t),this._assetPredictedDatapointResource=new ac(e,t),this._assetModelResource=new al(e,t),this._statusResource=new am(e,t),this._agentResource=new au(e,t),this._assetResource=new af(e,t),this._realmResource=new ab(e,t),this._alarmResource=new ah(e,t),this._configurationResource=new ap(e,t),this._syslogResource=new aF(e,t),this._assetResource=new af(e,t)}get DashboardResource(){return this._dashboardResource}get AppResource(){return this._appResource}get ProvisioningResource(){return this._provisioningResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayClientResource(){return this._gatewayClientResource}get MapResource(){return this._mapResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get FlowResource(){return this._flowResource}get UserResource(){return this._userResource}get NotificationResource(){return this._notificationResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AssetModelResource(){return this._assetModelResource}get StatusResource(){return this._statusResource}get AgentResource(){return this._agentResource}get AssetResource(){return this._assetResource}get RealmResource(){return this._realmResource}get AlarmResource(){return this._alarmResource}get ConfigurationResource(){return this._configurationResource}get SyslogResource(){return this._syslogResource}}class i6{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class i5 extends iB{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i8 extends iR{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i7 extends iP{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class i9 extends ij{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ae extends iN{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class at extends iI{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class an extends iH{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ao extends iU{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ar extends iW{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ai extends iz{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class aa extends i${constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class as extends iG{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ad extends iq{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ac extends iV{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class al extends iJ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class am extends iK{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class au extends iX{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class af extends iQ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ab extends iZ{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ah extends i0{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class ap extends i1{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}class aF extends i2{constructor(e,t=iO.create()){t.defaults.baseURL=e,super(new i6(t))}}var a_=n(8183),ag=n.n(a_);iO.isAxiosError;let ay=new class{get api(){return this._client}constructor(){this._axiosInstance=iO.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ag().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new i3(e,this._axiosInstance)}};var ak=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{d(o.next(e))}catch(e){i(e)}}function s(e){try{d(o.throw(e))}catch(e){i(e)}}function d(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}d((o=o.apply(e,t||[])).next())})};(ey=tv||(tv={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let av="SUBSCRIBED:",aM="UNAUTHORIZED:",aw="TRIGGERED:",aD="EVENT:";class aL{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aE.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tv.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(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tv.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(tv.CONNECTING),this._connectingDeferred=new om,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aE.MIN_RECONNECT_DELAY,this._onStatusChanged(tv.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==tv.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new om};return null!=this._pendingSubscription||this._status!==tv.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ak(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tv.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tv.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aL._subscriptionCounter++;if(!this._assetEventPromise){let e;a9.authenticated||(e={filterType:"asset",realm:a9.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===a9.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aL._subscriptionCounter++;if(!this._attributeEventPromise){let e;a9.authenticated||(e={filterType:"asset",realm:a9.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===a9.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tv.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tv.CONNECTED&&this._onStatusChanged(tv.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tv.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<aE.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aE.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aL.MIN_RECONNECT_DELAY=0,aL.MAX_RECONNECT_DELAY=3e4,aL._subscriptionCounter=0;class aE extends aL{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+a9.config.realm;return this._connectDeferred=new om,(a9.authenticated?a9.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(av)){let e=JSON.parse(t.substring(av.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aM)){let e=JSON.parse(t.substring(aM.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aw)){let e=JSON.parse(t.substring(aw.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aD)){let e=JSON.parse(t.substring(aD.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new om,e.subscriptionId||(e.subscriptionId=aE._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=aD+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new om;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aD+JSON.stringify(e)),t.promise}}aE._subscriptionCounter=1;let aA=["__proto__","constructor","prototype"];function aT(e){return!("string"!=typeof e||0===e.length||e.length>128||aA.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aS(e){return!(!aT(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let aC={lng:aS,ns:function(e){return!(!aT(e)||e.indexOf("//")>-1)}};function aY(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function ax(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aO=/\{\{(.+?)\}\}/g;function aB(e,t){let n=!1,o=e.replace(aO,(e,o)=>{let r=o.trim();if(aA.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aC[r]||aS,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let aR="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:aR&&"function"==typeof aR.fetch&&(e=aR.fetch);let aP=ax()&&aR?aR.XMLHttpRequest:void 0,aj="function"==typeof ActiveXObject&&aR?aR.ActiveXObject:void 0,aN=["__proto__","constructor","prototype"],aI=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aN.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aH=(t,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let e=r(t,n);if(e instanceof Promise)return void e.then(i).catch(o)}"function"==typeof fetch?fetch(t,n).then(i).catch(o):e(t,n).then(i).catch(o)},aU=(t,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),e&&0!==n.indexOf("file:")){var i=n,a=o,s=r;t.queryStringParams&&(i=aI(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let d="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:d},l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{aH(i,c,s,l)}catch(e){if(!d||0===Object.keys(d).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(d).forEach(e=>{delete c[e]}),aH(i,c,s,l),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(ax()||"function"==typeof ActiveXObject){var d=n,c=o,l=r;c&&"object"==typeof c&&(c=aI("",c).slice(1)),t.queryStringParams&&(d=aI(d,t.queryStringParams));try{let e=aP?new aP:new aj("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",d,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))aN.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&l(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var aW=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aU,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aB(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(aY).join(", ")+"] namespaces=["+n.map(aY).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=aY(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+aY(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],d=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let c=aB(o,{lng:n,ns:t});if(null==c){a+=1,r&&a===e.length&&r(s,d);return}this.options.request(this.options,c,i,(t,n)=>{a+=1,s.push(t),d.push(n),a===e.length&&"function"==typeof r&&r(s,d)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};aW.type="backend";let az=e=>(...t)=>({_$litDirective$:e,values:t});class a${constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class aG extends a${constructor(e){if(super(e),this.it=ni,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ni||null==e)return this._t=void 0,this.it=e;if(e===nr)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}aG.directiveName="unsafeHTML",aG.resultType=1,az(aG);class aq extends aG{}aq.directiveName="unsafeSVG",aq.resultType=2;let aV=az(aq),aJ={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var aK=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class aX extends CustomEvent{constructor(){super(aX.NAME,{bubbles:!0,composed:!0})}}aX.NAME="or-iconset-added";let aQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new aX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return no``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):no``}},aZ=class extends nM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tY`
11
11
  :host {
12
12
  --internal-or-icon-width: var(--or-icon-width, 24px);
13
13
  --internal-or-icon-height: var(--or-icon-height, 24px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openremote/or-gauge",
3
- "version": "1.32.0",
3
+ "version": "1.32.1",
4
4
  "description": "OpenRemote gauge",
5
5
  "customElements": "build/custom-elements.json",
6
6
  "main": "build/dist/umd/index.bundle.js",
@@ -27,18 +27,18 @@
27
27
  "author": "OpenRemote",
28
28
  "license": "AGPL-3.0-or-later",
29
29
  "dependencies": {
30
- "@openremote/core": "1.32.0",
31
- "@openremote/model": "1.32.0",
32
- "@openremote/or-element": "1.32.0",
33
- "@openremote/or-icon": "1.32.0",
34
- "@openremote/or-translate": "1.32.0",
30
+ "@openremote/core": "1.32.1",
31
+ "@openremote/model": "1.32.1",
32
+ "@openremote/or-element": "1.32.1",
33
+ "@openremote/or-icon": "1.32.1",
34
+ "@openremote/or-translate": "1.32.1",
35
35
  "@types/gaugejs": "1.3.5",
36
36
  "gaugeJS": "1.3.9",
37
37
  "lit": "^3.3.1",
38
38
  "lodash.debounce": "^4.0.8"
39
39
  },
40
40
  "devDependencies": {
41
- "@openremote/util": "1.32.0",
41
+ "@openremote/util": "1.32.1",
42
42
  "@types/lodash.debounce": "^4"
43
43
  },
44
44
  "publishConfig": {