@openremote/or-gauge 1.31.0 → 1.31.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 ow extends ov{static finalizeStyles(e){return[oA,...super.finalizeStyles(e)]}}let ok=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oC={attribute:!0,type:String,converter:t$,reflect:!1,hasChanged:tV};function oD(e){return(t,o)=>{let n;return"object"==typeof o?((e=oC,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function o_(e){return oD({...e,state:!0,attribute:!1})}let oS=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function ox(e,t){return(o,n,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:c}="object"==typeof n?o:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return oS(o,n,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&c.call(this,e),e}})}return oS(o,n,{get(){return i(this)}})}}(f=ew||(ew={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(m=ek||(ek={})).LOW="LOW",m.MEDIUM="MEDIUM",m.HIGH="HIGH",(u=eC||(eC={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eD||(eD={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(F=e_||(e_={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(h=eS||(eS={})).CREATE="CREATE",h.READ="READ",h.UPDATE="UPDATE",h.DELETE="DELETE",(p=ex||(ex={})).NONE="NONE",p.FORECAST="FORECAST",p.SETPOINT="SETPOINT",(g=eO||(eO={})).DISCONNECTED="DISCONNECTED",g.CONNECTING="CONNECTING",g.DISCONNECTING="DISCONNECTING",g.CONNECTED="CONNECTED",g.DISABLED="DISABLED",g.WAITING="WAITING",g.ERROR="ERROR",g.STOPPED="STOPPED",(y=eT||(eT={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(v=eB||(eB={})).TOGGLE="TOGGLE",v.INCREMENT="INCREMENT",v.DECREMENT="DECREMENT",v.NEGATE="NEGATE",(E=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",E.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",E.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",E.INVALID_VALUE="INVALID_VALUE",E.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",E.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",E.CANNOT_PROCESS="CANNOT_PROCESS",E.QUEUE_FULL="QUEUE_FULL",E.UNKNOWN="UNKNOWN",E.ASSET_ID_MISSING="ASSET_ID_MISSING",E.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=eN||(eN={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(w=eI||(eI={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(k=eP||(eP={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",k.KEEP_LAYOUT="KEEP_LAYOUT",k.REDIRECT="REDIRECT",k.BLOCK_DEVICE="BLOCK_DEVICE",(C=eL||(eL={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=eM||(eM={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(_=eU||(eU={})).MIN="MIN",_.AVG="AVG",_.MAX="MAX",_.DIFFERENCE="DIFFERENCE",_.COUNT="COUNT",_.SUM="SUM",_.MODE="MODE",_.MEDIAN="MEDIAN",(S=ej||(ej={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(x=eG||(eG={})).HTTPS="HTTPS",x.HTTP="HTTP",x.TCP="TCP",(O=eq||(eq={})).GET="GET",O.POST="POST",O.PUT="PUT",O.DELETE="DELETE",O.OPTIONS="OPTIONS",O.PATCH="PATCH",(T=eH||(eH={})).KEYCLOAK="KEYCLOAK",T.NONE="NONE",(B=e$||(e$={})).WEBSOCKET="WEBSOCKET",B.POLLING="POLLING",(R=eV||(eV={})).INTERNAL="INTERNAL",R.CLIENT="CLIENT",R.GLOBAL_RULESET="GLOBAL_RULESET",R.REALM_RULESET="REALM_RULESET",R.ASSET_RULESET="ASSET_RULESET",(N=eW||(eW={})).REALM="REALM",N.USER="USER",N.ASSET="ASSET",N.CUSTOM="CUSTOM",(I=ez||(ez={})).NORMAL="NORMAL",I.HIGH="HIGH",(P=eY||(eY={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(L=eK||(eK={})).ALWAYS="ALWAYS",L.ONCE="ONCE",L.HOURLY="HOURLY",L.DAILY="DAILY",L.WEEKLY="WEEKLY",L.MONTHLY="MONTHLY",L.ANNUALLY="ANNUALLY",(M=eJ||(eJ={})).TITLE="TITLE",M.SOURCE="SOURCE",M.STATUS="STATUS",M.SENT_ON="SENT_ON",M.DELIVERED_ON="DELIVERED_ON",(U=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",(j=eQ||(eQ={})).PRIVATE="PRIVATE",j.PROTECTED="PROTECTED",j.PUBLIC="PUBLIC",(G=eZ||(eZ={})).EXACT="EXACT",G.BEGIN="BEGIN",G.END="END",G.CONTAINS="CONTAINS",(q=e0||(e0={})).EQUALS="EQUALS",q.GREATER_THAN="GREATER_THAN",q.GREATER_EQUALS="GREATER_EQUALS",q.LESS_THAN="LESS_THAN",q.LESS_EQUALS="LESS_EQUALS",q.BETWEEN="BETWEEN",(H=e1||(e1={})).CREATED_ON="CREATED_ON",H.NAME="NAME",H.ASSET_TYPE="ASSET_TYPE",H.PARENT_ID="PARENT_ID",H.REALM="REALM",(V=e2||(e2={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(W=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",W.ALL="ALL",W.NONE="NONE",(z=e5||(e5={})).AND="AND",z.OR="OR",(Y=e4||(e4={})).CREATED_ON="CREATED_ON",Y.FIRST_NAME="FIRST_NAME",Y.LAST_NAME="LAST_NAME",Y.USERNAME="USERNAME",Y.EMAIL="EMAIL",(K=e6||(e6={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(J=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",J.GROOVY="GROOVY",J.JSON="JSON",J.FLOW="FLOW",(X=e9||(e9={})).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=e7||(e7={})).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=to||(to={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(eo=tn||(tn={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(en=tr||(tr={})).ADD="ADD",en.ADD_OR_REPLACE="ADD_OR_REPLACE",en.REPLACE="REPLACE",en.DELETE="DELETE",en.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=tc||(tc={})).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",(ec=ta||(ta={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(ea=ts||(ts={})).AVAILABLE="AVAILABLE",ea.UNAVAILABLE="UNAVAILABLE",(es=tl||(tl={})).ASSET="ASSET",es.AGENT="AGENT",es.NOTIFICATION="NOTIFICATION",es.ALARM="ALARM",es.RULES="RULES",es.PROTOCOL="PROTOCOL",es.GATEWAY="GATEWAY",es.MODEL_AND_VALUES="MODEL_AND_VALUES",es.API="API",es.DATA="DATA",(el=td||(td={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(ed=tf||(tf={})).NUMERIC="numeric",ed.DIGIT_2="2-digit",ed.FULL="full",ed.LONG="long",ed.MEDIUM="medium",ed.SHORT="short",ed.NARROW="narrow",(ef=tm||(tm={})).SECONDLY="SECONDLY",ef.MINUTELY="MINUTELY",ef.HOURLY="HOURLY",ef.DAILY="DAILY",ef.WEEKLY="WEEKLY",ef.MONTHLY="MONTHLY",ef.YEARLY="YEARLY",(em=tu||(tu={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eu=tb||(tb={})).JAPANESE="JAPANESE",eu.BUDDHIST="BUDDHIST",eu.ROC="ROC",eu.ISLAMIC="ISLAMIC",eu.ISO8601="ISO8601",eu.CHINESE="CHINESE",eu.ETHIOPIC="ETHIOPIC",eu.HEBREW="HEBREW",eu.GREGORIAN="GREGORIAN",(eb=tF||(tF={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eF=th||(th={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eF.MAILAGENT="MailAgent",eF.UDPAGENT="UDPAgent",eF.ROOMASSET="RoomAsset",eF.CITYASSET="CityAsset",eF.VENTILATIONASSET="VentilationAsset",eF.TRADFRILIGHTASSET="TradfriLightAsset",eF.CONSOLEASSET="ConsoleAsset",eF.PRESENCESENSORASSET="PresenceSensorAsset",eF.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eF.LIGHTASSET="LightAsset",eF.KNXAGENT="KNXAgent",eF.THETHINGSSTACKAGENT="TheThingsStackAgent",eF.PLUGASSET="PlugAsset",eF.CHIRPSTACKAGENT="ChirpStackAgent",eF.WEATHERASSET="WeatherAsset",eF.THINGASSET="ThingAsset",eF.WEBSOCKETAGENT="WebsocketAgent",eF.TCPAGENT="TCPAgent",eF.GATEWAYASSET="GatewayAsset",eF.SERIALAGENT="SerialAgent",eF.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eF.PARKINGASSET="ParkingAsset",eF.TRADFRIPLUGASSET="TradfriPlugAsset",eF.SIMULATORAGENT="SimulatorAgent",eF.SNMPAGENT="SNMPAgent",eF.GROUPASSET="GroupAsset",eF.BUILDINGASSET="BuildingAsset",eF.MODBUSSERIALAGENT="ModbusSerialAgent",eF.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eF.MQTTAGENT="MQTTAgent",eF.VELBUSTCPAGENT="VelbusTCPAgent",eF.ARTNETLIGHTASSET="ArtnetLightAsset",eF.VELBUSSERIALAGENT="VelbusSerialAgent",eF.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eF.MICROPHONEASSET="MicrophoneAsset",eF.MODBUSTCPAGENT="ModbusTcpAgent",eF.ZWAVEAGENT="ZWaveAgent",eF.HTTPAGENT="HTTPAgent",eF.DOORASSET="DoorAsset",eF.THERMOSTATASSET="ThermostatAsset",eF.SHIPASSET="ShipAsset",(eh=tp||(tp={})).COLOURRGB="colourRGB",eh.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eh.PRICEHOURLY="priceHourly",eh.MQTTPORT="MQTTPort",eh.PINGDISABLED="pingDisabled",eh.FLOW="flow",eh.CHILDASSETTYPE="childAssetType",eh.LASTACCESS="lastAccess",eh.POSITION="position",eh.NETWORKKEY="networkKey",eh.UNIVERSE="universe",eh.ROUTINGMODE="routingMode",eh.MSSINUMBER="MSSINumber",eh.LASTWILLRETAIN="lastWillRetain",eh.LASTWILLTOPIC="lastWillTopic",eh.SERIALBAUDRATE="serialBaudrate",eh.SUBSCRIBEQOS="subscribeQos",eh.LEDCOUNT="lEDCount",eh.LOCKED="locked",eh.CLOUDCOVERAGE="cloudCoverage",eh.BASEURL="baseURL",eh.PROTOCOL="protocol",eh.REQUIREDVALUES="requiredValues",eh.REGION="region",eh.CONSOLEPLATFORM="consolePlatform",eh.GATEWAYSTATUS="gatewayStatus",eh.NO2LEVEL="NO2Level",eh.ATMOSPHERICPRESSURE="atmosphericPressure",eh.SERIALPORT="serialPort",eh.APPLICATIONID="applicationId",eh.TAGS="tags",eh.UNLOCK="unlock",eh.CHECKINTERVALSECONDS="checkIntervalSeconds",eh.LOCATION="location",eh.CLIENTSECRET="clientSecret",eh.WINDDIRECTION="windDirection",eh.WINDSPEED="windSpeed",eh.PARTICLESPM10="particlesPM10",eh.APPLICATIONKEY="applicationKey",eh.LENGTH="length",eh.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eh.USERNAMEPASSWORD="usernamePassword",eh.WATERLEVEL="waterLevel",eh.CONNECTHEADERS="connectHeaders",eh.CONSOLENAME="consoleName",eh.WEBSOCKETQUERY="websocketQuery",eh.PREFERHTML="preferHTML",eh.PARITY="parity",eh.COOLING="cooling",eh.POLLINGMILLIS="pollingMillis",eh.SOILTEMPERATURE="soilTemperature",eh.SUNIRRADIANCE="sunIrradiance",eh.MESSAGEMAXLENGTH="messageMaxLength",eh.WINDGUSTSPEED="windGustSpeed",eh.LIGHTID="lightId",eh.PROXYADDRESS="proxyAddress",eh.REQUESTQUERYPARAMETERS="requestQueryParameters",eh.MQTTHOST="MQTTHost",eh.SECUREGRPC="secureGRPC",eh.MODEL="model",eh.STREET="street",eh.MANUFACTURER="manufacturer",eh.DELETEPROCESSEDMAIL="deleteProcessedMail",eh.RESUMESESSION="resumeSession",eh.ONOFF="onOff",eh.APIKEY="ApiKey",eh.CITY="city",eh.PRESENCE="presence",eh.SPACESOCCUPIED="spacesOccupied",eh.STARTTLS="startTLS",eh.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eh.WEBSOCKETPATH="websocketPath",eh.AGENTSTATUS="agentStatus",eh.PRICEDAILY="priceDaily",eh.COUNTGROWTHMINUTE="countGrowthMinute",eh.IMONUMBER="IMONumber",eh.ATTRIBUTION="Attribution",eh.TENANTID="tenantId",eh.REQUESTHEADERS="requestHeaders",eh.HOST="host",eh.COUNTOUTMINUTE="countOutMinute",eh.MESSAGECHARSET="messageCharset",eh.CERTIFICATEALIAS="certificateAlias",eh.EMAIL="email",eh.BINDPORT="bindPort",eh.CONSOLEVERSION="consoleVersion",eh.PARTICLESPM1="particlesPM1",eh.MTU="mtu",eh.SPEED="speed",eh.MESSAGESTRIPDELIMITER="messageStripDelimiter",eh.AREA="area",eh.COUNTRY="country",eh.SHIPTYPE="shipType",eh.CONNECTSUBSCRIPTIONS="connectSubscriptions",eh.RELATIVEHUMIDITY="relativeHumidity",eh.SOURCEADDRESS="sourceAddress",eh.RAINFALL="rainfall",eh.OAUTHGRANT="oAuthGrant",eh.OZONELEVEL="ozoneLevel",eh.SEQUENCENUMBER="sequenceNumber",eh.COUNTINMINUTE="countInMinute",eh.PORT="port",eh.SUNALTITUDE="sunAltitude",eh.COUNTOUT="countOut",eh.ROOMNUMBER="roomNumber",eh.TUNNELINGSUPPORTED="tunnelingSupported",eh.ENINUMBER="ENINumber",eh.PARTICLESPM2_5="particlesPM2_5",eh.AGENTDISABLED="agentDisabled",eh.DISABLED="disabled",eh.COUNTIN="countIn",eh.MESSAGESOURCEADDRESS="messageSourceAddress",eh.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eh.TIMEINJECTIONINTERVAL="timeInjectionInterval",eh.TEMPERATURESETPOINT="temperatureSetpoint",eh.CONSOLEPROVIDERS="consoleProviders",eh.COUNTTOTAL="countTotal",eh.SPACESBUFFER="spacesBuffer",eh.DEVICECONFIG="deviceConfig",eh.SPACESTOTAL="spacesTotal",eh.BINDHOST="bindHost",eh.FANSPEED="fanSpeed",eh.MESSAGECONVERTBINARY="messageConvertBinary",eh.NOTES="notes",eh.MAILFOLDERNAME="mailFolderName",eh.MESSAGEDELIMITERS="messageDelimiters",eh.TEMPERATURE="temperature",eh.SUNZENITH="sunZenith",eh.SNMPVERSIONVALUE="SNMPVersionValue",eh.BRIGHTNESS="brightness",eh.POSTALCODE="postalCode",eh.SPACESOPEN="spacesOpen",eh.HUMIDITY="humidity",eh.SOUNDLEVEL="soundLevel",eh.SECUREMODE="secureMode",eh.DIRECTION="direction",eh.STOPBITS="stopbits",eh.UVINDEX="uVIndex",eh.CONNECTURL="connectURL",eh.CLIENTID="clientId",eh.NATMODE="NATMode",eh.UPDATEONWRITE="updateOnWrite",eh.LASTWILLPAYLOAD="lastWillPayload",eh.GROUPID="groupId",eh.FOLLOWREDIRECTS="followRedirects",eh.SUNAZIMUTH="sunAzimuth",eh.MESSAGECONVERTHEX="messageConvertHex",eh.WEBSOCKETMODE="websocketMode",eh.COLOURTEMPERATURE="colourTemperature",eh.PUBLISHQOS="publishQos",eh.DATABITS="dataBits",(ep=tg||(tg={})).FORMAT="format",ep.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ep.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ep.SECRET="secret",ep.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ep.ATTRIBUTELINKS="attributeLinks",ep.RULERESETIMMEDIATE="ruleResetImmediate",ep.RULESTATE="ruleState",ep.AGENTLINKCONFIG="agentLinkConfig",ep.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ep.FORECAST="forecast",ep.STOREDATAPOINTS="storeDataPoints",ep.LABEL="label",ep.CONSTRAINTS="constraints",ep.UNITS="units",ep.USERCONNECTED="userConnected",ep.SHOWONDASHBOARD="showOnDashboard",ep.READONLY="readOnly",ep.MULTILINE="multiline",ep.ACCESSPUBLICWRITE="accessPublicWrite",ep.MOMENTARY="momentary",ep.AGENTLINK="agentLink",ep.ACCESSRESTRICTEDREAD="accessRestrictedRead",ep.ACCESSPUBLICREAD="accessPublicRead",(eg=ty||(ty={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tv||(tv={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tE||(tE={});class oO{static getAssetDescriptors(){return oO._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 o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.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 o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oO.getValueDescriptor(t)),o=t.jsonType?t:oO.getValueDescriptor(t.type)),!o&&e&&(o=oO.getValueDescriptor("JSON")),o}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,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}oO._assetTypeInfos=[],oO._metaItemDescriptors=[],oO._valueDescriptors=[];var oT=o(1001);function oB(e){return(oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oR(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oN(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:t+""}function oI(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oN(n.key),n)}}function oP(e,t,o){return t&&oI(e.prototype,t),o&&oI(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oL(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(e,t){return(oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oU(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oM(e,t)}function oj(e,t){if(t&&("object"==oB(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oL(e)}function oG(e){return(oG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oq(e,t,o){return(t=oN(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o$(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oV(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o$(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}o(4532);var oW={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},oz=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.init(t,o)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oW,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,oV(oV({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),oY=function(){function e(){oR(this,e),this.observers={}}return oP(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function oK(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function oJ(e){return null==e?"":""+e}function oX(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var c=n(i.shift());!e[c]&&o&&(e[c]=new o),e=Object.prototype.hasOwnProperty.call(e,c)?e[c]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function oQ(e,t,o){var n=oX(e,t,Object);n.obj[n.k]=o}function oZ(e,t){var o=oX(e,t),n=o.obj,r=o.k;if(n)return n[r]}function o0(e,t,o){var n=oZ(e,o);return void 0!==n?n:oZ(t,o)}function o1(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function o3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return o2[e]}):e}var o5="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,o4=[" ",",","?","!",";"];function o6(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o8(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o6(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o6(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var o9=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oP(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,t];o&&"string"!=typeof o&&(c=c.concat(o)),o&&"string"==typeof o&&(c=c.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(c=e.split("."));var a=oZ(this.data,c);return a||!i||"string"!=typeof o?a:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,c=0;c<r.length;++c){if(!i||"string"==typeof i[r[c]]&&c+1<r.length)return;if(void 0===i[r[c]]){for(var a=2,s=r.slice(c,c+a).join(n),l=i[s];void 0===l&&r.length>c+a;)a++,l=i[s=r.slice(c,c+a).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(c+a).join(n);if(d)return e(l,d,n);return}i=i[r[c]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var c=[e,t];o&&(c=c.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(c=e.split("."),n=t,t=c[1]),this.addNamespaces(t),oQ(this.data,c,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),n=o,o=t,t=c[1]),this.addNamespaces(t);var a=oZ(this.data,c)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(a,o,r):a=o8(o8({},a),o),oQ(this.data,c,a),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?o8(o8({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(oY),o7={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var no={},nn=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oL(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=c,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=oz.create("translator"),i}return oP(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=o4.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var c=e.indexOf(o);c>0&&!r.test(e.substring(0,c))&&(i=!0)}return i}(e,o,n);if(i&&!c){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oB(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,c=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),s=a.key,l=a.namespaces,d=l[l.length-1],f=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(m){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(u).concat(s),b):"".concat(d).concat(u).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),F=b&&b.res,h=b&&b.usedKey||s,p=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(F),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof F&&"boolean"!=typeof F&&"number"!=typeof F;if(v&&F&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,F,nt(nt({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=A,b):A}if(c){var w="[object Array]"===g,k=w?[]:{},C=w?p:h;for(var D in F)if(Object.prototype.hasOwnProperty.call(F,D)){var _="".concat(C).concat(c).concat(D);k[D]=this.translate(_,nt(nt({},t),{joinArrays:!1,ns:l})),k[D]===_&&(k[D]=F[D])}F=k}}else if(v&&"string"==typeof y&&"[object Array]"===g)(F=F.join(y))&&(F=this.extendTranslation(F,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(F)&&T&&(S=!0,F=R),this.isValidLookup(F)||(x=!0,F=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:F,I=T&&R!==F&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:F),c){var P=this.resolve(s,nt(nt({},t),{},{keySeparator:!1}));P&&P.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.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==F?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}F=this.extendTranslation(F,e,t,b,o),x&&F===s&&this.options.appendNamespaceToMissingKey&&(F="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(F="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?F:void 0):this.options.parseMissingKeyHandler(F))}return i?(b.res=F,b):F}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nt(nt({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var c,a="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var s=e.match(this.interpolator.nestingRegexp);c=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=nt(nt({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),a){var d=e.match(this.interpolator.nestingRegexp);c<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),c=0;c<e;c++)n[c]=arguments[c];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,m="string"==typeof f?[f]:f;return null!=e&&m&&m.length&&!1!==o.applyPostProcessor&&(e=o7.handle(m,e,t,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,c=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!c.isValidLookup(t)){var s=c.extractFromKey(e,a),l=s.key;o=l;var d=s.namespaces;c.options.fallbackNS&&(d=d.concat(c.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,m=f&&!a.ordinal&&0===a.count&&c.pluralResolver.shouldUseIntlApi(),u=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,b=a.lngs?a.lngs:c.languageUtils.toResolveHierarchy(a.lng||c.language,a.fallbackLng);d.forEach(function(e){c.isValidLookup(t)||(i=e,!no["".concat(b[0],"-").concat(e)]&&c.utils&&c.utils.hasLoadedNamespace&&!c.utils.hasLoadedNamespace(i)&&(no["".concat(b[0],"-").concat(e)]=!0,c.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),b.forEach(function(o){if(!c.isValidLookup(t)){r=o;var i,s=[l];if(c.i18nFormat&&c.i18nFormat.addLookupKeys)c.i18nFormat.addLookupKeys(s,l,o,e,a);else{f&&(d=c.pluralResolver.getSuffix(o,a.count,a));var d,b="".concat(c.options.pluralSeparator,"zero");if(f&&(s.push(l+d),m&&s.push(l+b)),u){var F="".concat(l).concat(c.options.contextSeparator).concat(a.context);s.push(F),f&&(s.push(F+d),m&&s.push(F+b))}}for(;i=s.pop();)c.isValidLookup(t)||(n=i,t=c.getResource(o,e,i,a))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(oY);function nr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ni=function(){function e(t){oR(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oz.create("languageUtils")}return oP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nr(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],na={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ns=["v1","v2","v3"],nl={zero:0,one:1,two:2,few:3,many:4,other:5},nd=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.languageUtils=t,this.options=n,this.logger=oz.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nc.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:na[e.fc]}})}),o)}return oP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nl[e]-nl[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!ns.includes(this.options.compatibilityJSON)}}]),e}();function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nm(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:o3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?o1(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o1(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o1(t.nestingPrefix):t.nestingPrefixEscaped||o1("$t("),this.nestingSuffix=t.nestingSuffix?o1(t.nestingSuffix):t.nestingSuffixEscaped||o1(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,c,a=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(a.formatSeparator)){var r=o0(t,s,e);return a.alwaysFormat?a.format(r,void 0,o,nm(nm(nm({},n),t),{},{interpolationkey:e})):r}var i=e.split(a.formatSeparator),c=i.shift().trim(),l=i.join(a.formatSeparator).trim();return a.format(o0(t,s,c),l,o,nm(nm(nm({},n),t),{},{interpolationkey:c}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?l(a.escape(e)):l(e)}}].forEach(function(t){for(c=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(m){i=r[0];continue}else a.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||a.useRawValueToEscape||(i=oJ(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),m?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++c>=a.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=nm({},i);function a(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,c)).match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{c=JSON.parse(r),t&&(c=nm(nm({},t),c))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete c.defaultValue,e}for(c.applyPostProcessor=!1,delete c.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(a.call(this,o[1].trim(),c),c))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=oJ(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nm(nm({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nb(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nF(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nb(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nh(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),c=t[i];return c||(c=e(n,r),t[i]=c),c(o)}}var np=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("formatter"),this.options=t,this.formats={number:nh(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nh(function(e,t){var o=new Intl.NumberFormat(e,nF(nF({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nh(function(e,t){var o=new Intl.DateTimeFormat(e,nF({},t));return function(e){return o.format(e)}}),relativetime:nh(function(e,t){var o=new Intl.RelativeTimeFormat(e,nF({},t));return function(e){return o.format(e,t.range||"day")}}),list:nh(function(e,t){var o=new Intl.ListFormat(e,nF({},t));return function(e){return o.format(e)}})},this.init(t)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nh(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return oH(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oH(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),c=i.formatName,a=i.formatOptions;if(r.formats[c]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[c](e,d,nF(nF(nF({},a),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(c)),e},e)}}]),e}();function ng(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ny(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nv=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e,t,r){var i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=c,i.logger=oz.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=c.maxParallelReads||10,i.readingCalls=0,i.maxRetries=c.maxRetries>=0?c.maxRetries:5,i.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,c.backend,c),i}return oP(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},c={},a={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?void 0===c[a]&&(c[a]=!0):(r.state[a]=1,n=!1,void 0===c[a]&&(c[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(c),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var c={};this.queue.forEach(function(o){var n,a,s,l;n=o.loaded,(s=(a=oX(n,[r],Object)).obj)[l=a.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){c[e]||(c[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===c[e][t]&&(c[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:c}):(this.readingCalls++,this.backend[o](e,t,function(a,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}a&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,c)},i):c(a,s)})):c(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,c){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&c&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),c),t.loaded(e,n,c)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(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!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,ny(ny({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(oY);function nE(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nA(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nw(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nA(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nk(){}var nC=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.options=nE(r),t.services={},t.logger=oz,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oL(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),oj(t,oL(t));setTimeout(function(){t.init(r,i)},0)}return t}return oP(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oB(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oB(e[2])||"object"===oB(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nw(nw(nw({},n),this.options),nE(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nw(nw({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?oz.init(r(this.modules.logger),this.options):oz.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=np);var i,c=new ni(this.options);this.store=new o9(this.options.resources,this.options);var a=this.services;a.logger=oz,a.resourceStore=this.store,a.languageUtils=c,a.pluralResolver=new nd(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(a.formatter=r(i),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new nu(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new nv(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new nn(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nk),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=oK(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],c=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?c(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return c(e)}),this.options.preload&&this.options.preload.forEach(function(e){return c(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=oK();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nk),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(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&&o7.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=oK();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},c=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e):c(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oB(r)){for(var i,c=arguments.length,a=Array(c>2?c-2:0),s=2;s<c;s++)a[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else i=nw({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var c=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var a=o.precheck(this,c);if(void 0!==a)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,e)&&(!r||c(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=oK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=oK();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,r=nw(nw(nw({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nw({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new nn(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(oY);oq(nC,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nC(e,t)});var nD=nC.createInstance();nD.createInstance=nC.createInstance,nD.createInstance,nD.init,nD.loadResources,nD.reloadResources,nD.use,nD.changeLanguage,nD.getFixedT,nD.t,nD.exists,nD.setDefaultNamespace,nD.hasLoadedNamespace,nD.loadNamespaces,nD.loadLanguages;let n_=nD;var nS=o(4867),nx=o.n(nS);o(3472);class nO{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 nT{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,c,a;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.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!=(c=e.path)?c:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(a=this.names)||!a.length||!!this.names.every(t=>nT._evalValuePredicate(e.name,t)))&&(!this.attributes||nT._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nT._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nT._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let c=!t.value||nT._evalValuePredicate(i.value,t.value);return t.negated?!c:c}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",c=[...(null!=(n=t.items)?n:[]).map(t=>nT._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nT._evalGroup(e,t))];return!c.length||("OR"===i?c.some(Boolean):c.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nT._collectNames(e))]}}nT._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nB=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};let nR=o(4461);class nN{constructor(e,t,o){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=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),c=n.get("consolePlatform"),a=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=a&&a.length>0?a.split(" "):["push"];this._pendingProviderEnables=l;let d=nN._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},l)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let u=c7.getAppName();u.length>0&&0>d.apps.indexOf(u)&&d.apps.push(u),this._registration=d,r&&(d.name=r),i&&(d.version=i),c&&(d.platform=c),s&&(this._autoEnable="TRUE"===s||"true"===s)}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 nB(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 nB(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 nB(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 o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.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())),n})}disableProvider(e){return nB(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 nB(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 o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nO,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nB(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 nB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield c7.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(o){if(e&&t&&nN._isStaleRegistrationResponse(o)){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 o}})}_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 nB(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 o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_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 o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}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),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nR.name,version:nR.version,platform:nR.os.toString(),apps:[],model:((nR.manufacturer?nR.manufacturer+" ":"")+(nR.product?nR.product:"")).trim()}}_initialiseProvider(e){return nB(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 nI(e,t){return function(){return e.apply(t,arguments)}}let{toString:nP}=Object.prototype,{getPrototypeOf:nL}=Object,{iterator:nM,toStringTag:nU}=Symbol,nj=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),nG=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),nj(o,t))return!0;o=nL(o)}return!1},nq=(t=Object.create(null),e=>{let o=nP.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())}),nH=e=>(e=e.toLowerCase(),t=>nq(t)===e),n$=e=>t=>typeof t===e,{isArray:nV}=Array,nW=n$("undefined");function nz(e){return null!==e&&!nW(e)&&null!==e.constructor&&!nW(e.constructor)&&nJ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let nY=nH("ArrayBuffer"),nK=n$("string"),nJ=n$("function"),nX=n$("number"),nQ=e=>null!==e&&"object"==typeof e,nZ=e=>{if(!nQ(e))return!1;let t=nL(e);return(null===t||t===Object.prototype||null===nL(t))&&!nG(e,nU)&&!nG(e,nM)},n0=nH("Date"),n1=nH("File"),n2=nH("Blob"),n3=nH("FileList"),n5="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n4=void 0!==n5.FormData?n5.FormData:void 0,n6=nH("URLSearchParams"),[n8,n9,n7,re]=["ReadableStream","Request","Response","Headers"].map(nH);function rt(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),nV(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(nz(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;for(n=0;n<c;n++)r=i[n],t.call(null,e[r],r,e)}}function ro(e,t){let o;if(nz(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let rn="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rr=e=>!nW(e)&&e!==rn,ri=(r="u">typeof Uint8Array&&nL(Uint8Array),e=>r&&e instanceof r),rc=nH("HTMLFormElement"),{propertyIsEnumerable:ra}=Object.prototype,rs=nH("RegExp"),rl=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rt(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rd=nH("AsyncFunction"),rf=(a="function"==typeof setImmediate,s=nJ(rn.postMessage),a?setImmediate:s?(l=`axios@${Math.random()}`,d=[],rn.addEventListener("message",({source:e,data:t})=>{e===rn&&t===l&&d.length&&d.shift()()},!1),e=>{d.push(e),rn.postMessage(l,"*")}):e=>setTimeout(e)),rm="u">typeof queueMicrotask?queueMicrotask.bind(rn):"u">typeof process&&process.nextTick||rf,ru=e=>null!=e&&nJ(e[nM]),rb={isArray:nV,isArrayBuffer:nY,isBuffer:nz,isFormData:e=>{if(!e)return!1;if(n4&&e instanceof n4)return!0;let t=nL(e);if(!t||t===Object.prototype||!nJ(e.append))return!1;let o=nq(e);return"formdata"===o||"object"===o&&nJ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nY(e.buffer)},isString:nK,isNumber:nX,isBoolean:e=>!0===e||!1===e,isObject:nQ,isPlainObject:nZ,isEmptyObject:e=>{if(!nQ(e)||nz(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:n8,isRequest:n9,isResponse:n7,isHeaders:re,isUndefined:nW,isDate:n0,isFile:n1,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:n2,isRegExp:rs,isFunction:nJ,isStream:e=>nQ(e)&&nJ(e.pipe),isURLSearchParams:n6,isTypedArray:ri,isFileList:n3,forEach:rt,merge:function e(...t){let{caseless:o,skipUndefined:n}=rr(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let c=o&&"string"==typeof i&&ro(r,i)||i,a=nj(r,c)?r[c]:void 0;nZ(a)&&nZ(t)?r[c]=e(a,t):nZ(t)?r[c]=e({},t):nV(t)?r[c]=t.slice():n&&nW(t)||(r[c]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||nz(o)||(rt(o,i),"object"!=typeof o||nV(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];ra.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rt(t,(t,n)=>{o&&nJ(t)?Object.defineProperty(e,n,{__proto__:null,value:nI(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),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,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,c,a={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)c=r[i],(!n||n(c,e,t))&&!a[c]&&(t[c]=e[c],a[c]=!0);e=!1!==o&&nL(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:nq,kindOfTest:nH,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(nV(e))return e;let t=e.length;if(!nX(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[nM]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rc,hasOwnProperty:nj,hasOwnProp:nj,hasOwnInPrototypeChain:nG,getSafeProp:(e,t)=>null!=e&&nG(e,t)?e[t]:void 0,reduceDescriptors:rl,freezeMethods:e=>{rl(e,(t,o)=>{if(nJ(e)&&["arguments","caller","callee"].includes(o))return!1;if(nJ(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(nV(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ro,global:rn,isContextDefined:rr,isSpecCompliantForm:function(e){return!!(e&&nJ(e.append)&&"FormData"===e[nU]&&e[nM])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(nQ(e)){if(t.has(e))return;if(nz(e))return e;if(!("toJSON"in e)){t.add(e);let n=nV(e)?[]:{};return rt(e,(e,t)=>{let r=o(e);nW(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rd,isThenable:e=>e&&(nQ(e)||nJ(e))&&nJ(e.then)&&nJ(e.catch),setImmediate:rf,asap:rm,isIterable:ru,isSafeIterable:e=>null!=e&&nG(e,nM)&&ru(e)},rF=rb.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"]),rh=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rp=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rg(e,t){return rb.isArray(e)?e.map(e=>rg(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function ry(e){let t=Object.create(null);return rb.forEach(e.toJSON(),(e,o)=>{t[o]=rg(e,rp)}),t}let rv=Symbol("internals");function rE(e){return e&&String(e).trim().toLowerCase()}function rA(e){return!1===e||null==e?e:rb.isArray(e)?e.map(rA):rg(String(e),rh)}function rw(e,t,o,n,r){if(rb.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rb.isString(t)){if(rb.isString(n))return -1!==t.indexOf(n);if(rb.isRegExp(n))return n.test(t)}}class rk{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rE(t);if(!r)return;let i=rb.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rA(e))}let i=(e,t)=>rb.forEach(e,(e,o)=>r(e,o,t));if(rb.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rb.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var c;let o,n,r,a;i((a={},(c=e)&&c.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||a[o]&&rF[o]||("set-cookie"===o?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a),t)}else if(rb.isObject(e)&&rb.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rb.hasOwnProp(o,r)?(n=o[r],o[r]=rb.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rE(e)){let o=rb.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rb.isFunction(t))return t.call(this,e,o);if(rb.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rE(e)){let o=rb.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rw(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rE(e)){let r=rb.findKey(o,e);r&&(!t||rw(o,o[r],r,t))&&(delete o[r],n=!0)}}return rb.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rw(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rb.forEach(this,(n,r)=>{let i=rb.findKey(o,r);if(i){t[i]=rA(n),delete t[r];return}let c=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();c!==r&&delete t[r],t[c]=rA(n),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rb.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rb.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rv]=this[rv]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rE(e);if(!t[n]){let r;r=rb.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rb.isArray(e)?e.forEach(n):n(e),this}}rk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rb.reduceDescriptors(rk.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rb.freezeMethods(rk);class rC extends Error{static from(e,t,o,n,r,i){let c=new rC(e.message,t||e.code,o,n,r);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,null!=e.status&&null==c.status&&(c.status=e.status),i&&Object.assign(c,i),c}constructor(e,t,o,n,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),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rb.hasOwnProp(n,"redact")?n.redact:void 0,i=rb.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rb.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof rk&&(n=n.toJSON()),t.push(n),rb.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rb.isUndefined(n)||(r[t]=n)});else{if(!rb.isPlainObject(n)&&function(e){if(rb.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rb.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rb.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rb.toJSONObject(n);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}}}rC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rC.ERR_BAD_OPTION="ERR_BAD_OPTION",rC.ECONNABORTED="ECONNABORTED",rC.ETIMEDOUT="ETIMEDOUT",rC.ECONNREFUSED="ECONNREFUSED",rC.ERR_NETWORK="ERR_NETWORK",rC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rC.ERR_DEPRECATED="ERR_DEPRECATED",rC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rC.ERR_CANCELED="ERR_CANCELED",rC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rC.ERR_INVALID_URL="ERR_INVALID_URL",rC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rD=rC;function r_(e){return rb.isPlainObject(e)||rb.isArray(e)}function rS(e){return rb.endsWith(e,"[]")?e.slice(0,-2):e}function rx(e,t,o){return e?e.concat(t).map(function(e,t){return e=rS(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rO=rb.toFlatObject(rb,{},null,function(e){return/^is[A-Z]/.test(e)}),rT=function(e,t,o){if(!rb.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rb.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rb.isUndefined(t[e])})).metaTokens,r=o.visitor||u,i=o.dots,c=o.indexes,a=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=a&&rb.isSpecCompliantForm(t),d=[];if(!rb.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rb.isDate(e))return e.toISOString();if(rb.isBoolean(e))return e.toString();if(!l&&rb.isBlob(e))throw new rD("Blob is not supported. Use a Buffer instead.");if(rb.isArrayBuffer(e)||rb.isTypedArray(e)){if(l&&"function"==typeof a)return new a([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rD("Blob is not supported. Use a Buffer instead.",rD.ERR_NOT_SUPPORT)}return e}function m(e){if(e>s)throw new rD("Object is too deeply nested ("+e+" levels). Max depth: "+s,rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,o,r){let a=e;if(rb.isReactNative(t)&&rb.isReactNativeBlob(e))return t.append(rx(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rb.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rb.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),m(1+t.length-1),o})}(e);else{var l;if(rb.isArray(e)&&(l=e,rb.isArray(l)&&!l.some(r_))||(rb.isFileList(e)||rb.endsWith(o,"[]"))&&(a=rb.toArray(e)))return o=rS(o),a.forEach(function(e,n){rb.isUndefined(e)||null===e||t.append(!0===c?rx([o],n,i):null===c?o:o+"[]",f(e))}),!1}return!!r_(e)||(t.append(rx(r,o,i),f(e)),!1)}let b=Object.assign(rO,{defaultVisitor:u,convertValue:f,isVisitable:r_});if(!rb.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rb.isUndefined(o)){if(m(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rb.forEach(o,function(o,c){!0===(!(rb.isUndefined(o)||null===o)&&r.call(t,o,rb.isString(c)?c.trim():c,n,b))&&e(o,n?n.concat(c):[c],i+1)}),d.pop()}}(e),t};function rB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rR(e,t){this._pairs=[],e&&rT(e,this,t)}let rN=rR.prototype;function rI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rP(e,t,o){let n;if(!t)return e;e=e||"";let r=rb.isFunction(o)?{serialize:o}:o,i=rb.getSafeProp(r,"encode")||rI,c=rb.getSafeProp(r,"serialize");if(n=c?c(t,r):rb.isURLSearchParams(t)?t.toString():new rR(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rN.append=function(e,t){this._pairs.push([e,t])},rN.toString=function(e){let t=e?t=>e.call(this,t,rB):rB;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rL=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rb.forEach(this.handlers,function(t){null!==t&&e(t)})}},rM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rj="u">typeof FormData?FormData:null,rG="u">typeof Blob?Blob:null,rq="u">typeof window&&"u">typeof document,rH="object"==typeof navigator&&navigator||void 0,r$=rq&&(!rH||0>["ReactNative","NativeScript","NS"].indexOf(rH.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rW=rq&&window.location.href||"http://localhost",rz={...tC,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rj,Blob:rG},protocols:["http","https","file","blob","url","data"]};function rY(e){if(e>100)throw new rD("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rK=function(e){if(rb.isFormData(e)&&rb.isFunction(e.entries)){let t={};return rb.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){rY(r);let i=t[r++];if("__proto__"===i)return!0;let c=Number.isFinite(+i),a=r>=t.length;return(i=!i&&rb.isArray(n)?n.length:i,a)?rb.hasOwnProp(n,i)?n[i]=rb.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rb.hasOwnProp(n,i)&&rb.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rb.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!c}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)rY(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},rJ=(e,t)=>null!=e&&rb.hasOwnProp(e,t)?e[t]:void 0,rX={transitional:rM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rb.isObject(e);if(i&&rb.isHTMLForm(e)&&(e=new FormData(e)),rb.isFormData(e))return r?JSON.stringify(rK(e)):e;if(rb.isArrayBuffer(e)||rb.isBuffer(e)||rb.isStream(e)||rb.isFile(e)||rb.isBlob(e)||rb.isReadableStream(e))return e;if(rb.isArrayBufferView(e))return e.buffer;if(rb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rJ(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rT(e,new rz.classes.URLSearchParams,{visitor:function(e,t,o,n){return rz.isNode&&rb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rb.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=rJ(this,"env"),r=n&&n.FormData;return rT(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var c=e;if(rb.isString(c))try{return(0,JSON.parse)(c),rb.trim(c)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(c)}return e}],transformResponse:[function(e){let t=rJ(this,"transitional")||rX.transitional,o=t&&t.forcedJSONParsing,n=rJ(this,"responseType"),r="json"===n;if(rb.isResponse(e)||rb.isReadableStream(e))return e;if(e&&rb.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,rJ(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rD.from(e,rD.ERR_BAD_RESPONSE,this,null,rJ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rz.classes.FormData,Blob:rz.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rQ(e,t){let o=this||rX,n=t||o,r=rk.from(n.headers),i=n.data;return rb.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rZ(e){return!!(e&&e.__CANCEL__)}rb.forEach(["delete","get","head","post","put","patch","query"],e=>{rX.headers[e]={}});let r0=class extends rD{constructor(e,t,o){super(null==e?"canceled":e,rD.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function r1(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rD("Request failed with status code "+o.status,o.status>=400&&o.status<500?rD.ERR_BAD_REQUEST:rD.ERR_BAD_RESPONSE,o.config,o.request,o))}let r2=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,c=0;return t=void 0!==t?t:1e3,function(a){let s=Date.now(),l=r[c];o||(o=s),n[i]=a,r[i]=s;let d=c,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===c&&(c=(c+1)%e),s-o<t)return;let m=l&&s-l;return m?Math.round(1e3*f/m):void 0}},r3=function(e,t){let o,n,r=0,i=1e3/t,c=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-r;a>=i?c(e,t):(o=e,n||(n=setTimeout(()=>{n=null,c(o)},i-a)))},()=>o&&c(o)]},r5=(e,t,o=3)=>{let n=0,r=r2(50,250);return r3(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,c=o.lengthComputable?o.total:void 0,a=null!=c?Math.min(i,c):i,s=Math.max(0,a-n),l=r(s);n=Math.max(n,a),e({loaded:a,total:c,progress:c?a/c:void 0,bytes:s,rate:l||void 0,estimated:l&&c?(c-a)/l:void 0,event:o,lengthComputable:null!=c,[t?"download":"upload"]:!0})},o)},r4=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},r6=e=>(...t)=>rb.asap(()=>e(...t)),r8=rz.hasStandardBrowserEnv?(i=new URL(rz.origin),c=rz.navigator&&/(msie|trident)/i.test(rz.navigator.userAgent),e=>(e=new URL(e,rz.origin),i.protocol===e.protocol&&i.host===e.host&&(c||i.port===e.port))):()=>!0,r9=rz.hasStandardBrowserEnv?{write(e,t,o,n,r,i,c){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];rb.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),rb.isString(n)&&a.push(`path=${n}`),rb.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),rb.isString(c)&&a.push(`SameSite=${c}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r7=/^https?:(?!\/\/)/i,ie=/[\t\n\r]/g;function it(e,t){if("string"==typeof e&&r7.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ie,"")))throw new rD('Invalid URL: missing "//" after protocol',rD.ERR_INVALID_URL,t)}function io(e,t,o,n){it(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(it(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ir=e=>e instanceof rk?{...e}:e;function ii(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rb.isPlainObject(e)&&rb.isPlainObject(t)?rb.merge.call({caseless:n},e,t):rb.isPlainObject(t)?rb.merge({},t):rb.isArray(t)?t.slice():t}function r(e,t,o,r){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rb.isUndefined(t))return n(void 0,t)}function c(e,t){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(o,r,i){return rb.hasOwnProp(t,i)?n(o,r):rb.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:a,headers:(e,t,o)=>r(ir(e),ir(t),o,!0)};return rb.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rb.hasOwnProp(s,n)?s[n]:r,c=i(rb.hasOwnProp(e,n)?e[n]:void 0,rb.hasOwnProp(t,n)?t[n]:void 0,n);rb.isUndefined(c)&&i!==a||(o[n]=c)}),rb.hasOwnProp(t,"validateStatus")&&rb.isUndefined(t.validateStatus)&&!1===function(o){let n=rb.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rb.isUndefined(n)){if(!rb.isPlainObject(n))return;else if(rb.hasOwnProp(n,o))return n[o]}let r=rb.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rb.isPlainObject(r)&&rb.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rb.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],ia=function(e){let t=ii({},e),o=e=>rb.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),c=o("xsrfCookieName"),a=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=a=rk.from(a),t.url=rP(io(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rb.getSafeProp(s,"username")||"",o=rb.getSafeProp(s,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rD.from(t,rD.ERR_BAD_OPTION_VALUE,e)}}if(rb.isFormData(n))if(rz.hasStandardBrowserEnv||rz.hasStandardBrowserWebWorkerEnv||rb.isReactNative(n))a.setContentType(void 0);else{var m,u;rb.isFunction(n.getHeaders)&&(m=a,u=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?m.set(u):Object.entries(u||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&m.set(e,t)}))}if(rz.hasStandardBrowserEnv&&(rb.isFunction(r)&&(r=r(t)),!0===r||null==r&&r8(t.url))){let e=i&&c&&r9.read(c);e&&a.set(i,e)}return t},is="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,c,a,s,l,d=ia(e),f=d.data,m=rk.from(d.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:F}=d;function h(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let p=new XMLHttpRequest;function g(){if(!p)return;let n=rk.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r1(function(e){t(e),h()},function(e){o(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}p.open(d.method.toUpperCase(),d.url,!0),p.timeout=d.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(g)},p.onabort=function(){p&&(o(new rD("Request aborted",rD.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let n=new rD(t&&t.message?t.message:"Network Error",rD.ERR_NETWORK,e,p);n.event=t||null,o(n),h(),p=null},p.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||rM;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rD(t,n.clarifyTimeoutError?rD.ETIMEDOUT:rD.ECONNABORTED,e,p)),h(),p=null},void 0===f&&m.setContentType(null),"setRequestHeader"in p&&rb.forEach(ry(m),function(e,t){p.setRequestHeader(t,e)}),rb.isUndefined(d.withCredentials)||(p.withCredentials=!!d.withCredentials),u&&"json"!==u&&(p.responseType=d.responseType),F&&([c,s]=r5(F,!0),p.addEventListener("progress",c)),b&&p.upload&&([i,a]=r5(b),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(r=t=>{p&&(o(!t||t.type?new r0(null,e,p):t),p.abort(),h(),p=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(y&&!rz.protocols.includes(y)){o(new rD("Unsupported protocol "+y+":",rD.ERR_BAD_REQUEST,e)),h();return}p.send(f||null)})},il=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},id=async function*(e,t){for await(let o of im(e))yield*il(o,t)},im=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iu=(e,t,o,n)=>{let r,i=id(e,t),c=0,a=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let r=n.byteLength;if(o){let e=c+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},ib=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,o)=>t+2<o&&ib(e.charCodeAt(t+1))&&ib(e.charCodeAt(t+2)),{isFunction:ih}=rb,ip=e=>{if(!rb.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ig=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iy=e=>{let t,o=void 0!==rb.global&&null!==rb.global?rb.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:c,Response:a}=e=rb.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?ih(i):"function"==typeof fetch,l=ih(c),d=ih(a);if(!s)return!1;let f=s&&ih(n),m=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new c(e).arrayBuffer())),u=l&&f&&ig(()=>{let e=!1,t=new c(rz.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&ig(()=>rb.isReadableStream(new a("").body)),F={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{F[e]||(F[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rD(`Response type '${e}' is not supported`,rD.ERR_NOT_SUPPORT,o)})});let h=async e=>{if(null==e)return 0;if(rb.isBlob(e))return e.size;if(rb.isSpecCompliantForm(e)){let t=new c(rz.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rb.isArrayBufferView(e)||rb.isArrayBuffer(e)?e.byteLength:(rb.isURLSearchParams(e)&&(e+=""),rb.isString(e))?(await m(e)).byteLength:void 0},p=async(e,t)=>{let o=rb.toFiniteNumber(e.getContentLength());return null==o?h(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:m,timeout:g,onDownloadProgress:y,onUploadProgress:v,responseType:E,headers:A,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:D}=ia(e),_=rb.isNumber(C)&&C>-1,S=rb.isNumber(D)&&D>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,c();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rD?t:new r0(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rD(`timeout of ${t}ms exceeded`,rD.ETIMEDOUT))},t),c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:a}=o;return a.unsubscribe=()=>rb.asap(c),a})([d,m&&m.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rD("Request body larger than maxBodyLength limit",rD.ERR_BAD_REQUEST,e,T);try{var I;let i,d,m,g,P=(d="auth",rb.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rb.getSafeProp(P,"username")||"",t=rb.getSafeProp(P,"password")||"";i={username:e,password:t}}if(m=(I=o).indexOf("://"),g=I,-1!==m&&(g=g.slice(m+3)),g.includes("@")||g.includes(":")){let e=new URL(o,rz.origin);if(!i&&(e.username||e.password)){let t=ip(e.username),o=ip(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;A.delete("authorization"),A.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(_&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);ib(t)&&ib(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let c=3*Math.floor(e/4)-(o||0);return c>0?c:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iF(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await h(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>D))throw N()}let L=S&&(rb.isReadableStream(s)||rb.isStream(s)),M=(e,t,o)=>iu(e,65536,e=>{if(S&&e>D)throw R=N();t&&t(e)},o);if(u&&"get"!==n&&"head"!==n&&(v||L)){if(t=null==t?await p(A,s):t,0!==t||L){let e,n=new c(o,{method:"POST",body:s,duplex:"half"});if(rb.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){let[e,o]=v&&r4(t,r5(r6(v)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!u&&"get"!==n&&"head"!==n)throw new rD("Stream request bodies are not supported by the current fetch implementation",rD.ERR_NOT_SUPPORT,e,T);rb.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in c.prototype;if(rb.isFormData(s)){let e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:O,method:n.toUpperCase(),headers:ry(A.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new c(o,j);let G=await (l?x(T,k):x(o,j)),q=rk.from(G.headers);if(_){let t=rb.toFiniteNumber(q.getContentLength());if(null!=t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}let H=b&&("stream"===E||"response"===E);if(b&&G.body&&(y||_||H&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=G[e]});let o=rb.toFiniteNumber(q.getContentLength()),[n,r]=y&&r4(o,r5(r6(y),!0))||[];G=new a(iu(G.body,65536,t=>{if(_&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let V=await F[rb.findKey(F,E)||"text"](G,e);if(_&&!b&&!H){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>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}return!H&&B&&B(),await new Promise((t,o)=>{r1(t,o,{data:V,headers:rk.from(G.headers),status:G.status,statusText:G.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rD){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rD)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rD("Network Error",rD.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rD.from(t,t&&t.code,e,T,t&&t.response)}}},iv=new Map,iE=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],c=i.length,a,s,l=iv;for(;c--;)a=i[c],void 0===(s=l.get(a))&&l.set(a,s=c?new Map:iy(t)),l=s;return s};iE();let iA={http:null,xhr:is,fetch:{get:iE}};rb.forEach(iA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iw=e=>`- ${e}`,ik=e=>rb.isFunction(e)||null===e||!1===e,iC=function(e,t){let o,n,{length:r}=e=rb.isArray(e)?e:[e],i={};for(let c=0;c<r;c++){let r;if(n=o=e[c],!ik(o)&&void 0===(n=iA[(r=String(o)).toLowerCase()]))throw new rD(`Unknown adapter '${r}'`);if(n&&(rb.isFunction(n)||(n=n.get(t))))break;i[r||"#"+c]=n}if(!n){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 rD("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iw).join("\n"):" "+iw(e[0]):"as no adapter specified"),rD.ERR_NOT_SUPPORT)}return n};function iD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r0(null,e)}function i_(e){return iD(e),e.headers=rk.from(e.headers),e.data=rQ.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iC(e.adapter||rX.adapter,e)(e).then(function(t){iD(e),e.response=t;try{t.data=rQ.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rk.from(t.headers),t},function(t){if(!rZ(t)&&(iD(e),t&&t.response)){e.response=t.response;try{t.response.data=rQ.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rk.from(t.response.headers)}return Promise.reject(t)})}let iS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iS[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let ix={};iS.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rD(n(r," has been removed"+(t?" in "+t:"")),rD.ERR_DEPRECATED);return t&&!ix[r]&&(ix[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iS.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iO=function(e,t,o){if("object"!=typeof e||null===e)throw new rD("options must be an object",rD.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],c=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(c){let t=e[i],o=void 0===t||c(t,i,e);if(!0!==o)throw new rD("option "+i+" must be "+o,rD.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rD("Unknown option "+i,rD.ERR_BAD_OPTION)}};class iT{constructor(e){this.defaults=e||{},this.interceptors={request:new rL,response:new rL}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{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 o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:c}=t=ii(this.defaults,t);void 0!==r&&iO(r,{silentJSONParsing:iS.transitional(iS.boolean),forcedJSONParsing:iS.transitional(iS.boolean),clarifyTimeoutError:iS.transitional(iS.boolean),legacyInterceptorReqResOrdering:iS.transitional(iS.boolean),advertiseZstdAcceptEncoding:iS.transitional(iS.boolean),validateStatusUndefinedResolves:iS.transitional(iS.boolean)},!1),null!=i&&(rb.isFunction(i)?t.paramsSerializer={serialize:i}:iO(i,{encode:iS.function,serialize:iS.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iO(t,{baseUrl:iS.spelling("baseURL"),withXsrfToken:iS.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=c&&rb.merge(c.common,c[t.method]);c&&rb.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete c[e]}),t.headers=rk.concat(a,c);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||rM;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[i_.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let m=t;for(;f<n;){let e=s[f++],t=s[f++];try{m=e(m)}catch(e){t.call(this,e);break}}try{o=i_.call(this,m)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rP(io((e=ii(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rb.forEach(["delete","get","head","options"],function(e){iT.prototype[e]=function(t,o){return this.request(ii(o||{},{method:e,url:t,data:o&&rb.hasOwnProp(o,"data")?o.data:void 0}))}}),rb.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(ii(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iT.prototype[e]=t(),"query"!==e&&(iT.prototype[e+"Form"]=t(!0))});let iB=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 o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new r0(e,n,r),t(o.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}}},iR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iR).forEach(([e,t])=>{iR[t]=e});let iN=function e(t){let o=new iT(t),n=nI(iT.prototype.request,o);return rb.extend(n,iT.prototype,o,{allOwnKeys:!0}),rb.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(ii(t,o))},n}(rX);iN.Axios=iT,iN.CanceledError=r0,iN.CancelToken=iB,iN.isCancel=rZ,iN.VERSION="1.18.1",iN.toFormData=rT,iN.AxiosError=rD,iN.Cancel=iN.CanceledError,iN.all=function(e){return Promise.all(e)},iN.spread=function(e){return function(t){return e.apply(null,t)}},iN.isAxiosError=function(e){return rb.isObject(e)&&!0===e.isAxiosError},iN.mergeConfig=ii,iN.AxiosHeaders=rk,iN.formToJSON=e=>rK(rb.isHTMLForm(e)?new FormData(e):e),iN.getAdapter=iC,iN.HttpStatusCode=iR,iN.default=iN;class iI{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i3`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i3`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i3`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`realm/${e}`,data:t,options:o})}}class iP{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i3`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`dashboard/${e}/${t}`,options:o})}}class iL{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i3`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i3`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i3`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i3`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i3`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i3`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:i3`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/child`,queryParams:t,options:o})}}class iM{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i3`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:i3`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i3`configuration/manager/image/${e}`,options:t})}}class iU{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i3`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i3`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i3`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/delivered`,queryParams:t,options:o})}}class ij{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i3`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i3`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i3`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i3`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:i3`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:i3`service/${e}/${t}`,options:o})}}class iG{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class iq{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i3`console/register`,data:e,options:t})}}class iH{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}}class i${constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:i3`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i3`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i3`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i3`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:i3`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:i3`alarm/${e}/assets`,queryParams:t,options:o})}}class iV{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i3`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i3`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i3`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:i3`provisioning/${e}`,data:t,options:o})}}class iW{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/datapoint/${e}/${t}`,data:o,options:n})}}class iz{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i3`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i3`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i3`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i3`syslog/event`,queryParams:e,options:t})}}class iY{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i3`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i3`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i3`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/${e}`,data:t,options:o})}}class iK{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i3`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}}class iJ{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i3`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i3`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i3`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i3`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i3`map/upload`,queryParams:e,options:t})}}class iX{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i3`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i3`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i3`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i3`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i3`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:i3`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}`,options:o})}}class iQ{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:i3`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i3`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/valueDescriptors`,queryParams:e,options:t})}}class iZ{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i3`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i3`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i3`apps/info`,options:e})}}class i0{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i3`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:i3`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/status/${e}`,options:t})}}class i1{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i3`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i3`info`,options:e})}}class i2{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i3`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}function i3(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class i5{constructor(e,t=iN.create()){this._realmResource=new i6(e,t),this._dashboardResource=new i8(e,t),this._assetResource=new i9(e,t),this._configurationResource=new i7(e,t),this._notificationResource=new ce(e,t),this._externalServiceResource=new ct(e,t),this._agentResource=new co(e,t),this._consoleResource=new cn(e,t),this._assetPredictedDatapointResource=new cr(e,t),this._alarmResource=new ci(e,t),this._provisioningResource=new cc(e,t),this._assetDatapointResource=new ca(e,t),this._syslogResource=new cs(e,t),this._rulesResource=new cl(e,t),this._flowResource=new cd(e,t),this._mapResource=new cf(e,t),this._userResource=new cm(e,t),this._assetModelResource=new cu(e,t),this._appResource=new cb(e,t),this._gatewayClientResource=new cF(e,t),this._statusResource=new ch(e,t),this._gatewayServiceResource=new cp(e,t),this._assetResource=new i9(e,t)}get RealmResource(){return this._realmResource}get DashboardResource(){return this._dashboardResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get NotificationResource(){return this._notificationResource}get ExternalServiceResource(){return this._externalServiceResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AlarmResource(){return this._alarmResource}get ProvisioningResource(){return this._provisioningResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get RulesResource(){return this._rulesResource}get FlowResource(){return this._flowResource}get MapResource(){return this._mapResource}get UserResource(){return this._userResource}get AssetModelResource(){return this._assetModelResource}get AppResource(){return this._appResource}get GatewayClientResource(){return this._gatewayClientResource}get StatusResource(){return this._statusResource}get GatewayServiceResource(){return this._gatewayServiceResource}}class i4{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 o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class i6 extends iI{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i8 extends iP{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i9 extends iL{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i7 extends iM{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ce extends iU{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ct extends ij{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class co extends iG{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cn extends iq{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cr extends iH{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ci extends i${constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cc extends iV{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ca extends iW{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cs extends iz{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cl extends iY{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cd extends iK{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cf extends iJ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cm extends iX{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cu extends iQ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cb extends iZ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cF extends i0{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ch extends i1{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cp extends i2{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}var cg=o(8183),cy=o.n(cg);iN.isAxiosError;let cv=new class{get api(){return this._client}constructor(){this._axiosInstance=iN.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().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 i5(e,this._axiosInstance)}};var cE=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};(ev=tA||(tA={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let cA="SUBSCRIBED:",cw="UNAUTHORIZED:",ck="TRIGGERED:",cC="EVENT:";class cD{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.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 o=e.indexOf(t);o>=0&&e.splice(o,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===tA.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(tA.CONNECTING),this._connectingDeferred=new nO,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.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!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nO};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return cE(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===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+cD._subscriptionCounter++;if(!this._assetEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.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;n?n.find(e=>t===e)&&o(e):e.asset.realm===c7.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({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,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,c="AttributeEvent"+cD._subscriptionCounter++;if(!this._attributeEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let a=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===c7.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(c,a),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+c,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(c)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&a({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),c&&this.unsubscribe(c),t}return c})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.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 o=this._subscriptionMap.get(e);o&&o.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===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.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<c_.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(c_.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cD.MIN_RECONNECT_DELAY=0,cD.MAX_RECONNECT_DELAY=3e4,cD._subscriptionCounter=0;class c_ extends cD{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="+c7.config.realm;return this._connectDeferred=new nO,(c7.authenticated?c7.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(cA)){let e=JSON.parse(t.substring(cA.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(ck)){let e=JSON.parse(t.substring(ck.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cC)){let e=JSON.parse(t.substring(cC.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 nO,e.subscriptionId||(e.subscriptionId=c_._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=cC+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 nO;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cC+JSON.stringify(e)),t.promise}}c_._subscriptionCounter=1;let cS=["__proto__","constructor","prototype"];function cx(e){return!("string"!=typeof e||0===e.length||e.length>128||cS.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cO(e){return!(!cx(e)||e.indexOf("/")>-1)}let cT={lng:cO,ns:function(e){return cx(e)}};function cB(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cR(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cN=/\{\{(.+?)\}\}/g;function cI(e,t){let o=!1,n=e.replace(cN,(e,n)=>{let r=n.trim();if(cS.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let c=cT[r]||cO,a=String(i).split("+");for(let t of a)if(!c(t))return o=!0,e;return a.join("+")});return o?null:n}let cP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:cP&&"function"==typeof cP.fetch&&(e=cP.fetch);let cL=cR()&&cP?cP.XMLHttpRequest:void 0,cM="function"==typeof ActiveXObject&&cP?cP.ActiveXObject:void 0,cU=["__proto__","constructor","prototype"],cj=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))cU.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},cG=(t,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let e=r(t,o);if(e instanceof Promise)return void e.then(i).catch(n)}"function"==typeof fetch?fetch(t,o).then(i).catch(n):e(t,o).then(i).catch(n)},cq=(t,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),e&&0!==o.indexOf("file:")){var i=o,c=n,a=r;t.queryStringParams&&(i=cj(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})`),c&&(e["Content-Type"]="application/json");let s="function"==typeof t.requestOptions?t.requestOptions(c):t.requestOptions,l={method:c?"POST":"GET",body:c?t.stringify(c):void 0,headers:e,...t._omitFetchOptions?{}:s},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{cG(i,l,a,d)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return a(e);try{Object.keys(s).forEach(e=>{delete l[e]}),cG(i,l,a,d),t._omitFetchOptions=!0}catch(e){a(e)}}return}if(cR()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=cj("",l).slice(1)),t.queryStringParams&&(s=cj(s,t.queryStringParams));try{let e=cL?new cL:new cM("MSXML2.XMLHTTP.3.0");e.open(l?"POST":"GET",s,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,l&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let o=t.customHeaders;if(o="function"==typeof o?o():o)for(let t of Object.keys(o))cU.indexOf(t)>-1||e.setRequestHeader(t,o[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var cH=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){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,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:cq,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=o,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,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,c;let a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,o)),(a=(c=i=a)&&"function"==typeof c.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let c=cI(i,{lng:e.join("+"),ns:o.join("+")});if(null==c)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cB).join(", ")+"] namespaces=["+o.map(cB).join(", ")+"]"),!1);this.loadUrl(c,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=cB(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 c,a;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 o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+cB(e.message),!0)}if(e)return t(e,!1);try{c="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){a="failed parsing "+i+" to json"}if(a)return t(a,!1);t(null,c)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),c=0,a=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=cI(n,{lng:o,ns:t});if(null==l){c+=1,r&&c===e.length&&r(a,s);return}this.options.request(this.options,l,i,(t,o)=>{c+=1,a.push(t),s.push(o),c===e.length&&"function"==typeof r&&r(a,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};cH.type="backend";let c$=e=>(...t)=>({_$litDirective$:e,values:t});class cV{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cW extends cV{constructor(e){if(super(e),this.it=oi,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===oi||null==e)return this._t=void 0,this.it=e;if(e===or)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:[]}}}cW.directiveName="unsafeHTML",cW.resultType=1,c$(cW);class cz extends cW{}cz.directiveName="unsafeSVG",cz.resultType=2;let cY=c$(cz),cK={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 cJ=function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};class cX extends CustomEvent{constructor(){super(cX.NAME,{bubbles:!0,composed:!0})}}cX.NAME="or-iconset-added";let cQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return on``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):on``}},cZ=class extends ow{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tB`
10
+ `;class ow extends ov{static finalizeStyles(e){return[oA,...super.finalizeStyles(e)]}}let ok=e=>(t,o)=>{void 0!==o?o.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},oC={attribute:!0,type:String,converter:t$,reflect:!1,hasChanged:tV};function oD(e){return(t,o)=>{let n;return"object"==typeof o?((e=oC,t,o)=>{let{kind:n,metadata:r}=o,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===n&&((e=Object.create(e)).wrapped=!0),i.set(o.name,e),"accessor"===n){let{name:n}=o;return{set(o){let r=t.get.call(this);t.set.call(this,o),this.requestUpdate(n,r,e)},init(t){return void 0!==t&&this.C(n,void 0,e,t),t}}}if("setter"===n){let{name:n}=o;return function(o){let r=this[n];t.call(this,o),this.requestUpdate(n,r,e)}}throw Error("Unsupported decorator location: "+n)})(e,t,o):(n=t.hasOwnProperty(o),t.constructor.createProperty(o,e),n?Object.getOwnPropertyDescriptor(t,o):void 0)}}function o_(e){return oD({...e,state:!0,attribute:!1})}let oS=(e,t,o)=>(o.configurable=!0,o.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,o),o);function ox(e,t){return(o,n,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:c}="object"==typeof n?o:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return oS(o,n,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&c.call(this,e),e}})}return oS(o,n,{get(){return i(this)}})}}(f=ew||(ew={})).CREATE="CREATE",f.UPDATE="UPDATE",f.DELETE="DELETE",(m=ek||(ek={})).LOW="LOW",m.MEDIUM="MEDIUM",m.HIGH="HIGH",(u=eC||(eC={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eD||(eD={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(F=e_||(e_={})).BOTTOM_LEFT="BOTTOM_LEFT",F.BOTTOM_RIGHT="BOTTOM_RIGHT",F.TOP_LEFT="TOP_LEFT",F.TOP_RIGHT="TOP_RIGHT",(h=eS||(eS={})).CREATE="CREATE",h.READ="READ",h.UPDATE="UPDATE",h.DELETE="DELETE",(p=ex||(ex={})).NONE="NONE",p.FORECAST="FORECAST",p.SETPOINT="SETPOINT",(g=eO||(eO={})).DISCONNECTED="DISCONNECTED",g.CONNECTING="CONNECTING",g.DISCONNECTING="DISCONNECTING",g.CONNECTED="CONNECTED",g.DISABLED="DISABLED",g.WAITING="WAITING",g.ERROR="ERROR",g.STOPPED="STOPPED",(y=eT||(eT={})).REQUEST_START="REQUEST_START",y.REQUEST_REPEATING="REQUEST_REPEATING",y.REQUEST_CANCEL="REQUEST_CANCEL",y.READY="READY",y.COMPLETED="COMPLETED",y.RUNNING="RUNNING",y.CANCELLED="CANCELLED",(v=eB||(eB={})).TOGGLE="TOGGLE",v.INCREMENT="INCREMENT",v.DECREMENT="DECREMENT",v.NEGATE="NEGATE",(E=eR||(eR={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",E.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",E.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",E.INVALID_VALUE="INVALID_VALUE",E.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",E.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",E.CANNOT_PROCESS="CANNOT_PROCESS",E.QUEUE_FULL="QUEUE_FULL",E.UNKNOWN="UNKNOWN",E.ASSET_ID_MISSING="ASSET_ID_MISSING",E.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(A=eN||(eN={})).PUBLIC="PUBLIC",A.SHARED="SHARED",A.PRIVATE="PRIVATE",(w=eI||(eI={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(k=eP||(eP={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",k.KEEP_LAYOUT="KEEP_LAYOUT",k.REDIRECT="REDIRECT",k.BLOCK_DEVICE="BLOCK_DEVICE",(C=eL||(eL={})).CSV="CSV",C.CSV_CROSSTAB="CSV_CROSSTAB",C.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(D=eM||(eM={})).MINUTE="MINUTE",D.HOUR="HOUR",D.DAY="DAY",D.WEEK="WEEK",D.MONTH="MONTH",D.YEAR="YEAR",(_=eU||(eU={})).MIN="MIN",_.AVG="AVG",_.MAX="MAX",_.DIFFERENCE="DIFFERENCE",_.COUNT="COUNT",_.SUM="SUM",_.MODE="MODE",_.MEDIAN="MEDIAN",(S=ej||(ej={})).TERMINATING="TERMINATING",S.DISABLED="DISABLED",S.ALREADY_CONNECTED="ALREADY_CONNECTED",S.UNRECOGNISED="UNRECOGNISED",S.PERMANENT_ERROR="PERMANENT_ERROR",S.SYNC_ERROR="SYNC_ERROR",(x=eG||(eG={})).HTTPS="HTTPS",x.HTTP="HTTP",x.TCP="TCP",(O=eq||(eq={})).GET="GET",O.POST="POST",O.PUT="PUT",O.DELETE="DELETE",O.OPTIONS="OPTIONS",O.PATCH="PATCH",(T=eH||(eH={})).KEYCLOAK="KEYCLOAK",T.NONE="NONE",(B=e$||(e$={})).WEBSOCKET="WEBSOCKET",B.POLLING="POLLING",(R=eV||(eV={})).INTERNAL="INTERNAL",R.CLIENT="CLIENT",R.GLOBAL_RULESET="GLOBAL_RULESET",R.REALM_RULESET="REALM_RULESET",R.ASSET_RULESET="ASSET_RULESET",(N=eW||(eW={})).REALM="REALM",N.USER="USER",N.ASSET="ASSET",N.CUSTOM="CUSTOM",(I=ez||(ez={})).NORMAL="NORMAL",I.HIGH="HIGH",(P=eY||(eY={})).DEVICE="DEVICE",P.TOPIC="TOPIC",P.CONDITION="CONDITION",(L=eK||(eK={})).ALWAYS="ALWAYS",L.ONCE="ONCE",L.HOURLY="HOURLY",L.DAILY="DAILY",L.WEEKLY="WEEKLY",L.MONTHLY="MONTHLY",L.ANNUALLY="ANNUALLY",(M=eJ||(eJ={})).TITLE="TITLE",M.SOURCE="SOURCE",M.STATUS="STATUS",M.SENT_ON="SENT_ON",M.DELIVERED_ON="DELIVERED_ON",(U=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",U.CERTIFICATE_INVALID="CERTIFICATE_INVALID",U.UNAUTHORIZED="UNAUTHORIZED",U.FORBIDDEN="FORBIDDEN",U.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",U.CONFIG_DISABLED="CONFIG_DISABLED",U.USER_DISABLED="USER_DISABLED",U.SERVER_ERROR="SERVER_ERROR",U.ASSET_ERROR="ASSET_ERROR",U.SERVER_BUSY="SERVER_BUSY",(j=eQ||(eQ={})).PRIVATE="PRIVATE",j.PROTECTED="PROTECTED",j.PUBLIC="PUBLIC",(G=eZ||(eZ={})).EXACT="EXACT",G.BEGIN="BEGIN",G.END="END",G.CONTAINS="CONTAINS",(q=e0||(e0={})).EQUALS="EQUALS",q.GREATER_THAN="GREATER_THAN",q.GREATER_EQUALS="GREATER_EQUALS",q.LESS_THAN="LESS_THAN",q.LESS_EQUALS="LESS_EQUALS",q.BETWEEN="BETWEEN",(H=e1||(e1={})).CREATED_ON="CREATED_ON",H.NAME="NAME",H.ASSET_TYPE="ASSET_TYPE",H.PARENT_ID="PARENT_ID",H.REALM="REALM",(V=e2||(e2={})).RESTRICTED="RESTRICTED",V.LINKED="LINKED",V.REALM="REALM",(W=e3||(e3={})).AT_LEAST_ONE="AT_LEAST_ONE",W.ALL="ALL",W.NONE="NONE",(z=e5||(e5={})).AND="AND",z.OR="OR",(Y=e4||(e4={})).CREATED_ON="CREATED_ON",Y.FIRST_NAME="FIRST_NAME",Y.LAST_NAME="LAST_NAME",Y.USERNAME="USERNAME",Y.EMAIL="EMAIL",(K=e6||(e6={})).STOPPED="STOPPED",K.RUNNING="RUNNING",K.ERROR="ERROR",(J=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",J.GROOVY="GROOVY",J.JSON="JSON",J.FLOW="FLOW",(X=e9||(e9={})).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=e7||(e7={})).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=to||(to={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(eo=tn||(tn={})).TEXT="TEXT",eo.MULTILINE="MULTILINE",eo.NUMBER="NUMBER",eo.DROPDOWN="DROPDOWN",eo.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",eo.CHECKBOX="CHECKBOX",eo.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",eo.COLOR="COLOR",eo.DATE="DATE",(en=tr||(tr={})).ADD="ADD",en.ADD_OR_REPLACE="ADD_OR_REPLACE",en.REPLACE="REPLACE",en.DELETE="DELETE",en.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=tc||(tc={})).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",(ec=ta||(ta={})).REGISTER="REGISTER",ec.UPDATE="UPDATE",ec.DEREGISTER="DEREGISTER",(ea=ts||(ts={})).AVAILABLE="AVAILABLE",ea.UNAVAILABLE="UNAVAILABLE",(es=tl||(tl={})).ASSET="ASSET",es.AGENT="AGENT",es.NOTIFICATION="NOTIFICATION",es.ALARM="ALARM",es.RULES="RULES",es.PROTOCOL="PROTOCOL",es.GATEWAY="GATEWAY",es.MODEL_AND_VALUES="MODEL_AND_VALUES",es.API="API",es.DATA="DATA",(el=td||(td={})).INFO="INFO",el.WARN="WARN",el.ERROR="ERROR",(ed=tf||(tf={})).NUMERIC="numeric",ed.DIGIT_2="2-digit",ed.FULL="full",ed.LONG="long",ed.MEDIUM="medium",ed.SHORT="short",ed.NARROW="narrow",(ef=tm||(tm={})).SECONDLY="SECONDLY",ef.MINUTELY="MINUTELY",ef.HOURLY="HOURLY",ef.DAILY="DAILY",ef.WEEKLY="WEEKLY",ef.MONTHLY="MONTHLY",ef.YEARLY="YEARLY",(em=tu||(tu={})).OMIT="OMIT",em.BACKWARD="BACKWARD",em.FORWARD="FORWARD",(eu=tb||(tb={})).JAPANESE="JAPANESE",eu.BUDDHIST="BUDDHIST",eu.ROC="ROC",eu.ISLAMIC="ISLAMIC",eu.ISO8601="ISO8601",eu.CHINESE="CHINESE",eu.ETHIOPIC="ETHIOPIC",eu.HEBREW="HEBREW",eu.GREGORIAN="GREGORIAN",(eb=tF||(tF={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eF=th||(th={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eF.MAILAGENT="MailAgent",eF.UDPAGENT="UDPAgent",eF.ROOMASSET="RoomAsset",eF.CITYASSET="CityAsset",eF.VENTILATIONASSET="VentilationAsset",eF.TRADFRILIGHTASSET="TradfriLightAsset",eF.CONSOLEASSET="ConsoleAsset",eF.PRESENCESENSORASSET="PresenceSensorAsset",eF.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eF.LIGHTASSET="LightAsset",eF.KNXAGENT="KNXAgent",eF.THETHINGSSTACKAGENT="TheThingsStackAgent",eF.PLUGASSET="PlugAsset",eF.CHIRPSTACKAGENT="ChirpStackAgent",eF.WEATHERASSET="WeatherAsset",eF.THINGASSET="ThingAsset",eF.WEBSOCKETAGENT="WebsocketAgent",eF.TCPAGENT="TCPAgent",eF.GATEWAYASSET="GatewayAsset",eF.SERIALAGENT="SerialAgent",eF.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eF.PARKINGASSET="ParkingAsset",eF.TRADFRIPLUGASSET="TradfriPlugAsset",eF.SIMULATORAGENT="SimulatorAgent",eF.SNMPAGENT="SNMPAgent",eF.GROUPASSET="GroupAsset",eF.BUILDINGASSET="BuildingAsset",eF.MODBUSSERIALAGENT="ModbusSerialAgent",eF.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eF.MQTTAGENT="MQTTAgent",eF.VELBUSTCPAGENT="VelbusTCPAgent",eF.ARTNETLIGHTASSET="ArtnetLightAsset",eF.VELBUSSERIALAGENT="VelbusSerialAgent",eF.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eF.MICROPHONEASSET="MicrophoneAsset",eF.MODBUSTCPAGENT="ModbusTcpAgent",eF.ZWAVEAGENT="ZWaveAgent",eF.HTTPAGENT="HTTPAgent",eF.DOORASSET="DoorAsset",eF.THERMOSTATASSET="ThermostatAsset",eF.SHIPASSET="ShipAsset",(eh=tp||(tp={})).COLOURRGB="colourRGB",eh.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",eh.PRICEHOURLY="priceHourly",eh.MQTTPORT="MQTTPort",eh.PINGDISABLED="pingDisabled",eh.FLOW="flow",eh.CHILDASSETTYPE="childAssetType",eh.LASTACCESS="lastAccess",eh.POSITION="position",eh.NETWORKKEY="networkKey",eh.UNIVERSE="universe",eh.ROUTINGMODE="routingMode",eh.MSSINUMBER="MSSINumber",eh.LASTWILLRETAIN="lastWillRetain",eh.LASTWILLTOPIC="lastWillTopic",eh.SERIALBAUDRATE="serialBaudrate",eh.SUBSCRIBEQOS="subscribeQos",eh.LEDCOUNT="lEDCount",eh.LOCKED="locked",eh.CLOUDCOVERAGE="cloudCoverage",eh.BASEURL="baseURL",eh.PROTOCOL="protocol",eh.REQUIREDVALUES="requiredValues",eh.REGION="region",eh.CONSOLEPLATFORM="consolePlatform",eh.GATEWAYSTATUS="gatewayStatus",eh.NO2LEVEL="NO2Level",eh.ATMOSPHERICPRESSURE="atmosphericPressure",eh.SERIALPORT="serialPort",eh.APPLICATIONID="applicationId",eh.TAGS="tags",eh.UNLOCK="unlock",eh.CHECKINTERVALSECONDS="checkIntervalSeconds",eh.LOCATION="location",eh.CLIENTSECRET="clientSecret",eh.WINDDIRECTION="windDirection",eh.WINDSPEED="windSpeed",eh.PARTICLESPM10="particlesPM10",eh.APPLICATIONKEY="applicationKey",eh.LENGTH="length",eh.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",eh.USERNAMEPASSWORD="usernamePassword",eh.WATERLEVEL="waterLevel",eh.CONNECTHEADERS="connectHeaders",eh.CONSOLENAME="consoleName",eh.WEBSOCKETQUERY="websocketQuery",eh.PREFERHTML="preferHTML",eh.PARITY="parity",eh.COOLING="cooling",eh.POLLINGMILLIS="pollingMillis",eh.SOILTEMPERATURE="soilTemperature",eh.SUNIRRADIANCE="sunIrradiance",eh.MESSAGEMAXLENGTH="messageMaxLength",eh.WINDGUSTSPEED="windGustSpeed",eh.LIGHTID="lightId",eh.PROXYADDRESS="proxyAddress",eh.REQUESTQUERYPARAMETERS="requestQueryParameters",eh.MQTTHOST="MQTTHost",eh.SECUREGRPC="secureGRPC",eh.MODEL="model",eh.STREET="street",eh.MANUFACTURER="manufacturer",eh.DELETEPROCESSEDMAIL="deleteProcessedMail",eh.RESUMESESSION="resumeSession",eh.ONOFF="onOff",eh.APIKEY="ApiKey",eh.CITY="city",eh.PRESENCE="presence",eh.SPACESOCCUPIED="spacesOccupied",eh.STARTTLS="startTLS",eh.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",eh.WEBSOCKETPATH="websocketPath",eh.AGENTSTATUS="agentStatus",eh.PRICEDAILY="priceDaily",eh.COUNTGROWTHMINUTE="countGrowthMinute",eh.IMONUMBER="IMONumber",eh.ATTRIBUTION="Attribution",eh.TENANTID="tenantId",eh.REQUESTHEADERS="requestHeaders",eh.HOST="host",eh.COUNTOUTMINUTE="countOutMinute",eh.MESSAGECHARSET="messageCharset",eh.CERTIFICATEALIAS="certificateAlias",eh.EMAIL="email",eh.BINDPORT="bindPort",eh.CONSOLEVERSION="consoleVersion",eh.PARTICLESPM1="particlesPM1",eh.MTU="mtu",eh.SPEED="speed",eh.MESSAGESTRIPDELIMITER="messageStripDelimiter",eh.AREA="area",eh.COUNTRY="country",eh.SHIPTYPE="shipType",eh.CONNECTSUBSCRIPTIONS="connectSubscriptions",eh.RELATIVEHUMIDITY="relativeHumidity",eh.SOURCEADDRESS="sourceAddress",eh.RAINFALL="rainfall",eh.OAUTHGRANT="oAuthGrant",eh.OZONELEVEL="ozoneLevel",eh.SEQUENCENUMBER="sequenceNumber",eh.COUNTINMINUTE="countInMinute",eh.PORT="port",eh.SUNALTITUDE="sunAltitude",eh.COUNTOUT="countOut",eh.ROOMNUMBER="roomNumber",eh.TUNNELINGSUPPORTED="tunnelingSupported",eh.ENINUMBER="ENINumber",eh.PARTICLESPM2_5="particlesPM2_5",eh.AGENTDISABLED="agentDisabled",eh.DISABLED="disabled",eh.COUNTIN="countIn",eh.MESSAGESOURCEADDRESS="messageSourceAddress",eh.PROVISIONWEATHERASSET="ProvisionWeatherAsset",eh.TIMEINJECTIONINTERVAL="timeInjectionInterval",eh.TEMPERATURESETPOINT="temperatureSetpoint",eh.CONSOLEPROVIDERS="consoleProviders",eh.COUNTTOTAL="countTotal",eh.SPACESBUFFER="spacesBuffer",eh.DEVICECONFIG="deviceConfig",eh.SPACESTOTAL="spacesTotal",eh.BINDHOST="bindHost",eh.FANSPEED="fanSpeed",eh.MESSAGECONVERTBINARY="messageConvertBinary",eh.NOTES="notes",eh.MAILFOLDERNAME="mailFolderName",eh.MESSAGEDELIMITERS="messageDelimiters",eh.TEMPERATURE="temperature",eh.SUNZENITH="sunZenith",eh.SNMPVERSIONVALUE="SNMPVersionValue",eh.BRIGHTNESS="brightness",eh.POSTALCODE="postalCode",eh.SPACESOPEN="spacesOpen",eh.HUMIDITY="humidity",eh.SOUNDLEVEL="soundLevel",eh.SECUREMODE="secureMode",eh.DIRECTION="direction",eh.STOPBITS="stopbits",eh.UVINDEX="uVIndex",eh.CONNECTURL="connectURL",eh.CLIENTID="clientId",eh.NATMODE="NATMode",eh.UPDATEONWRITE="updateOnWrite",eh.LASTWILLPAYLOAD="lastWillPayload",eh.GROUPID="groupId",eh.FOLLOWREDIRECTS="followRedirects",eh.SUNAZIMUTH="sunAzimuth",eh.MESSAGECONVERTHEX="messageConvertHex",eh.WEBSOCKETMODE="websocketMode",eh.COLOURTEMPERATURE="colourTemperature",eh.PUBLISHQOS="publishQos",eh.DATABITS="dataBits",(ep=tg||(tg={})).FORMAT="format",ep.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",ep.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",ep.SECRET="secret",ep.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",ep.ATTRIBUTELINKS="attributeLinks",ep.RULERESETIMMEDIATE="ruleResetImmediate",ep.RULESTATE="ruleState",ep.AGENTLINKCONFIG="agentLinkConfig",ep.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",ep.FORECAST="forecast",ep.STOREDATAPOINTS="storeDataPoints",ep.LABEL="label",ep.CONSTRAINTS="constraints",ep.UNITS="units",ep.USERCONNECTED="userConnected",ep.SHOWONDASHBOARD="showOnDashboard",ep.READONLY="readOnly",ep.MULTILINE="multiline",ep.ACCESSPUBLICWRITE="accessPublicWrite",ep.MOMENTARY="momentary",ep.AGENTLINK="agentLink",ep.ACCESSRESTRICTEDREAD="accessRestrictedRead",ep.ACCESSPUBLICREAD="accessPublicRead",(eg=ty||(ty={})).ASSETQUERY="assetQuery",eg.WSURL="WS_URL",eg.COLOURRGB="colourRGB",eg.VALUEFORMAT="valueFormat",eg.TEXT="text",eg.BYTE="byte",eg.USERNAMEANDPASSWORD="usernameAndPassword",eg.HTTPURL="HTTP_URL",eg.ATTRIBUTELINK="attributeLink",eg.ASSETID="assetID",eg.NUMBERMAP="numberMap",eg.HTTPMETHOD="HTTPMethod",eg.ATTRIBUTESTATE="attributeState",eg.POSITIVENUMBER="positiveNumber",eg.POSITIVEINTEGER="positiveInteger",eg.EXECUTIONSTATUS="executionStatus",eg.BIGINTEGER="bigInteger",eg.VALUEDESCRIPTOR="valueDescriptor",eg.PERIODDURATIONISO8601="periodDurationISO8601",eg.LONG="long",eg.DATEANDTIME="dateAndTime",eg.BOOLEANMAP="booleanMap",eg.MQTTQOS="MQTTQos",eg.NEGATIVEINTEGER="negativeInteger",eg.TCPIPPORTNUMBER="TCP_IPPortNumber",eg.GEOJSONPOINT="GEO_JSONPoint",eg.SNMPVERSION="SNMPVersion",eg.ASSETTYPE="assetType",eg.JSONOBJECT="JSONObject",eg.INTEGERMAP="integerMap",eg.BIGNUMBER="bigNumber",eg.IPADDRESS="IPAddress",eg.EMAIL="email",eg.TIMESTAMP="timestamp",eg.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",eg.ATTRIBUTEREFERENCE="attributeReference",eg.UUID="UUID",eg.INTEGER="integer",eg.OAUTHGRANT="oAuthGrant",eg.NUMBER="number",eg.DEVICECONFIGMAP="DeviceConfigMap",eg.TEXTMAP="textMap",eg.WEBSOCKETSUBSCRIPTION="websocketSubscription",eg.BOOLEAN="boolean",eg.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",eg.FORECASTCONFIGURATION="forecastConfiguration",eg.TIMEDURATIONISO8601="timeDurationISO8601",eg.TIMESTAMPISO8601="timestampISO8601",eg.CONSOLEPROVIDERS="consoleProviders",eg.MULTIVALUEDTEXTMAP="multivaluedTextMap",eg.NEGATIVENUMBER="negativeNumber",eg.PARITYBIT="Paritybit",eg.JSON="JSON",eg.CRONEXPRESSION="CRONExpression",eg.INTEGERBYTE="integerByte",eg.AGENTLINK="agentLink",eg.DIRECTION="direction",eg.HOSTORIPADDRESS="hostOrIPAddress",eg.STOPBITS="Stopbits",eg.CALENDAREVENT="calendarEvent",eg.CONNECTIONSTATUS="connectionStatus",eg.VALUECONSTRAINT="valueConstraint",(ey=tv||(tv={})).MONTH="month",ey.MILE_SCANDINAVIAN="mile_scandinavian",ey.VAR="var",ey.OUNCE="ounce",ey.HECTARE="hectare",ey.YARD="yard",ey.YEAR="year",ey.GIGA="giga",ey.JOULE="joule",ey.VOLT="volt",ey.HERTZ="hertz",ey.MILE="mile",ey.DEGREE="degree",ey.KILO="kilo",ey.BTU="btu",ey.TERA="tera",ey.FOOT="foot",ey.MEGA="mega",ey.KELVIN="kelvin",ey.CARBON="carbon",ey.DECIBEL_ATTENUATED="decibel_attenuated",ey.INCH="inch",ey.SQUARED="squared",ey.PERCENTAGE="percentage",ey.IN_HG="inch_mercury",ey.CENTI="centi",ey.GRAM="gram",ey.CUBED="cubed",ey.DAY="day",ey.RADIAN="radian",ey.OHM="ohm",ey.MINUTE="minute",ey.PART_PER_MILLION="ppm",ey.AMP="amp",ey.MASS_POUND="pound",ey.KNOT="knot",ey.METRE="metre",ey.LITRE="litre",ey.FLUID_OUNCE="fluid_ounce",ey.HOUR="hour",ey.ACRE="acre",ey.CELSIUS="celsius",ey.RPM="rpm",ey.PASCAL="pascal",ey.DECIBEL="decibel",ey.LUMEN="lumen",ey.WEEK="week",ey.FAHRENHEIT="fahrenheit",ey.WATT="watt",ey.GALLON="gallon",ey.LUX="lux",ey.MILLI="milli",ey.BAR="bar",ey.HECTO="hecto",ey.PEAK="peak",ey.SECOND="second",ey.MICRO="micro",ey.PER="per",ey.STONE="stone",tE||(tE={});class oO{static getAssetDescriptors(){return oO._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 o=this.getAssetTypeInfo(t||"ThingAsset");if(o&&o.attributeDescriptors)return o.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 o=this._valueDescriptors.find(t=>t.name===e);return o&&t&&(o=Object.assign(Object.assign({},o),{arrayDimensions:t})),o}static resolveValueDescriptor(e,t){let o;return t&&("string"==typeof t&&(o=oO.getValueDescriptor(t)),o=t.jsonType?t:oO.getValueDescriptor(t.type)),!o&&e&&(o=oO.getValueDescriptor("JSON")),o}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,o=e.find(e=>null!=e);for(;Array.isArray(o);)o=o.find(e=>null!=e),t++;let n=this.resolveValueTypeFromValue(o);if(!n)return;for(;t>0;)n+="[]",t--;return n}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,o){let n,r;if(t&&"string"!=typeof t)n=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(n=this.getAttributeDescriptor(t,r)),!n&&o&&(n={type:o.type,name:o.name,meta:o.meta})}return n&&(r=this.getValueDescriptor(n.type)),[n,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let o=this.getAssetDescriptor(e);return o&&o.colour?o.colour:t}static getAssetDescriptorIcon(e,t){let o=this.getAssetDescriptor(e);return o&&o.icon?o.icon:t}}oO._assetTypeInfos=[],oO._metaItemDescriptors=[],oO._valueDescriptors=[];var oT=o(1001);function oB(e){return(oB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oR(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function oN(e){var t=function(e,t){if("object"!=oB(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=oB(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==oB(t)?t:t+""}function oI(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oN(n.key),n)}}function oP(e,t,o){return t&&oI(e.prototype,t),o&&oI(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function oL(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oM(e,t){return(oM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oU(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oM(e,t)}function oj(e,t){if(t&&("object"==oB(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return oL(e)}function oG(e){return(oG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oq(e,t,o){return(t=oN(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function oH(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function o$(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function oV(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o$(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o$(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}o(4532);var oW={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},oz=new(function(){function e(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.init(t,o)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||oW,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,o,n){return n&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(o).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,oV(oV({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),oY=function(){function e(){oR(this,e),this.observers={}}return oP(e,[{key:"on",value:function(e,t){var o=this;return e.split(" ").forEach(function(e){o.observers[e]=o.observers[e]||[],o.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,o)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(o))})}}]),e}();function oK(){var e,t,o=new Promise(function(o,n){e=o,t=n});return o.resolve=e,o.reject=t,o}function oJ(e){return null==e?"":""+e}function oX(e,t,o){function n(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(r())return{};var c=n(i.shift());!e[c]&&o&&(e[c]=new o),e=Object.prototype.hasOwnProperty.call(e,c)?e[c]:{}}return r()?{}:{obj:e,k:n(i.shift())}}function oQ(e,t,o){var n=oX(e,t,Object);n.obj[n.k]=o}function oZ(e,t){var o=oX(e,t),n=o.obj,r=o.k;if(n)return n[r]}function o0(e,t,o){var n=oZ(e,o);return void 0!==n?n:oZ(t,o)}function o1(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function o3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return o2[e]}):e}var o5="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,o4=[" ",",","?","!",";"];function o6(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function o8(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?o6(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):o6(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var o9=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.data=e||{},t.options=r,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return oP(n,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[e,t];o&&"string"!=typeof o&&(c=c.concat(o)),o&&"string"==typeof o&&(c=c.concat(r?o.split(r):o)),e.indexOf(".")>-1&&(c=e.split("."));var a=oZ(this.data,c);return a||!i||"string"!=typeof o?a:function e(t,o){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[o])return t[o];for(var r=o.split(n),i=t,c=0;c<r.length;++c){if(!i||"string"==typeof i[r[c]]&&c+1<r.length)return;if(void 0===i[r[c]]){for(var a=2,s=r.slice(c,c+a).join(n),l=i[s];void 0===l&&r.length>c+a;)a++,l=i[s=r.slice(c,c+a).join(n)];if(void 0===l)return;if(null===l)return null;if(o.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var d=r.slice(c+a).join(n);if(d)return e(l,d,n);return}i=i[r[c]]}return i}}(this.data&&this.data[e]&&this.data[e][t],o,r)}},{key:"addResource",value:function(e,t,o,n){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var c=[e,t];o&&(c=c.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(c=e.split("."),n=t,t=c[1]),this.addNamespaces(t),oQ(this.data,c,n),r.silent||this.emit("added",e,t,o,n)}},{key:"addResources",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in o)("string"==typeof o[r]||"[object Array]"===Object.prototype.toString.apply(o[r]))&&this.addResource(e,t,r,o[r],{silent:!0});n.silent||this.emit("added",e,t,o)}},{key:"addResourceBundle",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),n=o,o=t,t=c[1]),this.addNamespaces(t);var a=oZ(this.data,c)||{};n?function e(t,o,n){for(var r in o)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof o[r]||o[r]instanceof String?n&&(t[r]=o[r]):e(t[r],o[r],n):t[r]=o[r]);return t}(a,o,r):a=o8(o8({},a),o),oQ(this.data,c,a),i.silent||this.emit("added",e,t,o)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?o8(o8({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(oY),o7={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,o,n,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,o,n,r))}),t}};function ne(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ne(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var no={},nn=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e){var t,r,i,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=oL(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=c,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=oz.create("translator"),i}return oP(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var o=this.resolve(e,t);return o&&void 0!==o.res}},{key:"extractFromKey",value:function(e,t){var o=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===o&&(o=":");var n=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=o&&e.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,o){t=t||"",o=o||"";var n=o4.filter(function(e){return 0>t.indexOf(e)&&0>o.indexOf(e)});if(0===n.length)return!0;var r=new RegExp("(".concat(n.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var c=e.indexOf(o);c>0&&!r.test(e.substring(0,c))&&(i=!0)}return i}(e,o,n);if(i&&!c){var a=e.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:e,namespaces:r};var s=e.split(o);(o!==n||o===n&&this.options.ns.indexOf(s[0])>-1)&&(r=s.shift()),e=s.join(n)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,o){var r=this;if("object"!==oB(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var i=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,c=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=this.extractFromKey(e[e.length-1],t),s=a.key,l=a.namespaces,d=l[l.length-1],f=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(m){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(d).concat(u).concat(s),b):"".concat(d).concat(u).concat(s)}return i?(b.res=s,b):s}var b=this.resolve(e,t),F=b&&b.res,h=b&&b.usedKey||s,p=b&&b.exactUsedKey||s,g=Object.prototype.toString.apply(F),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof F&&"boolean"!=typeof F&&"number"!=typeof F;if(v&&F&&E&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(g)&&("string"!=typeof y||"[object Array]"!==g)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,F,nt(nt({},t),{},{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=A,b):A}if(c){var w="[object Array]"===g,k=w?[]:{},C=w?p:h;for(var D in F)if(Object.prototype.hasOwnProperty.call(F,D)){var _="".concat(C).concat(c).concat(D);k[D]=this.translate(_,nt(nt({},t),{joinArrays:!1,ns:l})),k[D]===_&&(k[D]=F[D])}F=k}}else if(v&&"string"==typeof y&&"[object Array]"===g)(F=F.join(y))&&(F=this.extendTranslation(F,e,t,o));else{var S=!1,x=!1,O=void 0!==t.count&&"string"!=typeof t.count,T=n.hasDefaultValue(t),B=O?this.pluralResolver.getSuffix(f,t.count,t):"",R=t["defaultValue".concat(B)]||t.defaultValue;!this.isValidLookup(F)&&T&&(S=!0,F=R),this.isValidLookup(F)||(x=!0,F=s);var N=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&x?void 0:F,I=T&&R!==F&&this.options.updateMissing;if(x||S||I){if(this.logger.log(I?"updateKey":"missingKey",f,d,s,I?R:F),c){var P=this.resolve(s,nt(nt({},t),{},{keySeparator:!1}));P&&P.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.")}var L=[],M=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&M&&M[0])for(var U=0;U<M.length;U++)L.push(M[U]);else"all"===this.options.saveMissingTo?L=this.languageUtils.toResolveHierarchy(t.lng||this.language):L.push(t.lng||this.language);var j=function(e,o,n){var i=T&&n!==F?n:N;r.options.missingKeyHandler?r.options.missingKeyHandler(e,d,o,i,I,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,d,o,i,I,t),r.emit("missingKey",e,d,o,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&O?L.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(o){j([e],s+o,t["defaultValue".concat(o)]||R)})}):j(L,s,R))}F=this.extendTranslation(F,e,t,b,o),x&&F===s&&this.options.appendNamespaceToMissingKey&&(F="".concat(d,":").concat(s)),(x||S)&&this.options.parseMissingKeyHandler&&(F="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(s):s,S?F:void 0):this.options.parseMissingKeyHandler(F))}return i?(b.res=F,b):F}},{key:"extendTranslation",value:function(e,t,o,n,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,nt(nt({},this.options.interpolation.defaultVariables),o),n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(nt(nt({},o),{interpolation:nt(nt({},this.options.interpolation),o.interpolation)}));var c,a="string"==typeof e&&(o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){var s=e.match(this.interpolator.nestingRegexp);c=s&&s.length}var l=o.replace&&"string"!=typeof o.replace?o.replace:o;if(this.options.interpolation.defaultVariables&&(l=nt(nt({},this.options.interpolation.defaultVariables),l)),e=this.interpolator.interpolate(e,l,o.lng||this.language,o),a){var d=e.match(this.interpolator.nestingRegexp);c<(d&&d.length)&&(o.nest=!1)}!1!==o.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,n=Array(e),c=0;c<e;c++)n[c]=arguments[c];return r&&r[0]===n[0]&&!o.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(n[0]," in key: ").concat(t[0])),null):i.translate.apply(i,n.concat([t]))},o)),o.interpolation&&this.interpolator.reset()}var f=o.postProcess||this.options.postProcess,m="string"==typeof f?[f]:f;return null!=e&&m&&m.length&&!1!==o.applyPostProcessor&&(e=o7.handle(m,e,t,this.options&&this.options.postProcessPassResolved?nt({i18nResolved:n},o):o,this)),e}},{key:"resolve",value:function(e){var t,o,n,r,i,c=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!c.isValidLookup(t)){var s=c.extractFromKey(e,a),l=s.key;o=l;var d=s.namespaces;c.options.fallbackNS&&(d=d.concat(c.options.fallbackNS));var f=void 0!==a.count&&"string"!=typeof a.count,m=f&&!a.ordinal&&0===a.count&&c.pluralResolver.shouldUseIntlApi(),u=void 0!==a.context&&("string"==typeof a.context||"number"==typeof a.context)&&""!==a.context,b=a.lngs?a.lngs:c.languageUtils.toResolveHierarchy(a.lng||c.language,a.fallbackLng);d.forEach(function(e){c.isValidLookup(t)||(i=e,!no["".concat(b[0],"-").concat(e)]&&c.utils&&c.utils.hasLoadedNamespace&&!c.utils.hasLoadedNamespace(i)&&(no["".concat(b[0],"-").concat(e)]=!0,c.logger.warn('key "'.concat(o,'" for languages "').concat(b.join(", "),'" won\'t get resolved as namespace "').concat(i,'" 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!!!")),b.forEach(function(o){if(!c.isValidLookup(t)){r=o;var i,s=[l];if(c.i18nFormat&&c.i18nFormat.addLookupKeys)c.i18nFormat.addLookupKeys(s,l,o,e,a);else{f&&(d=c.pluralResolver.getSuffix(o,a.count,a));var d,b="".concat(c.options.pluralSeparator,"zero");if(f&&(s.push(l+d),m&&s.push(l+b)),u){var F="".concat(l).concat(c.options.contextSeparator).concat(a.context);s.push(F),f&&(s.push(F+d),m&&s.push(F+b))}}for(;i=s.pop();)c.isValidLookup(t)||(n=i,t=c.getResource(o,e,i,a))}}))})}}),{res:t,usedKey:o,exactUsedKey:n,usedLng:r,usedNS:i}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,o){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,n):this.resourceStore.getResource(e,t,o,n)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&void 0!==e[o])return!0;return!1}}]),n}(oY);function nr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ni=function(){function e(t){oR(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=oz.create("languageUtils")}return oP(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],o=e.split("-");return this.options.lowerCaseLng?o=o.map(function(e){return e.toLowerCase()}):2===o.length?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase()))):3===o.length&&(o[0]=o[0].toLowerCase(),2===o[1].length&&(o[1]=o[1].toUpperCase()),"sgn"!==o[0]&&2===o[2].length&&(o[2]=o[2].toUpperCase()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=nr(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=nr(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,o=this;return e?(e.forEach(function(e){if(!t){var n=o.formatLanguageCode(e);(!o.options.supportedLngs||o.isSupportedCode(n))&&(t=n)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var n=o.getLanguagePartFromCode(e);if(o.isSupportedCode(n))return t=n;t=o.options.supportedLngs.find(function(e){if(0===e.indexOf(n))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}},{key:"toResolveHierarchy",value:function(e,t){var o=this,n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(o.isSupportedCode(e)?r.push(e):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),n.forEach(function(e){0>r.indexOf(e)&&i(o.formatLanguageCode(e))}),r}}]),e}(),nc=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],na={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ns=["v1","v2","v3"],nl={zero:0,one:1,two:2,few:3,many:4,other:5},nd=function(){function e(t){var o,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};oR(this,e),this.languageUtils=t,this.options=n,this.logger=oz.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(o={},nc.forEach(function(e){e.lngs.forEach(function(t){o[t]={numbers:e.nr,plurals:na[e.fc]}})}),o)}return oP(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,o).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(function(e,t){return nl[e]-nl[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):n.numbers.map(function(n){return t.getSuffix(e,n,o)}):[]}},{key:"getSuffix",value:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRule(e,o);return n?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(n.select(t)):this.getSuffixRetroCompatible(n,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var o=this,n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return o.options.prepend&&r.toString()?o.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}},{key:"shouldUseIntlApi",value:function(){return!ns.includes(this.options.compatibilityJSON)}}]),e}();function nf(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nm(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nf(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return oP(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:o3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?o1(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?o1(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?o1(t.nestingPrefix):t.nestingPrefixEscaped||o1("$t("),this.nestingSuffix=t.nestingSuffix?o1(t.nestingSuffix):t.nestingSuffixEscaped||o1(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(o,"g")}},{key:"interpolate",value:function(e,t,o,n){var r,i,c,a=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(a.formatSeparator)){var r=o0(t,s,e);return a.alwaysFormat?a.format(r,void 0,o,nm(nm(nm({},n),t),{},{interpolationkey:e})):r}var i=e.split(a.formatSeparator),c=i.shift().trim(),l=i.join(a.formatSeparator).trim();return a.format(o0(t,s,c),l,o,nm(nm(nm({},n),t),{},{interpolationkey:c}))};this.resetRegExp();var f=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,m=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return a.escapeValue?l(a.escape(e)):l(e)}}].forEach(function(t){for(c=0;r=t.regex.exec(e);){var o=r[1].trim();if(void 0===(i=d(o)))if("function"==typeof f){var s=f(e,r,n);i="string"==typeof s?s:""}else if(n&&n.hasOwnProperty(o))i="";else if(m){i=r[0];continue}else a.logger.warn("missed to pass in variable ".concat(o," for interpolating ").concat(e)),i="";else"string"==typeof i||a.useRawValueToEscape||(i=oJ(i));var l=t.safeValue(i);if(e=e.replace(r[0],l),m?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++c>=a.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var o,n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=nm({},i);function a(e,t){var o=this.nestingOptionsSeparator;if(0>e.indexOf(o))return e;var n=e.split(new RegExp("".concat(o,"[ ]*{"))),r="{".concat(n[1]);e=n[0];var i=(r=this.interpolate(r,c)).match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{c=JSON.parse(r),t&&(c=nm(nm({},t),c))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(o).concat(r)}return delete c.defaultValue,e}for(c.applyPostProcessor=!1,delete c.defaultValue;o=this.nestingRegexp.exec(e);){var s=[],l=!1;if(-1!==o[0].indexOf(this.formatSeparator)&&!/{.*}/.test(o[1])){var d=o[1].split(this.formatSeparator).map(function(e){return e.trim()});o[1]=d.shift(),s=d,l=!0}if((n=t(a.call(this,o[1].trim(),c),c))&&o[0]===e&&"string"!=typeof n)return n;"string"!=typeof n&&(n=oJ(n)),n||(this.logger.warn("missed to resolve ".concat(o[1]," for nesting ").concat(e)),n=""),l&&(n=s.reduce(function(e,t){return r.format(e,t,i.lng,nm(nm({},i),{},{interpolationkey:o[1].trim()}))},n.trim())),e=e.replace(o[0],n),this.regexp.lastIndex=0}return e}}]),e}();function nb(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nF(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nb(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nb(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nh(e){var t={};return function(o,n,r){var i=n+JSON.stringify(r),c=t[i];return c||(c=e(n,r),t[i]=c),c(o)}}var np=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};oR(this,e),this.logger=oz.create("formatter"),this.options=t,this.formats={number:nh(function(e,t){var o=new Intl.NumberFormat(e,t);return function(e){return o.format(e)}}),currency:nh(function(e,t){var o=new Intl.NumberFormat(e,nF(nF({},t),{},{style:"currency"}));return function(e){return o.format(e)}}),datetime:nh(function(e,t){var o=new Intl.DateTimeFormat(e,nF({},t));return function(e){return o.format(e)}}),relativetime:nh(function(e,t){var o=new Intl.RelativeTimeFormat(e,nF({},t));return function(e){return o.format(e,t.range||"day")}}),list:nh(function(e,t){var o=new Intl.ListFormat(e,nF({},t));return function(e){return o.format(e)}})},this.init(t)}return oP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},o=t.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=nh(t)}},{key:"format",value:function(e,t,o,n){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),o={};if(e.indexOf("(")>-1){var n=e.split("(");t=n[0].toLowerCase().trim();var r=n[1].substring(0,n[1].length-1);"currency"===t&&0>r.indexOf(":")?o.currency||(o.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?o.range||(o.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,n=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return oH(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?oH(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=n[0],i=n.slice(1).join(":").trim().replace(/^'+|'+$/g,"");o[r.trim()]||(o[r.trim()]=i),"false"===i&&(o[r.trim()]=!1),"true"===i&&(o[r.trim()]=!0),isNaN(i)||(o[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:o}}(t),c=i.formatName,a=i.formatOptions;if(r.formats[c]){var s=e;try{var l=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},d=l.locale||l.lng||n.locale||n.lng||o;s=r.formats[c](e,d,nF(nF(nF({},a),n),l))}catch(e){r.logger.warn(e)}return s}return r.logger.warn("there was no format function for ".concat(c)),e},e)}}]),e}();function ng(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function ny(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ng(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ng(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var nv=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(e,t,r){var i,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return oR(this,n),i=o.call(this),o5&&oY.call(oL(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=c,i.logger=oz.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=c.maxParallelReads||10,i.readingCalls=0,i.maxRetries=c.maxRetries>=0?c.maxRetries:5,i.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,c.backend,c),i}return oP(n,[{key:"queueLoad",value:function(e,t,o,n){var r=this,i={},c={},a={},s={};return e.forEach(function(e){var n=!0;t.forEach(function(t){var a="".concat(e,"|").concat(t);!o.reload&&r.store.hasResourceBundle(e,t)?r.state[a]=2:r.state[a]<0||(1===r.state[a]?void 0===c[a]&&(c[a]=!0):(r.state[a]=1,n=!1,void 0===c[a]&&(c[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))}),n||(a[e]=!0)}),(Object.keys(i).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(i),pending:Object.keys(c),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}},{key:"loaded",value:function(e,t,o){var n=e.split("|"),r=n[0],i=n[1];t&&this.emit("failedLoading",r,i,t),o&&this.store.addResourceBundle(r,i,o),this.state[e]=t?-1:2;var c={};this.queue.forEach(function(o){var n,a,s,l;n=o.loaded,(s=(a=oX(n,[r],Object)).obj)[l=a.k]=s[l]||[],s[l].push(i),void 0!==o.pending[e]&&(delete o.pending[e],o.pendingCount--),t&&o.errors.push(t),0!==o.pendingCount||o.done||(Object.keys(o.loaded).forEach(function(e){c[e]||(c[e]={});var t=o.loaded[e];t.length&&t.forEach(function(t){void 0===c[e][t]&&(c[e][t]=!0)})}),o.done=!0,o.errors.length?o.callback(o.errors):o.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,o){var n=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:c}):(this.readingCalls++,this.backend[o](e,t,function(a,s){if(n.readingCalls--,n.waitingReads.length>0){var l=n.waitingReads.shift();n.read(l.lng,l.ns,l.fcName,l.tried,l.wait,l.callback)}a&&s&&r<n.maxRetries?setTimeout(function(){n.read.call(n,e,t,o,r+1,2*i,c)},i):c(a,s)})):c(null,{})}},{key:"prepareLoading",value:function(e,t){var o=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){o.loadOne(e)})}},{key:"load",value:function(e,t,o){this.prepareLoading(e,t,{},o)}},{key:"reload",value:function(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}},{key:"loadOne",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,function(n,c){n&&t.logger.warn("".concat(o,"loading namespace ").concat(i," for language ").concat(r," failed"),n),!n&&c&&t.logger.log("".concat(o,"loaded namespace ").concat(i," for language ").concat(r),c),t.loaded(e,n,c)})}},{key:"saveMissing",value:function(e,t,o,n,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(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!!!"):null==o||""===o||(this.backend&&this.backend.create&&this.backend.create(e,t,o,n,null,ny(ny({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,o,n))}}]),n}(oY);function nE(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function nA(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function nw(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?nA(Object(o),!0).forEach(function(t){oq(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):nA(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function nk(){}var nC=function(e){oU(n,e);var t,o=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,o=oG(n);return e=t?Reflect.construct(o,arguments,oG(this).constructor):o.apply(this,arguments),oj(this,e)});function n(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(oR(this,n),t=o.call(this),o5&&oY.call(oL(t)),t.options=nE(r),t.services={},t.logger=oz,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=oL(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),i&&!t.isInitialized&&!r.isClone){if(!t.options.initImmediate)return t.init(r,i),oj(t,oL(t));setTimeout(function(){t.init(r,i)},0)}return t}return oP(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(o=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var n={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===oB(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===oB(e[2])||"object"===oB(e[3])){var o=e[3]||e[2];Object.keys(o).forEach(function(e){t[e]=o[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,o,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=nw(nw(nw({},n),this.options),nE(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nw(nw({},n.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?oz.init(r(this.modules.logger),this.options):oz.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=np);var i,c=new ni(this.options);this.store=new o9(this.options.resources,this.options);var a=this.services;a.logger=oz,a.resourceStore=this.store,a.languageUtils=c,a.pluralResolver=new nd(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(a.formatter=r(i),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new nu(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new nv(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new nn(this.services,this.options),this.translator.on("*",function(t){for(var o=arguments.length,n=Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];e.emit.apply(e,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,o||(o=nk),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[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(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var o;return(o=e.store)[t].apply(o,arguments),e}});var l=oK(),d=function(){var t=function(t,n){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(n),o(t,n)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,n=o,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var i=[],c=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?c(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return c(e)}),this.options.preload&&this.options.preload.forEach(function(e){return c(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),n(e)})}else n(null)}},{key:"reloadResources",value:function(e,t,o){var n=oK();return e||(e=this.languages),t||(t=this.options.ns),o||(o=nk),this.services.backendConnector.reload(e,t,function(e){n.resolve(),o(e)}),n}},{key:"use",value:function(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&&o7.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}},{key:"changeLanguage",value:function(e,t){var o=this;this.isLanguageChangingTo=e;var n=oK();this.emit("languageChanging",e);var r=function(e){o.language=e,o.languages=o.services.languageUtils.toResolveHierarchy(e),o.resolvedLanguage=void 0,o.setResolvedLanguage(e)},i=function(e,i){i?(r(i),o.translator.changeLanguage(i),o.isLanguageChangingTo=void 0,o.emit("languageChanged",i),o.logger.log("languageChanged",i)):o.isLanguageChangingTo=void 0,n.resolve(function(){return o.t.apply(o,arguments)}),t&&t(e,function(){return o.t.apply(o,arguments)})},c=function(t){e||t||!o.services.languageDetector||(t=[]);var n="string"==typeof t?t:o.services.languageUtils.getBestMatchFromCodes(t);n&&(o.language||r(n),o.translator.language||o.translator.changeLanguage(n),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(n)),o.loadResources(n,function(e){i(e,n)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(c):c(e):c(this.services.languageDetector.detect()),n}},{key:"getFixedT",value:function(e,t,o){var n=this,r=function e(t,r){if("object"!==oB(r)){for(var i,c=arguments.length,a=Array(c>2?c-2:0),s=2;s<c;s++)a[s-2]=arguments[s];i=n.options.overloadTranslationOptionHandler([t,r].concat(a))}else i=nw({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||o||e.keyPrefix;var l=n.options.keySeparator||".",d=i.keyPrefix?"".concat(i.keyPrefix).concat(l).concat(t):t;return n.t(d,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=o,r}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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;var n=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;var c=function(e,o){var n=t.services.backendConnector.state["".concat(e,"|").concat(o)];return -1===n||2===n};if(o.precheck){var a=o.precheck(this,c);if(void 0!==a)return a}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(n,e)&&(!r||c(i,e)))}},{key:"loadNamespaces",value:function(e,t){var o=this,n=oK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>o.options.ns.indexOf(e)&&o.options.ns.push(e)}),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var o=oK();"string"==typeof e&&(e=[e]);var n=this.options.preload||[],r=e.filter(function(e){return 0>n.indexOf(e)});return r.length?(this.options.preload=n.concat(r),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["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"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nk,r=nw(nw(nw({},this.options),t),{isClone:!0}),i=new n(r);return(void 0!==t.debug||void 0!==t.prefix)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(function(t){i[t]=e[t]}),i.services=nw({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new nn(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,o=Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];i.emit.apply(i,[e].concat(o))}),i.init(r,o),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(oY);oq(nC,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nC(e,t)});var nD=nC.createInstance();nD.createInstance=nC.createInstance,nD.createInstance,nD.init,nD.loadResources,nD.reloadResources,nD.use,nD.changeLanguage,nD.getFixedT,nD.t,nD.exists,nD.setDefaultNamespace,nD.hasLoadedNamespace,nD.loadNamespaces,nD.loadLanguages;let n_=nD;var nS=o(4867),nx=o.n(nS);o(3472);class nO{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 nT{constructor(e){e&&Object.assign(this,e)}matches(e){var t,o,n,r,i,c,a;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(o=this.types)?void 0:o.length)&&(!e.type||!this.types.includes(e.type))||(null==(n=this.realm)?void 0:n.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!=(c=e.path)?c:[];if(!this.paths.some(e=>{var o;return(null!=(o=e.path)?o:[]).every((e,o)=>t[o]===e)}))return!1}return(null==(a=this.names)||!a.length||!!this.names.every(t=>nT._evalValuePredicate(e.name,t)))&&(!this.attributes||nT._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!nT._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?nT._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var o;switch(t.predicateType){case"string":{let n;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(o=t.value)?void 0:o.toLowerCase();switch(t.match){case"BEGIN":n=r.startsWith(i);break;case"END":n=r.endsWith(i);break;case"CONTAINS":n=r.includes(i);break;default:n=r===i}return t.negate?!n:n}case"boolean":return e===t.value;case"number":{let o;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":o=e>t.value;break;case"GREATER_EQUALS":o=e>=t.value;break;case"LESS_THAN":o=e<t.value;break;case"LESS_EQUALS":o=e<=t.value;break;case"BETWEEN":o=e>=t.value&&e<=t.rangeValue;break;default:o=e===t.value}return t.negate?!o:o}}return!1}static _evalPredicate(e,t){var o,n;let r=null==(o=t.name)?void 0:o.value;if(!r)return!0;let i=null==(n=e.attributes)?void 0:n[r];if(!i)return!!t.negated;let c=!t.value||nT._evalValuePredicate(i.value,t.value);return t.negated?!c:c}static _evalGroup(e,t){var o,n,r;let i=null!=(o=t.operator)?o:"AND",c=[...(null!=(n=t.items)?n:[]).map(t=>nT._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>nT._evalGroup(e,t))];return!c.length||("OR"===i?c.some(Boolean):c.every(Boolean))}static _collectNames(e){var t,o;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(o=e.groups)?o:[]).flatMap(e=>nT._collectNames(e))]}}nT._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var nB=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};let nR=o(4461);class nN{constructor(e,t,o){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=o,window.OpenRemoteConsole=this;let n=new URLSearchParams(window.location.search),r=n.get("consoleName"),i=n.get("consoleVersion"),c=n.get("consolePlatform"),a=n.get("consoleProviders"),s=n.get("consoleAutoEnable"),l=a&&a.length>0?a.split(" "):["push"];this._pendingProviderEnables=l;let d=nN._createConsoleRegistration(),f=window.localStorage.getItem(this._storageKey);if(f)try{let e=JSON.parse(f);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},l)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let u=c7.getAppName();u.length>0&&0>d.apps.indexOf(u)&&d.apps.push(u),this._registration=d,r&&(d.name=r),i&&(d.version=i),c&&(d.platform=c),s&&(this._autoEnable="TRUE"===s||"true"===s)}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 nB(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 nB(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 nB(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 o={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},n=yield this.sendProviderMessage(o,!0);this._registration.providers[e].hasPermission=n.hasPermission,this._registration.providers[e].success=n.success,this._registration.providers[e].enabled=n.success,this._registration.providers[e].data=n.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())),n})}disableProvider(e){return nB(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 nB(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 o=e.provider+e.action;if(this._pendingProviderPromises[o])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let n=new nO,r=()=>{delete this._pendingProviderPromises[o],n.reject("No response from provider")};return this._pendingProviderPromises[o]=[n,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),n.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>nB(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 nB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield c7.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(o){if(e&&t&&nN._isStaleRegistrationResponse(o)){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 o}})}_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 nB(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 o={type:e,data:t};this.isMobile?this._postNativeShellMessage(o):console.warn("Failed to send generic message to console.",o)}_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 o=window.localStorage.getItem(t);if(null!==o)try{o=JSON.parse(o)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:o}))}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),o=t.provider,n=t.action,r=this._pendingProviderPromises[o+n];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[o+n],r[0].resolve(t));let i=this._providerMessageListeners[o+n];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:nR.name,version:nR.version,platform:nR.os.toString(),apps:[],model:((nR.manufacturer?nR.manufacturer+" ":"")+(nR.product?nR.product:"")).trim()}}_initialiseProvider(e){return nB(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 nI(e,t){return function(){return e.apply(t,arguments)}}let{toString:nP}=Object.prototype,{getPrototypeOf:nL}=Object,{iterator:nM,toStringTag:nU}=Symbol,nj=(({hasOwnProperty:e})=>(t,o)=>e.call(t,o))(Object.prototype),nG=(e,t)=>{let o=e,n=[];for(;null!=o&&o!==Object.prototype&&-1===n.indexOf(o);){if(n.push(o),nj(o,t))return!0;o=nL(o)}return!1},nq=(t=Object.create(null),e=>{let o=nP.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())}),nH=e=>(e=e.toLowerCase(),t=>nq(t)===e),n$=e=>t=>typeof t===e,{isArray:nV}=Array,nW=n$("undefined");function nz(e){return null!==e&&!nW(e)&&null!==e.constructor&&!nW(e.constructor)&&nJ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let nY=nH("ArrayBuffer"),nK=n$("string"),nJ=n$("function"),nX=n$("number"),nQ=e=>null!==e&&"object"==typeof e,nZ=e=>{if(!nQ(e))return!1;let t=nL(e);return(null===t||t===Object.prototype||null===nL(t))&&!nG(e,nU)&&!nG(e,nM)},n0=nH("Date"),n1=nH("File"),n2=nH("Blob"),n3=nH("FileList"),n5="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},n4=void 0!==n5.FormData?n5.FormData:void 0,n6=nH("URLSearchParams"),[n8,n9,n7,re]=["ReadableStream","Request","Response","Headers"].map(nH);function rt(e,t,{allOwnKeys:o=!1}={}){let n,r;if(null!=e)if("object"!=typeof e&&(e=[e]),nV(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{let r;if(nz(e))return;let i=o?Object.getOwnPropertyNames(e):Object.keys(e),c=i.length;for(n=0;n<c;n++)r=i[n],t.call(null,e[r],r,e)}}function ro(e,t){let o;if(nz(e))return null;t=t.toLowerCase();let n=Object.keys(e),r=n.length;for(;r-- >0;)if(t===(o=n[r]).toLowerCase())return o;return null}let rn="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rr=e=>!nW(e)&&e!==rn,ri=(r="u">typeof Uint8Array&&nL(Uint8Array),e=>r&&e instanceof r),rc=nH("HTMLFormElement"),{propertyIsEnumerable:ra}=Object.prototype,rs=nH("RegExp"),rl=(e,t)=>{let o=Object.getOwnPropertyDescriptors(e),n={};rt(o,(o,r)=>{let i;!1!==(i=t(o,r,e))&&(n[r]=i||o)}),Object.defineProperties(e,n)},rd=nH("AsyncFunction"),rf=(a="function"==typeof setImmediate,s=nJ(rn.postMessage),a?setImmediate:s?(l=`axios@${Math.random()}`,d=[],rn.addEventListener("message",({source:e,data:t})=>{e===rn&&t===l&&d.length&&d.shift()()},!1),e=>{d.push(e),rn.postMessage(l,"*")}):e=>setTimeout(e)),rm="u">typeof queueMicrotask?queueMicrotask.bind(rn):"u">typeof process&&process.nextTick||rf,ru=e=>null!=e&&nJ(e[nM]),rb={isArray:nV,isArrayBuffer:nY,isBuffer:nz,isFormData:e=>{if(!e)return!1;if(n4&&e instanceof n4)return!0;let t=nL(e);if(!t||t===Object.prototype||!nJ(e.append))return!1;let o=nq(e);return"formdata"===o||"object"===o&&nJ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&nY(e.buffer)},isString:nK,isNumber:nX,isBoolean:e=>!0===e||!1===e,isObject:nQ,isPlainObject:nZ,isEmptyObject:e=>{if(!nQ(e)||nz(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:n8,isRequest:n9,isResponse:n7,isHeaders:re,isUndefined:nW,isDate:n0,isFile:n1,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:n2,isRegExp:rs,isFunction:nJ,isStream:e=>nQ(e)&&nJ(e.pipe),isURLSearchParams:n6,isTypedArray:ri,isFileList:n3,forEach:rt,merge:function e(...t){let{caseless:o,skipUndefined:n}=rr(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let c=o&&"string"==typeof i&&ro(r,i)||i,a=nj(r,c)?r[c]:void 0;nZ(a)&&nZ(t)?r[c]=e(a,t):nZ(t)?r[c]=e({},t):nV(t)?r[c]=t.slice():n&&nW(t)||(r[c]=t)};for(let e=0,o=t.length;e<o;e++){let o=t[e];if(!o||nz(o)||(rt(o,i),"object"!=typeof o||nV(o)))continue;let n=Object.getOwnPropertySymbols(o);for(let e=0;e<n.length;e++){let t=n[e];ra.call(o,t)&&i(o[t],t)}}return r},extend:(e,t,o,{allOwnKeys:n}={})=>(rt(t,(t,n)=>{o&&nJ(t)?Object.defineProperty(e,n,{__proto__:null,value:nI(t,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),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,o,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),o&&Object.assign(e.prototype,o)},toFlatObject:(e,t,o,n)=>{let r,i,c,a={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)c=r[i],(!n||n(c,e,t))&&!a[c]&&(t[c]=e[c],a[c]=!0);e=!1!==o&&nL(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t},kindOf:nq,kindOfTest:nH,endsWith:(e,t,o)=>{e=String(e),(void 0===o||o>e.length)&&(o=e.length),o-=t.length;let n=e.indexOf(t,o);return -1!==n&&n===o},toArray:e=>{if(!e)return null;if(nV(e))return e;let t=e.length;if(!nX(t))return null;let o=Array(t);for(;t-- >0;)o[t]=e[t];return o},forEachEntry:(e,t)=>{let o,n=(e&&e[nM]).call(e);for(;(o=n.next())&&!o.done;){let n=o.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let o,n=[];for(;null!==(o=e.exec(t));)n.push(o);return n},isHTMLForm:rc,hasOwnProperty:nj,hasOwnProp:nj,hasOwnInPrototypeChain:nG,getSafeProp:(e,t)=>null!=e&&nG(e,t)?e[t]:void 0,reduceDescriptors:rl,freezeMethods:e=>{rl(e,(t,o)=>{if(nJ(e)&&["arguments","caller","callee"].includes(o))return!1;if(nJ(e[o])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},toObjectSet:(e,t)=>{let o={};return(nV(e)?e:String(e).split(t)).forEach(e=>{o[e]=!0}),o},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,o){return t.toUpperCase()+o}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ro,global:rn,isContextDefined:rr,isSpecCompliantForm:function(e){return!!(e&&nJ(e.append)&&"FormData"===e[nU]&&e[nM])},toJSONObject:e=>{let t=new WeakSet,o=e=>{if(nQ(e)){if(t.has(e))return;if(nz(e))return e;if(!("toJSON"in e)){t.add(e);let n=nV(e)?[]:{};return rt(e,(e,t)=>{let r=o(e);nW(r)||(n[t]=r)}),t.delete(e),n}}return e};return o(e)},isAsyncFn:rd,isThenable:e=>e&&(nQ(e)||nJ(e))&&nJ(e.then)&&nJ(e.catch),setImmediate:rf,asap:rm,isIterable:ru,isSafeIterable:e=>null!=e&&nG(e,nM)&&ru(e)},rF=rb.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"]),rh=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),rp=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rg(e,t){return rb.isArray(e)?e.map(e=>rg(e,t)):function(e){let t=0,o=e.length;for(;t<o;){let o=e.charCodeAt(t);if(9!==o&&32!==o)break;t+=1}for(;o>t;){let t=e.charCodeAt(o-1);if(9!==t&&32!==t)break;o-=1}return 0===t&&o===e.length?e:e.slice(t,o)}(String(e).replace(t,""))}function ry(e){let t=Object.create(null);return rb.forEach(e.toJSON(),(e,o)=>{t[o]=rg(e,rp)}),t}let rv=Symbol("internals");function rE(e){return e&&String(e).trim().toLowerCase()}function rA(e){return!1===e||null==e?e:rb.isArray(e)?e.map(rA):rg(String(e),rh)}function rw(e,t,o,n,r){if(rb.isFunction(n))return n.call(this,t,o);if(r&&(t=o),rb.isString(t)){if(rb.isString(n))return -1!==t.indexOf(n);if(rb.isRegExp(n))return n.test(t)}}class rk{constructor(e){e&&this.set(e)}set(e,t,o){let n=this;function r(e,t,o){let r=rE(t);if(!r)return;let i=rb.findKey(n,r);i&&void 0!==n[i]&&!0!==o&&(void 0!==o||!1===n[i])||(n[i||t]=rA(e))}let i=(e,t)=>rb.forEach(e,(e,o)=>r(e,o,t));if(rb.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(rb.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var c;let o,n,r,a;i((a={},(c=e)&&c.split("\n").forEach(function(e){r=e.indexOf(":"),o=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!o||a[o]&&rF[o]||("set-cookie"===o?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a),t)}else if(rb.isObject(e)&&rb.isSafeIterable(e)){let o=Object.create(null),n,r;for(let t of e){if(!rb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rb.hasOwnProp(o,r)?(n=o[r],o[r]=rb.isArray(n)?[...n,t[1]]:[n,t[1]]):o[r]=t[1]}i(o,t)}else null!=e&&r(t,e,o)}return this}get(e,t){if(e=rE(e)){let o=rb.findKey(this,e);if(o){let e=this[o];if(!t)return e;if(!0===t){let t,o=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)o[t[1]]=t[2];return o}if(rb.isFunction(t))return t.call(this,e,o);if(rb.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rE(e)){let o=rb.findKey(this,e);return!!(o&&void 0!==this[o]&&(!t||rw(this,this[o],o,t)))}return!1}delete(e,t){let o=this,n=!1;function r(e){if(e=rE(e)){let r=rb.findKey(o,e);r&&(!t||rw(o,o[r],r,t))&&(delete o[r],n=!0)}}return rb.isArray(e)?e.forEach(r):r(e),n}clear(e){let t=Object.keys(this),o=t.length,n=!1;for(;o--;){let r=t[o];(!e||rw(this,this[r],r,e,!0))&&(delete this[r],n=!0)}return n}normalize(e){let t=this,o={};return rb.forEach(this,(n,r)=>{let i=rb.findKey(o,r);if(i){t[i]=rA(n),delete t[r];return}let c=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,o)=>t.toUpperCase()+o):String(r).trim();c!==r&&delete t[r],t[c]=rA(n),o[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rb.forEach(this,(o,n)=>{null!=o&&!1!==o&&(t[n]=e&&rb.isArray(o)?o.join(", "):o)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let o=new this(e);return t.forEach(e=>o.set(e)),o}static accessor(e){let t=(this[rv]=this[rv]={accessors:{}}).accessors,o=this.prototype;function n(e){let n=rE(e);if(!t[n]){let r;r=rb.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(o,t+r,{__proto__:null,value:function(o,n,r){return this[t].call(this,e,o,n,r)},configurable:!0})}),t[n]=!0}}return rb.isArray(e)?e.forEach(n):n(e),this}}rk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rb.reduceDescriptors(rk.prototype,({value:e},t)=>{let o=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[o]=e}}}),rb.freezeMethods(rk);class rC extends Error{static from(e,t,o,n,r,i){let c=new rC(e.message,t||e.code,o,n,r);return Object.defineProperty(c,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),c.name=e.name,null!=e.status&&null==c.status&&(c.status=e.status),i&&Object.assign(c,i),c}constructor(e,t,o,n,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),o&&(this.config=o),n&&(this.request=n),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,o,n=this.config,r=n&&rb.hasOwnProp(n,"redact")?n.redact:void 0,i=rb.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(o=n=>{let r;if(null===n||"object"!=typeof n||rb.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof rk&&(n=n.toJSON()),t.push(n),rb.isArray(n))r=[],n.forEach((e,t)=>{let n=o(e);rb.isUndefined(n)||(r[t]=n)});else{if(!rb.isPlainObject(n)&&function(e){if(rb.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rb.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(r=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":o(i);rb.isUndefined(n)||(r[t]=n)}}return t.pop(),r}})(n)):rb.toJSONObject(n);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}}}rC.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rC.ERR_BAD_OPTION="ERR_BAD_OPTION",rC.ECONNABORTED="ECONNABORTED",rC.ETIMEDOUT="ETIMEDOUT",rC.ECONNREFUSED="ECONNREFUSED",rC.ERR_NETWORK="ERR_NETWORK",rC.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rC.ERR_DEPRECATED="ERR_DEPRECATED",rC.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rC.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rC.ERR_CANCELED="ERR_CANCELED",rC.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rC.ERR_INVALID_URL="ERR_INVALID_URL",rC.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rD=rC;function r_(e){return rb.isPlainObject(e)||rb.isArray(e)}function rS(e){return rb.endsWith(e,"[]")?e.slice(0,-2):e}function rx(e,t,o){return e?e.concat(t).map(function(e,t){return e=rS(e),!o&&t?"["+e+"]":e}).join(o?".":""):t}let rO=rb.toFlatObject(rb,{},null,function(e){return/^is[A-Z]/.test(e)}),rT=function(e,t,o){if(!rb.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(o=rb.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rb.isUndefined(t[e])})).metaTokens,r=o.visitor||u,i=o.dots,c=o.indexes,a=o.Blob||"u">typeof Blob&&Blob,s=void 0===o.maxDepth?100:o.maxDepth,l=a&&rb.isSpecCompliantForm(t),d=[];if(!rb.isFunction(r))throw TypeError("visitor must be a function");function f(e){if(null===e)return"";if(rb.isDate(e))return e.toISOString();if(rb.isBoolean(e))return e.toString();if(!l&&rb.isBlob(e))throw new rD("Blob is not supported. Use a Buffer instead.");if(rb.isArrayBuffer(e)||rb.isTypedArray(e)){if(l&&"function"==typeof a)return new a([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rD("Blob is not supported. Use a Buffer instead.",rD.ERR_NOT_SUPPORT)}return e}function m(e){if(e>s)throw new rD("Object is too deeply nested ("+e+" levels). Max depth: "+s,rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,o,r){let a=e;if(rb.isReactNative(t)&&rb.isReactNativeBlob(e))return t.append(rx(r,o,i),f(e)),!1;if(e&&!r&&"object"==typeof e)if(rb.endsWith(o,"{}"))o=n?o:o.slice(0,-2),e=function(e){if(1/0===s)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,o){if(!rb.isObject(o))return o;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(o),m(1+t.length-1),o})}(e);else{var l;if(rb.isArray(e)&&(l=e,rb.isArray(l)&&!l.some(r_))||(rb.isFileList(e)||rb.endsWith(o,"[]"))&&(a=rb.toArray(e)))return o=rS(o),a.forEach(function(e,n){rb.isUndefined(e)||null===e||t.append(!0===c?rx([o],n,i):null===c?o:o+"[]",f(e))}),!1}return!!r_(e)||(t.append(rx(r,o,i),f(e)),!1)}let b=Object.assign(rO,{defaultVisitor:u,convertValue:f,isVisitable:r_});if(!rb.isObject(e))throw TypeError("data must be an object");return!function e(o,n,i=0){if(!rb.isUndefined(o)){if(m(i),-1!==d.indexOf(o))throw Error("Circular reference detected in "+n.join("."));d.push(o),rb.forEach(o,function(o,c){!0===(!(rb.isUndefined(o)||null===o)&&r.call(t,o,rb.isString(c)?c.trim():c,n,b))&&e(o,n?n.concat(c):[c],i+1)}),d.pop()}}(e),t};function rB(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function rR(e,t){this._pairs=[],e&&rT(e,this,t)}let rN=rR.prototype;function rI(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rP(e,t,o){let n;if(!t)return e;e=e||"";let r=rb.isFunction(o)?{serialize:o}:o,i=rb.getSafeProp(r,"encode")||rI,c=rb.getSafeProp(r,"serialize");if(n=c?c(t,r):rb.isURLSearchParams(t)?t.toString():new rR(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}rN.append=function(e,t){this._pairs.push([e,t])},rN.toString=function(e){let t=e?t=>e.call(this,t,rB):rB;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let rL=class{constructor(){this.handlers=[]}use(e,t,o){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!o&&o.synchronous,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rb.forEach(this.handlers,function(t){null!==t&&e(t)})}},rM={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rj="u">typeof FormData?FormData:null,rG="u">typeof Blob?Blob:null,rq="u">typeof window&&"u">typeof document,rH="object"==typeof navigator&&navigator||void 0,r$=rq&&(!rH||0>["ReactNative","NativeScript","NS"].indexOf(rH.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rW=rq&&window.location.href||"http://localhost",rz={...tC,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rj,Blob:rG},protocols:["http","https","file","blob","url","data"]};function rY(e){if(e>100)throw new rD("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rD.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rK=function(e){if(rb.isFormData(e)&&rb.isFunction(e.entries)){let t={};return rb.forEachEntry(e,(e,o)=>{!function e(t,o,n,r){rY(r);let i=t[r++];if("__proto__"===i)return!0;let c=Number.isFinite(+i),a=r>=t.length;return(i=!i&&rb.isArray(n)?n.length:i,a)?rb.hasOwnProp(n,i)?n[i]=rb.isArray(n[i])?n[i].concat(o):[n[i],o]:n[i]=o:(rb.hasOwnProp(n,i)&&rb.isObject(n[i])||(n[i]=[]),e(t,o,n[i],r)&&rb.isArray(n[i])&&(n[i]=function(e){let t,o,n={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)n[o=r[t]]=e[o];return n}(n[i]))),!c}(function(e){let t,o=[],n=/\w+|\[(\w*)]/g;for(;null!==(t=n.exec(e));)rY(o.length),o.push("[]"===t[0]?"":t[1]||t[0]);return o}(e),o,t,0)}),t}return null},rJ=(e,t)=>null!=e&&rb.hasOwnProp(e,t)?e[t]:void 0,rX={transitional:rM,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let o,n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=rb.isObject(e);if(i&&rb.isHTMLForm(e)&&(e=new FormData(e)),rb.isFormData(e))return r?JSON.stringify(rK(e)):e;if(rb.isArrayBuffer(e)||rb.isBuffer(e)||rb.isStream(e)||rb.isFile(e)||rb.isBlob(e)||rb.isReadableStream(e))return e;if(rb.isArrayBufferView(e))return e.buffer;if(rb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rJ(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return rT(e,new rz.classes.URLSearchParams,{visitor:function(e,t,o,n){return rz.isNode&&rb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((o=rb.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=rJ(this,"env"),r=n&&n.FormData;return rT(o?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var c=e;if(rb.isString(c))try{return(0,JSON.parse)(c),rb.trim(c)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(c)}return e}],transformResponse:[function(e){let t=rJ(this,"transitional")||rX.transitional,o=t&&t.forcedJSONParsing,n=rJ(this,"responseType"),r="json"===n;if(rb.isResponse(e)||rb.isReadableStream(e))return e;if(e&&rb.isString(e)&&(o&&!n||r)){let o=t&&t.silentJSONParsing;try{return JSON.parse(e,rJ(this,"parseReviver"))}catch(e){if(!o&&r){if("SyntaxError"===e.name)throw rD.from(e,rD.ERR_BAD_RESPONSE,this,null,rJ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rz.classes.FormData,Blob:rz.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function rQ(e,t){let o=this||rX,n=t||o,r=rk.from(n.headers),i=n.data;return rb.forEach(e,function(e){i=e.call(o,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function rZ(e){return!!(e&&e.__CANCEL__)}rb.forEach(["delete","get","head","post","put","patch","query"],e=>{rX.headers[e]={}});let r0=class extends rD{constructor(e,t,o){super(null==e?"canceled":e,rD.ERR_CANCELED,t,o),this.name="CanceledError",this.__CANCEL__=!0}};function r1(e,t,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):t(new rD("Request failed with status code "+o.status,o.status>=400&&o.status<500?rD.ERR_BAD_REQUEST:rD.ERR_BAD_RESPONSE,o.config,o.request,o))}let r2=function(e,t){let o,n=Array(e=e||10),r=Array(e),i=0,c=0;return t=void 0!==t?t:1e3,function(a){let s=Date.now(),l=r[c];o||(o=s),n[i]=a,r[i]=s;let d=c,f=0;for(;d!==i;)f+=n[d++],d%=e;if((i=(i+1)%e)===c&&(c=(c+1)%e),s-o<t)return;let m=l&&s-l;return m?Math.round(1e3*f/m):void 0}},r3=function(e,t){let o,n,r=0,i=1e3/t,c=(t,i=Date.now())=>{r=i,o=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-r;a>=i?c(e,t):(o=e,n||(n=setTimeout(()=>{n=null,c(o)},i-a)))},()=>o&&c(o)]},r5=(e,t,o=3)=>{let n=0,r=r2(50,250);return r3(o=>{if(!o||"number"!=typeof o.loaded)return;let i=o.loaded,c=o.lengthComputable?o.total:void 0,a=null!=c?Math.min(i,c):i,s=Math.max(0,a-n),l=r(s);n=Math.max(n,a),e({loaded:a,total:c,progress:c?a/c:void 0,bytes:s,rate:l||void 0,estimated:l&&c?(c-a)/l:void 0,event:o,lengthComputable:null!=c,[t?"download":"upload"]:!0})},o)},r4=(e,t)=>{let o=null!=e;return[n=>t[0]({lengthComputable:o,total:e,loaded:n}),t[1]]},r6=e=>(...t)=>rb.asap(()=>e(...t)),r8=rz.hasStandardBrowserEnv?(i=new URL(rz.origin),c=rz.navigator&&/(msie|trident)/i.test(rz.navigator.userAgent),e=>(e=new URL(e,rz.origin),i.protocol===e.protocol&&i.host===e.host&&(c||i.port===e.port))):()=>!0,r9=rz.hasStandardBrowserEnv?{write(e,t,o,n,r,i,c){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];rb.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),rb.isString(n)&&a.push(`path=${n}`),rb.isString(r)&&a.push(`domain=${r}`),!0===i&&a.push("secure"),rb.isString(c)&&a.push(`SameSite=${c}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let o=0;o<t.length;o++){let n=t[o].replace(/^\s+/,""),r=n.indexOf("=");if(-1!==r&&n.slice(0,r)===e)try{return decodeURIComponent(n.slice(r+1))}catch(e){return n.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},r7=/^https?:(?!\/\/)/i,ie=/[\t\n\r]/g;function it(e,t){if("string"==typeof e&&r7.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ie,"")))throw new rD('Invalid URL: missing "//" after protocol',rD.ERR_INVALID_URL,t)}function io(e,t,o,n){it(t,n);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===o)?(it(e,n),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let ir=e=>e instanceof rk?{...e}:e;function ii(e,t){e=e||{},t=t||{};let o=Object.create(null);function n(e,t,o,n){return rb.isPlainObject(e)&&rb.isPlainObject(t)?rb.merge.call({caseless:n},e,t):rb.isPlainObject(t)?rb.merge({},t):rb.isArray(t)?t.slice():t}function r(e,t,o,r){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e,o,r):n(e,t,o,r)}function i(e,t){if(!rb.isUndefined(t))return n(void 0,t)}function c(e,t){return rb.isUndefined(t)?rb.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(o,r,i){return rb.hasOwnProp(t,i)?n(o,r):rb.hasOwnProp(e,i)?n(void 0,o):void 0}Object.defineProperty(o,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let s={url:i,method:i,data:i,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,allowedSocketPaths:c,responseEncoding:c,validateStatus:a,headers:(e,t,o)=>r(ir(e),ir(t),o,!0)};return rb.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=rb.hasOwnProp(s,n)?s[n]:r,c=i(rb.hasOwnProp(e,n)?e[n]:void 0,rb.hasOwnProp(t,n)?t[n]:void 0,n);rb.isUndefined(c)&&i!==a||(o[n]=c)}),rb.hasOwnProp(t,"validateStatus")&&rb.isUndefined(t.validateStatus)&&!1===function(o){let n=rb.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rb.isUndefined(n)){if(!rb.isPlainObject(n))return;else if(rb.hasOwnProp(n,o))return n[o]}let r=rb.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rb.isPlainObject(r)&&rb.hasOwnProp(r,o))return r[o]}("validateStatusUndefinedResolves")&&(rb.hasOwnProp(e,"validateStatus")?o.validateStatus=n(void 0,e.validateStatus):delete o.validateStatus),o}let ic=["content-type","content-length"],ia=function(e){let t=ii({},e),o=e=>rb.hasOwnProp(t,e)?t[e]:void 0,n=o("data"),r=o("withXSRFToken"),i=o("xsrfHeaderName"),c=o("xsrfCookieName"),a=o("headers"),s=o("auth"),l=o("baseURL"),d=o("allowAbsoluteUrls"),f=o("url");if(t.headers=a=rk.from(a),t.url=rP(io(l,f,d,t),o("params"),o("paramsSerializer")),s){let t=rb.getSafeProp(s,"username")||"",o=rb.getSafeProp(s,"password")||"";try{a.set("Authorization","Basic "+btoa(t+":"+(o?encodeURIComponent(o).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rD.from(t,rD.ERR_BAD_OPTION_VALUE,e)}}if(rb.isFormData(n))if(rz.hasStandardBrowserEnv||rz.hasStandardBrowserWebWorkerEnv||rb.isReactNative(n))a.setContentType(void 0);else{var m,u;rb.isFunction(n.getHeaders)&&(m=a,u=n.getHeaders(),"content-only"!==o("formDataHeaderPolicy")?m.set(u):Object.entries(u||{}).forEach(([e,t])=>{ic.includes(e.toLowerCase())&&m.set(e,t)}))}if(rz.hasStandardBrowserEnv&&(rb.isFunction(r)&&(r=r(t)),!0===r||null==r&&r8(t.url))){let e=i&&c&&r9.read(c);e&&a.set(i,e)}return t},is="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,o){var n;let r,i,c,a,s,l,d=ia(e),f=d.data,m=rk.from(d.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:F}=d;function h(){a&&a(),s&&s(),d.cancelToken&&d.cancelToken.unsubscribe(r),d.signal&&d.signal.removeEventListener("abort",r)}let p=new XMLHttpRequest;function g(){if(!p)return;let n=rk.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());r1(function(e){t(e),h()},function(e){o(e),h()},{data:u&&"text"!==u&&"json"!==u?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p}),p=null}p.open(d.method.toUpperCase(),d.url,!0),p.timeout=d.timeout,"onloadend"in p?p.onloadend=g:p.onreadystatechange=function(){!p||4!==p.readyState||(0!==p.status||p.responseURL&&p.responseURL.startsWith("file:"))&&setTimeout(g)},p.onabort=function(){p&&(o(new rD("Request aborted",rD.ECONNABORTED,e,p)),h(),p=null)},p.onerror=function(t){let n=new rD(t&&t.message?t.message:"Network Error",rD.ERR_NETWORK,e,p);n.event=t||null,o(n),h(),p=null},p.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",n=d.transitional||rM;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),o(new rD(t,n.clarifyTimeoutError?rD.ETIMEDOUT:rD.ECONNABORTED,e,p)),h(),p=null},void 0===f&&m.setContentType(null),"setRequestHeader"in p&&rb.forEach(ry(m),function(e,t){p.setRequestHeader(t,e)}),rb.isUndefined(d.withCredentials)||(p.withCredentials=!!d.withCredentials),u&&"json"!==u&&(p.responseType=d.responseType),F&&([c,s]=r5(F,!0),p.addEventListener("progress",c)),b&&p.upload&&([i,a]=r5(b),p.upload.addEventListener("progress",i),p.upload.addEventListener("loadend",a)),(d.cancelToken||d.signal)&&(r=t=>{p&&(o(!t||t.type?new r0(null,e,p):t),p.abort(),h(),p=null)},d.cancelToken&&d.cancelToken.subscribe(r),d.signal&&(d.signal.aborted?r():d.signal.addEventListener("abort",r)));let y=(n=d.url,(l=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&l[1]||"");if(y&&!rz.protocols.includes(y)){o(new rD("Unsupported protocol "+y+":",rD.ERR_BAD_REQUEST,e)),h();return}p.send(f||null)})},il=function*(e,t){let o,n=e.byteLength;if(!t||n<t)return void(yield e);let r=0;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},id=async function*(e,t){for await(let o of im(e))yield*il(o,t)},im=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:o}=await t.read();if(e)break;yield o}}finally{await t.cancel()}},iu=(e,t,o,n)=>{let r,i=id(e,t),c=0,a=e=>{!r&&(r=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let r=n.byteLength;if(o){let e=c+=r;o(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},ib=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,iF=(e,t,o)=>t+2<o&&ib(e.charCodeAt(t+1))&&ib(e.charCodeAt(t+2)),{isFunction:ih}=rb,ip=e=>{if(!rb.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ig=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},iy=e=>{let t,o=void 0!==rb.global&&null!==rb.global?rb.global:globalThis,{ReadableStream:n,TextEncoder:r}=o,{fetch:i,Request:c,Response:a}=e=rb.merge.call({skipUndefined:!0},{Request:o.Request,Response:o.Response},e),s=i?ih(i):"function"==typeof fetch,l=ih(c),d=ih(a);if(!s)return!1;let f=s&&ih(n),m=s&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new c(e).arrayBuffer())),u=l&&f&&ig(()=>{let e=!1,t=new c(rz.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),o=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!o}),b=d&&f&&ig(()=>rb.isReadableStream(new a("").body)),F={stream:b&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{F[e]||(F[e]=(t,o)=>{let n=t&&t[e];if(n)return n.call(t);throw new rD(`Response type '${e}' is not supported`,rD.ERR_NOT_SUPPORT,o)})});let h=async e=>{if(null==e)return 0;if(rb.isBlob(e))return e.size;if(rb.isSpecCompliantForm(e)){let t=new c(rz.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rb.isArrayBufferView(e)||rb.isArrayBuffer(e)?e.byteLength:(rb.isURLSearchParams(e)&&(e+=""),rb.isString(e))?(await m(e)).byteLength:void 0},p=async(e,t)=>{let o=rb.toFiniteNumber(e.getContentLength());return null==o?h(t):o};return async e=>{let t,{url:o,method:n,data:s,signal:d,cancelToken:m,timeout:g,onDownloadProgress:y,onUploadProgress:v,responseType:E,headers:A,withCredentials:w="same-origin",fetchOptions:k,maxContentLength:C,maxBodyLength:D}=ia(e),_=rb.isNumber(C)&&C>-1,S=rb.isNumber(D)&&D>-1,x=i||fetch;E=E?(E+"").toLowerCase():"text";let O=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let o=new AbortController,n=!1,r=function(e){if(!n){n=!0,c();let t=e instanceof Error?e:this.reason;o.abort(t instanceof rD?t:new r0(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rD(`timeout of ${t}ms exceeded`,rD.ETIMEDOUT))},t),c=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:a}=o;return a.unsubscribe=()=>rb.asap(c),a})([d,m&&m.toAbortSignal()],g),T=null,B=O&&O.unsubscribe&&(()=>{O.unsubscribe()}),R=null,N=()=>new rD("Request body larger than maxBodyLength limit",rD.ERR_BAD_REQUEST,e,T);try{var I;let i,d,m,g,P=(d="auth",rb.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=rb.getSafeProp(P,"username")||"",t=rb.getSafeProp(P,"password")||"";i={username:e,password:t}}if(m=(I=o).indexOf("://"),g=I,-1!==m&&(g=g.slice(m+3)),g.includes("@")||g.includes(":")){let e=new URL(o,rz.origin);if(!i&&(e.username||e.password)){let t=ip(e.username),o=ip(e.password);i={username:t,password:o}}(e.username||e.password)&&(e.username="",e.password="",o=e.href)}if(i){let e;A.delete("authorization"),A.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(_&&"string"==typeof o&&o.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let o=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(o)){let e=n.length,t=n.length;for(let o=0;o<t;o++)if(37===n.charCodeAt(o)&&o+2<t){let t=n.charCodeAt(o+1),r=n.charCodeAt(o+2);ib(t)&&ib(r)&&(e-=2,o+=2)}let o=0,r=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));r>=0&&(61===n.charCodeAt(r)?(o++,r--):i(r)&&(o++,r-=3)),1===o&&r>=0&&(61===n.charCodeAt(r)?o++:i(r)&&o++);let c=3*Math.floor(e/4)-(o||0);return c>0?c:0}let r=0;for(let e=0,t=n.length;e<t;e++){let o=n.charCodeAt(e);if(37===o&&iF(n,e,t))r+=1,e+=2;else if(o<128)r+=1;else if(o<2048)r+=2;else if(o>=55296&&o<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(o)>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);if(S&&"get"!==n&&"head"!==n){let e=await h(s);if("number"==typeof e&&isFinite(e)&&(t=e,e>D))throw N()}let L=S&&(rb.isReadableStream(s)||rb.isStream(s)),M=(e,t,o)=>iu(e,65536,e=>{if(S&&e>D)throw R=N();t&&t(e)},o);if(u&&"get"!==n&&"head"!==n&&(v||L)){if(t=null==t?await p(A,s):t,0!==t||L){let e,n=new c(o,{method:"POST",body:s,duplex:"half"});if(rb.isFormData(s)&&(e=n.headers.get("content-type"))&&A.setContentType(e),n.body){let[e,o]=v&&r4(t,r5(r6(v)))||[];s=M(n.body,e,o)}}}else if(L&&!l&&f&&"get"!==n&&"head"!==n)s=M(s);else if(L&&l&&!u&&"get"!==n&&"head"!==n)throw new rD("Stream request bodies are not supported by the current fetch implementation",rD.ERR_NOT_SUPPORT,e,T);rb.isString(w)||(w=w?"include":"omit");let U=l&&"credentials"in c.prototype;if(rb.isFormData(s)){let e=A.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&A.delete("content-type")}A.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:O,method:n.toUpperCase(),headers:ry(A.normalize()),body:s,duplex:"half",credentials:U?w:void 0};T=l&&new c(o,j);let G=await (l?x(T,k):x(o,j)),q=rk.from(G.headers);if(_){let t=rb.toFiniteNumber(q.getContentLength());if(null!=t&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}let H=b&&("stream"===E||"response"===E);if(b&&G.body&&(y||_||H&&B)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=G[e]});let o=rb.toFiniteNumber(q.getContentLength()),[n,r]=y&&r4(o,r5(r6(y),!0))||[];G=new a(iu(G.body,65536,t=>{if(_&&t>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T);n&&n(t)},()=>{r&&r(),B&&B()}),t)}E=E||"text";let V=await F[rb.findKey(F,E)||"text"](G,e);if(_&&!b&&!H){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>C)throw new rD("maxContentLength size of "+C+" exceeded",rD.ERR_BAD_RESPONSE,e,T)}return!H&&B&&B(),await new Promise((t,o)=>{r1(t,o,{data:V,headers:rk.from(G.headers),status:G.status,statusText:G.statusText,config:e,request:T})})}catch(t){if(B&&B(),O&&O.aborted&&O.reason instanceof rD){let o=O.reason;throw o.config=e,T&&(o.request=T),t!==o&&Object.defineProperty(o,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),o}if(R)throw T&&!R.request&&(R.request=T),R;if(t instanceof rD)throw T&&!t.request&&(t.request=T),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let o=new rD("Network Error",rD.ERR_NETWORK,e,T,t&&t.response);throw Object.defineProperty(o,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),o}throw rD.from(t,t&&t.code,e,T,t&&t.response)}}},iv=new Map,iE=e=>{let t=e&&e.env||{},{fetch:o,Request:n,Response:r}=t,i=[n,r,o],c=i.length,a,s,l=iv;for(;c--;)a=i[c],void 0===(s=l.get(a))&&l.set(a,s=c?new Map:iy(t)),l=s;return s};iE();let iA={http:null,xhr:is,fetch:{get:iE}};rb.forEach(iA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iw=e=>`- ${e}`,ik=e=>rb.isFunction(e)||null===e||!1===e,iC=function(e,t){let o,n,{length:r}=e=rb.isArray(e)?e:[e],i={};for(let c=0;c<r;c++){let r;if(n=o=e[c],!ik(o)&&void 0===(n=iA[(r=String(o)).toLowerCase()]))throw new rD(`Unknown adapter '${r}'`);if(n&&(rb.isFunction(n)||(n=n.get(t))))break;i[r||"#"+c]=n}if(!n){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 rD("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iw).join("\n"):" "+iw(e[0]):"as no adapter specified"),rD.ERR_NOT_SUPPORT)}return n};function iD(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r0(null,e)}function i_(e){return iD(e),e.headers=rk.from(e.headers),e.data=rQ.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iC(e.adapter||rX.adapter,e)(e).then(function(t){iD(e),e.response=t;try{t.data=rQ.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rk.from(t.headers),t},function(t){if(!rZ(t)&&(iD(e),t&&t.response)){e.response=t.response;try{t.response.data=rQ.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rk.from(t.response.headers)}return Promise.reject(t)})}let iS={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iS[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});let ix={};iS.transitional=function(e,t,o){function n(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(o,r,i)=>{if(!1===e)throw new rD(n(r," has been removed"+(t?" in "+t:"")),rD.ERR_DEPRECATED);return t&&!ix[r]&&(ix[r]=!0,console.warn(n(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(o,r,i)}},iS.spelling=function(e){return(t,o)=>(console.warn(`${o} is likely a misspelling of ${e}`),!0)};let iO=function(e,t,o){if("object"!=typeof e||null===e)throw new rD("options must be an object",rD.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),r=n.length;for(;r-- >0;){let i=n[r],c=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(c){let t=e[i],o=void 0===t||c(t,i,e);if(!0!==o)throw new rD("option "+i+" must be "+o,rD.ERR_BAD_OPTION_VALUE);continue}if(!0!==o)throw new rD("Unknown option "+i,rD.ERR_BAD_OPTION)}};class iT{constructor(e){this.defaults=e||{},this.interceptors={request:new rL,response:new rL}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let o=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{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 o,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:c}=t=ii(this.defaults,t);void 0!==r&&iO(r,{silentJSONParsing:iS.transitional(iS.boolean),forcedJSONParsing:iS.transitional(iS.boolean),clarifyTimeoutError:iS.transitional(iS.boolean),legacyInterceptorReqResOrdering:iS.transitional(iS.boolean),advertiseZstdAcceptEncoding:iS.transitional(iS.boolean),validateStatusUndefinedResolves:iS.transitional(iS.boolean)},!1),null!=i&&(rb.isFunction(i)?t.paramsSerializer={serialize:i}:iO(i,{encode:iS.function,serialize:iS.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),iO(t,{baseUrl:iS.spelling("baseURL"),withXsrfToken:iS.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=c&&rb.merge(c.common,c[t.method]);c&&rb.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete c[e]}),t.headers=rk.concat(a,c);let s=[],l=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;let o=t.transitional||rM;o&&o.legacyInterceptorReqResOrdering?s.unshift(e.fulfilled,e.rejected):s.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[i_.bind(this),void 0];for(e.unshift(...s),e.push(...d),n=e.length,o=Promise.resolve(t);f<n;)o=o.then(e[f++],e[f++]);return o}n=s.length;let m=t;for(;f<n;){let e=s[f++],t=s[f++];try{m=e(m)}catch(e){t.call(this,e);break}}try{o=i_.call(this,m)}catch(e){return Promise.reject(e)}for(f=0,n=d.length;f<n;)o=o.then(d[f++],d[f++]);return o}getUri(e){return rP(io((e=ii(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rb.forEach(["delete","get","head","options"],function(e){iT.prototype[e]=function(t,o){return this.request(ii(o||{},{method:e,url:t,data:o&&rb.hasOwnProp(o,"data")?o.data:void 0}))}}),rb.forEach(["post","put","patch","query"],function(e){function t(t){return function(o,n,r){return this.request(ii(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:o,data:n}))}}iT.prototype[e]=t(),"query"!==e&&(iT.prototype[e+"Form"]=t(!0))});let iB=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 o=this;this.promise.then(e=>{if(!o._listeners)return;let t=o._listeners.length;for(;t-- >0;)o._listeners[t](e);o._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{o.subscribe(e),t=e}).then(e);return n.cancel=function(){o.unsubscribe(t)},n},e(function(e,n,r){o.reason||(o.reason=new r0(e,n,r),t(o.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}}},iR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(iR).forEach(([e,t])=>{iR[t]=e});let iN=function e(t){let o=new iT(t),n=nI(iT.prototype.request,o);return rb.extend(n,iT.prototype,o,{allOwnKeys:!0}),rb.extend(n,o,null,{allOwnKeys:!0}),n.create=function(o){return e(ii(t,o))},n}(rX);iN.Axios=iT,iN.CanceledError=r0,iN.CancelToken=iB,iN.isCancel=rZ,iN.VERSION="1.18.1",iN.toFormData=rT,iN.AxiosError=rD,iN.Cancel=iN.CanceledError,iN.all=function(e){return Promise.all(e)},iN.spread=function(e){return function(t){return e.apply(null,t)}},iN.isAxiosError=function(e){return rb.isObject(e)&&!0===e.isAxiosError},iN.mergeConfig=ii,iN.AxiosHeaders=rk,iN.formToJSON=e=>rK(rb.isHTMLForm(e)?new FormData(e):e),iN.getAdapter=iC,iN.HttpStatusCode=iR,iN.default=iN;class iI{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i3`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i3`info`,options:e})}}class iP{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i3`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`dashboard/query`,data:e,options:t})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`dashboard/${e}/${t}`,options:o})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`dashboard/${e}/${t}`,options:o})}}class iL{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i3`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i3`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i3`realm/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`realm/${e}`,data:t,options:o})}}class iM{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i3`console/register`,data:e,options:t})}}class iU{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i3`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i3`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i3`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i3`service/global`,data:e,options:t})}deregisterService(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`service/${e}/${t}`,options:o})}getService(e,t,o){return this.httpClient.request({method:"GET",url:i3`service/${e}/${t}`,options:o})}heartbeat(e,t,o){return this.httpClient.request({method:"PUT",url:i3`service/${e}/${t}`,options:o})}}class ij{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}writePredictedDatapoints(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/predicted/${e}/${t}`,data:o,options:n})}}class iG{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i3`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i3`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i3`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i3`syslog/event`,queryParams:e,options:t})}}class iq{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i3`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i3`configuration/manager`,data:e,options:t})}fileUpload(e,t,o){return this.httpClient.request({method:"POST",url:i3`configuration/manager/file`,queryParams:t,data:e,options:o})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i3`configuration/manager/image/${e}`,options:t})}}class iH{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i3`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`asset/datapoint/${e}/${t}`,data:o,options:n})}}class i${constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/assetDiscovery/${e}`,queryParams:t,options:o})}doProtocolAssetImport(e,t,o,n){return this.httpClient.request({method:"POST",url:i3`agent/assetImport/${e}`,queryParams:o,data:t,options:n})}doProtocolInstanceDiscovery(e,t,o){return this.httpClient.request({method:"GET",url:i3`agent/instanceDiscovery/${e}`,queryParams:t,options:o})}}class iV{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i3`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i3`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i3`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i3`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i3`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i3`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i3`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/disconnect/${t}`,options:o})}requestPasswordReset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/request-password-reset/${t}`,options:o})}updatePassword(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/reset-password/${t}`,data:o,options:n})}resetSecret(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/reset-secret/${t}`,options:o})}updateRoles(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/roles`,data:t,options:o})}getUserRealmRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRealmRoles/${t}`,options:o})}updateUserRealmRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRealmRoles/${t}`,data:o,options:n})}getUserClientRoles(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`user/${e}/userRoles/${t}/${o}`,options:n})}updateUserClientRoles(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`user/${e}/userRoles/${t}/${o}`,data:n,options:r})}getUserSessions(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/userSessions/${t}`,options:o})}create(e,t,o){return this.httpClient.request({method:"POST",url:i3`user/${e}/users`,data:t,options:o})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`user/${e}/users`,data:t,options:o})}delete(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`user/${e}/users/${t}`,options:o})}getClientRoles(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}/roles`,options:o})}updateClientRoles(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`user/${e}/${t}/roles`,data:o,options:n})}get(e,t,o){return this.httpClient.request({method:"GET",url:i3`user/${e}/${t}`,options:o})}}class iW{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i3`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i3`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i3`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i3`map/getCustomMapInfo`,options:e})}getTile(e,t,o,n){return this.httpClient.request({method:"GET",url:i3`map/tile/${e}/${t}/${o}`,options:n})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i3`map/upload`,queryParams:e,options:t})}}class iz{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i3`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i3`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i3`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,o){return this.httpClient.request({method:"PUT",url:i3`provisioning/${e}`,data:t,options:o})}}class iY{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i3`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i3`flow/${e}`,options:t})}}class iK{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i3`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,o){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}`,options:o})}getActiveTunnelInfo(e,t,o,n,r){return this.httpClient.request({method:"GET",url:i3`gateway/tunnel/${e}/${t}/${o}/${n}`,options:r})}}class iJ{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i3`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/asset/for/${e}`,queryParams:t,options:o})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/asset/${e}`,data:t,options:o})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i3`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i3`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i3`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i3`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,o){return this.httpClient.request({method:"GET",url:i3`rules/realm/for/${e}`,queryParams:t,options:o})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/realm/${e}`,data:t,options:o})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i3`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i3`rules/${e}`,options:t})}updateGlobalRuleset(e,t,o){return this.httpClient.request({method:"PUT",url:i3`rules/${e}`,data:t,options:o})}}class iX{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i3`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i3`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i3`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i3`notification/${e}`,options:t})}notificationAcknowledged(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/acknowledged`,queryParams:o,data:t,options:n})}notificationDelivered(e,t,o){return this.httpClient.request({method:"PUT",url:i3`notification/${e}/delivered`,queryParams:t,options:o})}}class iQ{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,o){return this.httpClient.request({method:"GET",url:i3`model/assetInfo/${e}`,queryParams:t,options:o})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i3`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i3`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i3`model/valueDescriptors`,queryParams:e,options:t})}}class iZ{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i3`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i3`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i3`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i3`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i3`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i3`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i3`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i3`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i3`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i3`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,o){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}`,options:o})}deleteUserAssetLink(e,t,o,n){return this.httpClient.request({method:"DELETE",url:i3`asset/user/link/${e}/${t}/${o}`,options:n})}get(e,t){return this.httpClient.request({method:"GET",url:i3`asset/${e}`,options:t})}update(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}`,data:t,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,o,n){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}`,data:o,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,o,n,r){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/attribute/${t}/${o}`,data:n,options:r})}updateParent(e,t,o){return this.httpClient.request({method:"PUT",url:i3`asset/${e}/child`,queryParams:t,options:o})}}class i0{constructor(e){this.httpClient=e}createAlarm(e,t,o){return this.httpClient.request({method:"POST",url:i3`alarm`,queryParams:t,data:e,options:o})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i3`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i3`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i3`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i3`alarm/${e}`,options:t})}updateAlarm(e,t,o){return this.httpClient.request({method:"PUT",url:i3`alarm/${e}`,data:t,options:o})}getAssetLinks(e,t,o){return this.httpClient.request({method:"GET",url:i3`alarm/${e}/assets`,queryParams:t,options:o})}}class i1{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i3`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i3`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/connection/${e}`,options:t})}setConnection(e,t,o){return this.httpClient.request({method:"PUT",url:i3`gateway/connection/${e}`,data:t,options:o})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i3`gateway/status/${e}`,options:t})}}class i2{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i3`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i3`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i3`apps/info`,options:e})}}function i3(e,...t){let o="";for(let n=0;n<t.length;n++)o+=e[n],o+=encodeURIComponent(t[n]);return o+e[e.length-1]}class i5{constructor(e,t=iN.create()){this._statusResource=new i6(e,t),this._dashboardResource=new i8(e,t),this._realmResource=new i9(e,t),this._consoleResource=new i7(e,t),this._externalServiceResource=new ce(e,t),this._assetPredictedDatapointResource=new ct(e,t),this._syslogResource=new co(e,t),this._configurationResource=new cn(e,t),this._assetDatapointResource=new cr(e,t),this._agentResource=new ci(e,t),this._userResource=new cc(e,t),this._mapResource=new ca(e,t),this._provisioningResource=new cs(e,t),this._flowResource=new cl(e,t),this._gatewayServiceResource=new cd(e,t),this._rulesResource=new cf(e,t),this._notificationResource=new cm(e,t),this._assetModelResource=new cu(e,t),this._assetResource=new cb(e,t),this._alarmResource=new cF(e,t),this._gatewayClientResource=new ch(e,t),this._appResource=new cp(e,t),this._assetResource=new cb(e,t)}get StatusResource(){return this._statusResource}get DashboardResource(){return this._dashboardResource}get RealmResource(){return this._realmResource}get ConsoleResource(){return this._consoleResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get SyslogResource(){return this._syslogResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get AgentResource(){return this._agentResource}get UserResource(){return this._userResource}get MapResource(){return this._mapResource}get ProvisioningResource(){return this._provisioningResource}get FlowResource(){return this._flowResource}get GatewayServiceResource(){return this._gatewayServiceResource}get RulesResource(){return this._rulesResource}get NotificationResource(){return this._notificationResource}get AssetModelResource(){return this._assetModelResource}get AssetResource(){return this._assetResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}}class i4{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 o in t)t.hasOwnProperty(o)&&(e[o]=t[o])}(t,e.options);let o=e.copyFn;return this.axios.request(t).then(e=>(o&&e.data&&(e.originalData=e.data,e.data=o(e.data)),e))}}class i6 extends iI{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i8 extends iP{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i9 extends iL{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class i7 extends iM{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ce extends iU{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ct extends ij{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class co extends iG{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cn extends iq{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cr extends iH{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ci extends i${constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cc extends iV{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ca extends iW{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cs extends iz{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cl extends iY{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cd extends iK{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cf extends iJ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cm extends iX{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cu extends iQ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cb extends iZ{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cF extends i0{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class ch extends i1{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}class cp extends i2{constructor(e,t=iN.create()){t.defaults.baseURL=e,super(new i4(t))}}var cg=o(8183),cy=o.n(cg);iN.isAxiosError;let cv=new class{get api(){return this._client}constructor(){this._axiosInstance=iN.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cy().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 i5(e,this._axiosInstance)}};var cE=function(e,t,o,n){return new(o||(o=Promise))(function(r,i){function c(e){try{s(n.next(e))}catch(e){i(e)}}function a(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?r(e.value):((t=e.value)instanceof o?t:new o(function(e){e(t)})).then(c,a)}s((n=n.apply(e,t||[])).next())})};(ev=tA||(tA={})).DISCONNECTED="DISCONNECTED",ev.CONNECTED="CONNECTED",ev.CONNECTING="CONNECTING";let cA="SUBSCRIBED:",cw="UNAUTHORIZED:",ck="TRIGGERED:",cC="EVENT:";class cD{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tA.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 o=e.indexOf(t);o>=0&&e.splice(o,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===tA.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(tA.CONNECTING),this._connectingDeferred=new nO,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=c_.MIN_RECONNECT_DELAY,this._onStatusChanged(tA.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!==tA.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let o={eventSubscription:e,callback:t,deferred:new nO};return null!=this._pendingSubscription||this._status!==tA.CONNECTED?(this._queuedSubscriptions.push(o),o.deferred.promise):(this._pendingSubscription=o,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let o=t.deferred;t.deferred=null,o&&o.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return cE(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===tA.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tA.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+cD._subscriptionCounter++;if(!this._assetEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.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;n?n.find(e=>t===e)&&o(e):e.asset.realm===c7.displayRealm&&o(e)}),this._assetEventPromise.then(()=>{try{if(n&&t){let e={messageID:"read-assets:"+n.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:n}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{o({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,o){return cE(this,void 0,void 0,function*(){let n=e&&"string"!=typeof e[0],r=n?e.map(e=>e.id):e,i=n?e:void 0,c="AttributeEvent"+cD._subscriptionCounter++;if(!this._attributeEventPromise){let e;c7.authenticated||(e={filterType:"asset",realm:c7.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let a=t=>{let i=t.ref;n?e.forEach(e=>{i.id===e.id&&i.name===e.name&&o(t)}):r?r.find(e=>i.id===e)&&o(t):t.realm===c7.displayRealm&&o(t)};return this._attributeEventCallbackMap.set(c,a),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+c,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(c)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,o])=>{(!i||i.find(o=>o.id===e.id&&o.name===t))&&a({eventType:"attribute",timestamp:o.timestamp,value:o.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),c&&this.unsubscribe(c),t}return c})})}_processNextSubscription(){this._status===tA.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let o=e.deferred;e.deferred=null,o&&o.resolve(t)},t=>{let o=e.deferred;e.deferred=null,o&&o.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 o=this._subscriptionMap.get(e);o&&o.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===tA.CONNECTED&&this._onStatusChanged(tA.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tA.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<c_.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(c_.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}cD.MIN_RECONNECT_DELAY=0,cD.MAX_RECONNECT_DELAY=3e4,cD._subscriptionCounter=0;class c_ extends cD{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="+c7.config.realm;return this._connectDeferred=new nO,(c7.authenticated?c7.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(cA)){let e=JSON.parse(t.substring(cA.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&o.resolve(e.subscriptionId)}else if(t.startsWith(cw)){let e=JSON.parse(t.substring(cw.length)),o=this._subscribeDeferred;this._subscribeDeferred=null,o&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),o.reject("Unauthorized"))}else if(t.startsWith(ck)){let e=JSON.parse(t.substring(ck.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(cC)){let e=JSON.parse(t.substring(cC.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 nO,e.subscriptionId||(e.subscriptionId=c_._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=cC+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 nO;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(cC+JSON.stringify(e)),t.promise}}c_._subscriptionCounter=1;let cS=["__proto__","constructor","prototype"];function cx(e){return!("string"!=typeof e||0===e.length||e.length>128||cS.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function cO(e){return!(!cx(e)||e.indexOf("/")>-1)}let cT={lng:cO,ns:function(e){return cx(e)}};function cB(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function cR(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let cN=/\{\{(.+?)\}\}/g;function cI(e,t){let o=!1,n=e.replace(cN,(e,n)=>{let r=n.trim();if(cS.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let c=cT[r]||cO,a=String(i).split("+");for(let t of a)if(!c(t))return o=!0,e;return a.join("+")});return o?null:n}let cP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:cP&&"function"==typeof cP.fetch&&(e=cP.fetch);let cL=cR()&&cP?cP.XMLHttpRequest:void 0,cM="function"==typeof ActiveXObject&&cP?cP.ActiveXObject:void 0,cU=["__proto__","constructor","prototype"],cj=(e,t)=>{if(t&&"object"==typeof t){let o="";for(let e of Object.keys(t))cU.indexOf(e)>-1||(o+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!o)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+o.slice(1)}return e},cG=(t,o,n,r)=>{let i=e=>{if(!e.ok)return n(e.statusText||"Error",{status:e.status});e.text().then(t=>{n(null,{status:e.status,data:t})}).catch(n)};if(r){let e=r(t,o);if(e instanceof Promise)return void e.then(i).catch(n)}"function"==typeof fetch?fetch(t,o).then(i).catch(n):e(t,o).then(i).catch(n)},cq=(t,o,n,r)=>{if("function"==typeof n&&(r=n,n=void 0),r=r||(()=>{}),e&&0!==o.indexOf("file:")){var i=o,c=n,a=r;t.queryStringParams&&(i=cj(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})`),c&&(e["Content-Type"]="application/json");let s="function"==typeof t.requestOptions?t.requestOptions(c):t.requestOptions,l={method:c?"POST":"GET",body:c?t.stringify(c):void 0,headers:e,...t._omitFetchOptions?{}:s},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{cG(i,l,a,d)}catch(e){if(!s||0===Object.keys(s).length||!e.message||0>e.message.indexOf("not implemented"))return a(e);try{Object.keys(s).forEach(e=>{delete l[e]}),cG(i,l,a,d),t._omitFetchOptions=!0}catch(e){a(e)}}return}if(cR()||"function"==typeof ActiveXObject){var s=o,l=n,d=r;l&&"object"==typeof l&&(l=cj("",l).slice(1)),t.queryStringParams&&(s=cj(s,t.queryStringParams));try{let e=cL?new cL:new cM("MSXML2.XMLHTTP.3.0");e.open(l?"POST":"GET",s,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,l&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let o=t.customHeaders;if(o="function"==typeof o?o():o)for(let t of Object.keys(o))cU.indexOf(t)>-1||e.setRequestHeader(t,o[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(l)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var cH=class{constructor(e,t={},o={}){this.services=e,this.options=t,this.allOptions=o,this.type="backend",this.init(e,t,o)}init(e,t={},o={}){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,o)=>({[t]:o||""}),parseLoadPayload:(e,t)=>void 0,request:cq,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=o,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,o){this._readAny(e,e,t,t,o)}read(e,t,o){this._readAny([e],e,[t],t,o)}_readAny(e,t,o,n,r){var i,c;let a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(e,o)),(a=(c=i=a)&&"function"==typeof c.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let c=cI(i,{lng:e.join("+"),ns:o.join("+")});if(null==c)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(cB).join(", ")+"] namespaces=["+o.map(cB).join(", ")+"]"),!1);this.loadUrl(c,r,t,n)})}loadUrl(e,t,o,n){let r=this.options.parseLoadPayload("string"==typeof o?[o]:o,"string"==typeof n?[n]:n),i=cB(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 c,a;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 o=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>o.indexOf(e)>-1))return t("failed loading "+i+": "+cB(e.message),!0)}if(e)return t(e,!1);try{c="string"==typeof r.data?this.options.parse(r.data,o,n):r.data}catch(e){a="failed parsing "+i+" to json"}if(a)return t(a,!1);t(null,c)})}create(e,t,o,n,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,o,n),c=0,a=[],s=[];e.forEach(o=>{let n=this.options.addPath;"function"==typeof this.options.addPath&&(n=this.options.addPath(o,t));let l=cI(n,{lng:o,ns:t});if(null==l){c+=1,r&&c===e.length&&r(a,s);return}this.options.request(this.options,l,i,(t,o)=>{c+=1,a.push(t),s.push(o),c===e.length&&"function"==typeof r&&r(a,s)})})}reload(){let{backendConnector:e,languageUtils:t,logger:o}=this.services,n=e.language;if(n&&"cimode"===n.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(n),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(n=>{e.read(t,n,"read",null,null,(r,i)=>{r&&o.warn(`loading namespace ${n} for language ${t} failed`,r),!r&&i&&o.log(`loaded namespace ${n} for language ${t}`,i),e.loaded(`${t}|${n}`,r,i)})})})}};cH.type="backend";let c$=e=>(...t)=>({_$litDirective$:e,values:t});class cV{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class cW extends cV{constructor(e){if(super(e),this.it=oi,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===oi||null==e)return this._t=void 0,this.it=e;if(e===or)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:[]}}}cW.directiveName="unsafeHTML",cW.resultType=1,c$(cW);class cz extends cW{}cz.directiveName="unsafeSVG",cz.resultType=2;let cY=c$(cz),cK={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 cJ=function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c};class cX extends CustomEvent{constructor(){super(cX.NAME,{bubbles:!0,composed:!0})}}cX.NAME="or-iconset-added";let cQ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new cX)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return on``;let t=(e||"").split(":"),o=t.pop(),n=t.pop(),r=this._defaultIconSet;return(n&&(r=this.getIconSet(n)),o&&r)?r.getIconTemplate(o):on``}},cZ=class extends ow{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tB`
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.31.0",
3
+ "version": "1.31.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.31.0",
31
- "@openremote/model": "1.31.0",
32
- "@openremote/or-element": "1.31.0",
33
- "@openremote/or-icon": "1.31.0",
34
- "@openremote/or-translate": "1.31.0",
30
+ "@openremote/core": "1.31.1",
31
+ "@openremote/model": "1.31.1",
32
+ "@openremote/or-element": "1.31.1",
33
+ "@openremote/or-icon": "1.31.1",
34
+ "@openremote/or-translate": "1.31.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.31.0",
41
+ "@openremote/util": "1.31.1",
42
42
  "@types/lodash.debounce": "^4"
43
43
  },
44
44
  "publishConfig": {