@openremote/or-gauge 1.29.0-snapshot.20260810073600 → 1.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
font-weight: 600;
|
|
8
8
|
line-height: 125.303%;
|
|
9
9
|
}
|
|
10
|
-
`;class nM extends nv{static finalizeStyles(e){return[nw,...super.finalizeStyles(e)]}}let nD=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nE={attribute:!0,type:String,converter:tz,reflect:!1,hasChanged:tG};function nL(e){return(t,n)=>{let o;return"object"==typeof n?((e=nE,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}function nA(e){return nL({...e,state:!0,attribute:!1})}let nT=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nS(e,t){return(n,o,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof o?n:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return nT(n,o,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&a.call(this,e),e}})}return nT(n,o,{get(){return i(this)}})}}(m=ew||(ew={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(f=eM||(eM={})).LOW="LOW",f.MEDIUM="MEDIUM",f.HIGH="HIGH",(u=eD||(eD={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eE||(eE={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(h=eL||(eL={})).BOTTOM_LEFT="BOTTOM_LEFT",h.BOTTOM_RIGHT="BOTTOM_RIGHT",h.TOP_LEFT="TOP_LEFT",h.TOP_RIGHT="TOP_RIGHT",(p=eA||(eA={})).CREATE="CREATE",p.READ="READ",p.UPDATE="UPDATE",p.DELETE="DELETE",(F=eT||(eT={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(_=eS||(eS={})).DISCONNECTED="DISCONNECTED",_.CONNECTING="CONNECTING",_.DISCONNECTING="DISCONNECTING",_.CONNECTED="CONNECTED",_.DISABLED="DISABLED",_.WAITING="WAITING",_.ERROR="ERROR",_.STOPPED="STOPPED",(g=eC||(eC={})).REQUEST_START="REQUEST_START",g.REQUEST_REPEATING="REQUEST_REPEATING",g.REQUEST_CANCEL="REQUEST_CANCEL",g.READY="READY",g.COMPLETED="COMPLETED",g.RUNNING="RUNNING",g.CANCELLED="CANCELLED",(y=eY||(eY={})).TOGGLE="TOGGLE",y.INCREMENT="INCREMENT",y.DECREMENT="DECREMENT",y.NEGATE="NEGATE",(v=ex||(ex={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",v.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",v.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",v.INVALID_VALUE="INVALID_VALUE",v.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",v.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",v.CANNOT_PROCESS="CANNOT_PROCESS",v.QUEUE_FULL="QUEUE_FULL",v.UNKNOWN="UNKNOWN",v.ASSET_ID_MISSING="ASSET_ID_MISSING",v.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(k=eO||(eO={})).PUBLIC="PUBLIC",k.SHARED="SHARED",k.PRIVATE="PRIVATE",(w=eB||(eB={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(M=eR||(eR={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",M.KEEP_LAYOUT="KEEP_LAYOUT",M.REDIRECT="REDIRECT",M.BLOCK_DEVICE="BLOCK_DEVICE",(D=eP||(eP={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(E=ej||(ej={})).MINUTE="MINUTE",E.HOUR="HOUR",E.DAY="DAY",E.WEEK="WEEK",E.MONTH="MONTH",E.YEAR="YEAR",(L=eN||(eN={})).MIN="MIN",L.AVG="AVG",L.MAX="MAX",L.DIFFERENCE="DIFFERENCE",L.COUNT="COUNT",L.SUM="SUM",L.MODE="MODE",L.MEDIAN="MEDIAN",(A=eI||(eI={})).TERMINATING="TERMINATING",A.DISABLED="DISABLED",A.ALREADY_CONNECTED="ALREADY_CONNECTED",A.UNRECOGNISED="UNRECOGNISED",A.PERMANENT_ERROR="PERMANENT_ERROR",A.SYNC_ERROR="SYNC_ERROR",(T=eH||(eH={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eU||(eU={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(C=eW||(eW={})).KEYCLOAK="KEYCLOAK",C.NONE="NONE",(Y=ez||(ez={})).WEBSOCKET="WEBSOCKET",Y.POLLING="POLLING",(x=eG||(eG={})).INTERNAL="INTERNAL",x.CLIENT="CLIENT",x.GLOBAL_RULESET="GLOBAL_RULESET",x.REALM_RULESET="REALM_RULESET",x.ASSET_RULESET="ASSET_RULESET",(O=eq||(eq={})).REALM="REALM",O.USER="USER",O.ASSET="ASSET",O.CUSTOM="CUSTOM",(B=e$||(e$={})).NORMAL="NORMAL",B.HIGH="HIGH",(R=eV||(eV={})).DEVICE="DEVICE",R.TOPIC="TOPIC",R.CONDITION="CONDITION",(P=eJ||(eJ={})).ALWAYS="ALWAYS",P.ONCE="ONCE",P.HOURLY="HOURLY",P.DAILY="DAILY",P.WEEKLY="WEEKLY",P.MONTHLY="MONTHLY",P.ANNUALLY="ANNUALLY",(j=eK||(eK={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(N=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",N.CERTIFICATE_INVALID="CERTIFICATE_INVALID",N.UNAUTHORIZED="UNAUTHORIZED",N.FORBIDDEN="FORBIDDEN",N.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",N.CONFIG_DISABLED="CONFIG_DISABLED",N.USER_DISABLED="USER_DISABLED",N.SERVER_ERROR="SERVER_ERROR",N.ASSET_ERROR="ASSET_ERROR",N.SERVER_BUSY="SERVER_BUSY",(I=eQ||(eQ={})).PRIVATE="PRIVATE",I.PROTECTED="PROTECTED",I.PUBLIC="PUBLIC",(H=eZ||(eZ={})).EXACT="EXACT",H.BEGIN="BEGIN",H.END="END",H.CONTAINS="CONTAINS",(U=e0||(e0={})).EQUALS="EQUALS",U.GREATER_THAN="GREATER_THAN",U.GREATER_EQUALS="GREATER_EQUALS",U.LESS_THAN="LESS_THAN",U.LESS_EQUALS="LESS_EQUALS",U.BETWEEN="BETWEEN",(W=e1||(e1={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(z=e2||(e2={})).RESTRICTED="RESTRICTED",z.LINKED="LINKED",z.REALM="REALM",(G=e4||(e4={})).AT_LEAST_ONE="AT_LEAST_ONE",G.ALL="ALL",G.NONE="NONE",(q=e3||(e3={})).AND="AND",q.OR="OR",(V=e6||(e6={})).CREATED_ON="CREATED_ON",V.FIRST_NAME="FIRST_NAME",V.LAST_NAME="LAST_NAME",V.USERNAME="USERNAME",V.EMAIL="EMAIL",(J=e5||(e5={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(K=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",K.GROOVY="GROOVY",K.JSON="JSON",K.FLOW="FLOW",(X=e7||(e7={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e9||(e9={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=tn||(tn={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(en=to||(to={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(eo=tr||(tr={})).ADD="ADD",eo.ADD_OR_REPLACE="ADD_OR_REPLACE",eo.REPLACE="REPLACE",eo.DELETE="DELETE",eo.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=ta||(ta={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.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.READ="read",ei.WRITE="write",(ea=ts||(ts={})).REGISTER="REGISTER",ea.UPDATE="UPDATE",ea.DEREGISTER="DEREGISTER",(es=tc||(tc={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(ec=td||(td={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(ed=tl||(tl={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(el=tm||(tm={})).NUMERIC="numeric",el.DIGIT_2="2-digit",el.FULL="full",el.LONG="long",el.MEDIUM="medium",el.SHORT="short",el.NARROW="narrow",(em=tf||(tf={})).SECONDLY="SECONDLY",em.MINUTELY="MINUTELY",em.HOURLY="HOURLY",em.DAILY="DAILY",em.WEEKLY="WEEKLY",em.MONTHLY="MONTHLY",em.YEARLY="YEARLY",(ef=tu||(tu={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.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=th||(th={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eh=tp||(tp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eh.MAILAGENT="MailAgent",eh.UDPAGENT="UDPAgent",eh.ROOMASSET="RoomAsset",eh.CITYASSET="CityAsset",eh.VENTILATIONASSET="VentilationAsset",eh.TRADFRILIGHTASSET="TradfriLightAsset",eh.CONSOLEASSET="ConsoleAsset",eh.PRESENCESENSORASSET="PresenceSensorAsset",eh.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eh.LIGHTASSET="LightAsset",eh.KNXAGENT="KNXAgent",eh.THETHINGSSTACKAGENT="TheThingsStackAgent",eh.PLUGASSET="PlugAsset",eh.CHIRPSTACKAGENT="ChirpStackAgent",eh.WEATHERASSET="WeatherAsset",eh.THINGASSET="ThingAsset",eh.WEBSOCKETAGENT="WebsocketAgent",eh.TCPAGENT="TCPAgent",eh.GATEWAYASSET="GatewayAsset",eh.SERIALAGENT="SerialAgent",eh.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eh.PARKINGASSET="ParkingAsset",eh.TRADFRIPLUGASSET="TradfriPlugAsset",eh.SIMULATORAGENT="SimulatorAgent",eh.SNMPAGENT="SNMPAgent",eh.GROUPASSET="GroupAsset",eh.BUILDINGASSET="BuildingAsset",eh.MODBUSSERIALAGENT="ModbusSerialAgent",eh.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eh.MQTTAGENT="MQTTAgent",eh.VELBUSTCPAGENT="VelbusTCPAgent",eh.ARTNETLIGHTASSET="ArtnetLightAsset",eh.VELBUSSERIALAGENT="VelbusSerialAgent",eh.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eh.MICROPHONEASSET="MicrophoneAsset",eh.MODBUSTCPAGENT="ModbusTcpAgent",eh.ZWAVEAGENT="ZWaveAgent",eh.HTTPAGENT="HTTPAgent",eh.DOORASSET="DoorAsset",eh.THERMOSTATASSET="ThermostatAsset",eh.SHIPASSET="ShipAsset",(ep=tF||(tF={})).COLOURRGB="colourRGB",ep.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",ep.PRICEHOURLY="priceHourly",ep.MQTTPORT="MQTTPort",ep.PINGDISABLED="pingDisabled",ep.FLOW="flow",ep.CHILDASSETTYPE="childAssetType",ep.LASTACCESS="lastAccess",ep.POSITION="position",ep.NETWORKKEY="networkKey",ep.UNIVERSE="universe",ep.ROUTINGMODE="routingMode",ep.MSSINUMBER="MSSINumber",ep.LASTWILLRETAIN="lastWillRetain",ep.LASTWILLTOPIC="lastWillTopic",ep.SERIALBAUDRATE="serialBaudrate",ep.SUBSCRIBEQOS="subscribeQos",ep.LEDCOUNT="lEDCount",ep.LOCKED="locked",ep.CLOUDCOVERAGE="cloudCoverage",ep.BASEURL="baseURL",ep.PROTOCOL="protocol",ep.REQUIREDVALUES="requiredValues",ep.REGION="region",ep.CONSOLEPLATFORM="consolePlatform",ep.GATEWAYSTATUS="gatewayStatus",ep.NO2LEVEL="NO2Level",ep.ATMOSPHERICPRESSURE="atmosphericPressure",ep.SERIALPORT="serialPort",ep.APPLICATIONID="applicationId",ep.TAGS="tags",ep.UNLOCK="unlock",ep.CHECKINTERVALSECONDS="checkIntervalSeconds",ep.LOCATION="location",ep.CLIENTSECRET="clientSecret",ep.WINDDIRECTION="windDirection",ep.WINDSPEED="windSpeed",ep.PARTICLESPM10="particlesPM10",ep.APPLICATIONKEY="applicationKey",ep.LENGTH="length",ep.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",ep.USERNAMEPASSWORD="usernamePassword",ep.WATERLEVEL="waterLevel",ep.CONNECTHEADERS="connectHeaders",ep.CONSOLENAME="consoleName",ep.WEBSOCKETQUERY="websocketQuery",ep.PREFERHTML="preferHTML",ep.PARITY="parity",ep.COOLING="cooling",ep.POLLINGMILLIS="pollingMillis",ep.SOILTEMPERATURE="soilTemperature",ep.SUNIRRADIANCE="sunIrradiance",ep.MESSAGEMAXLENGTH="messageMaxLength",ep.WINDGUSTSPEED="windGustSpeed",ep.LIGHTID="lightId",ep.PROXYADDRESS="proxyAddress",ep.REQUESTQUERYPARAMETERS="requestQueryParameters",ep.MQTTHOST="MQTTHost",ep.SECUREGRPC="secureGRPC",ep.MODEL="model",ep.STREET="street",ep.MANUFACTURER="manufacturer",ep.DELETEPROCESSEDMAIL="deleteProcessedMail",ep.RESUMESESSION="resumeSession",ep.ONOFF="onOff",ep.APIKEY="ApiKey",ep.CITY="city",ep.PRESENCE="presence",ep.SPACESOCCUPIED="spacesOccupied",ep.STARTTLS="startTLS",ep.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",ep.WEBSOCKETPATH="websocketPath",ep.AGENTSTATUS="agentStatus",ep.PRICEDAILY="priceDaily",ep.COUNTGROWTHMINUTE="countGrowthMinute",ep.IMONUMBER="IMONumber",ep.ATTRIBUTION="Attribution",ep.TENANTID="tenantId",ep.REQUESTHEADERS="requestHeaders",ep.HOST="host",ep.COUNTOUTMINUTE="countOutMinute",ep.MESSAGECHARSET="messageCharset",ep.CERTIFICATEALIAS="certificateAlias",ep.EMAIL="email",ep.BINDPORT="bindPort",ep.CONSOLEVERSION="consoleVersion",ep.PARTICLESPM1="particlesPM1",ep.MTU="mtu",ep.SPEED="speed",ep.MESSAGESTRIPDELIMITER="messageStripDelimiter",ep.AREA="area",ep.COUNTRY="country",ep.SHIPTYPE="shipType",ep.CONNECTSUBSCRIPTIONS="connectSubscriptions",ep.RELATIVEHUMIDITY="relativeHumidity",ep.SOURCEADDRESS="sourceAddress",ep.RAINFALL="rainfall",ep.OAUTHGRANT="oAuthGrant",ep.OZONELEVEL="ozoneLevel",ep.SEQUENCENUMBER="sequenceNumber",ep.COUNTINMINUTE="countInMinute",ep.PORT="port",ep.SUNALTITUDE="sunAltitude",ep.COUNTOUT="countOut",ep.ROOMNUMBER="roomNumber",ep.TUNNELINGSUPPORTED="tunnelingSupported",ep.ENINUMBER="ENINumber",ep.PARTICLESPM2_5="particlesPM2_5",ep.AGENTDISABLED="agentDisabled",ep.DISABLED="disabled",ep.COUNTIN="countIn",ep.MESSAGESOURCEADDRESS="messageSourceAddress",ep.PROVISIONWEATHERASSET="ProvisionWeatherAsset",ep.TIMEINJECTIONINTERVAL="timeInjectionInterval",ep.TEMPERATURESETPOINT="temperatureSetpoint",ep.CONSOLEPROVIDERS="consoleProviders",ep.COUNTTOTAL="countTotal",ep.SPACESBUFFER="spacesBuffer",ep.DEVICECONFIG="deviceConfig",ep.SPACESTOTAL="spacesTotal",ep.BINDHOST="bindHost",ep.FANSPEED="fanSpeed",ep.MESSAGECONVERTBINARY="messageConvertBinary",ep.NOTES="notes",ep.MAILFOLDERNAME="mailFolderName",ep.MESSAGEDELIMITERS="messageDelimiters",ep.TEMPERATURE="temperature",ep.SUNZENITH="sunZenith",ep.SNMPVERSIONVALUE="SNMPVersionValue",ep.BRIGHTNESS="brightness",ep.POSTALCODE="postalCode",ep.SPACESOPEN="spacesOpen",ep.HUMIDITY="humidity",ep.SOUNDLEVEL="soundLevel",ep.SECUREMODE="secureMode",ep.DIRECTION="direction",ep.STOPBITS="stopbits",ep.UVINDEX="uVIndex",ep.CONNECTURL="connectURL",ep.CLIENTID="clientId",ep.NATMODE="NATMode",ep.UPDATEONWRITE="updateOnWrite",ep.LASTWILLPAYLOAD="lastWillPayload",ep.GROUPID="groupId",ep.FOLLOWREDIRECTS="followRedirects",ep.SUNAZIMUTH="sunAzimuth",ep.MESSAGECONVERTHEX="messageConvertHex",ep.WEBSOCKETMODE="websocketMode",ep.COLOURTEMPERATURE="colourTemperature",ep.PUBLISHQOS="publishQos",ep.DATABITS="dataBits",(eF=t_||(t_={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(e_=tg||(tg={})).ASSETQUERY="assetQuery",e_.WSURL="WS_URL",e_.COLOURRGB="colourRGB",e_.VALUEFORMAT="valueFormat",e_.TEXT="text",e_.BYTE="byte",e_.USERNAMEANDPASSWORD="usernameAndPassword",e_.HTTPURL="HTTP_URL",e_.ATTRIBUTELINK="attributeLink",e_.ASSETID="assetID",e_.NUMBERMAP="numberMap",e_.HTTPMETHOD="HTTPMethod",e_.ATTRIBUTESTATE="attributeState",e_.POSITIVENUMBER="positiveNumber",e_.POSITIVEINTEGER="positiveInteger",e_.EXECUTIONSTATUS="executionStatus",e_.BIGINTEGER="bigInteger",e_.VALUEDESCRIPTOR="valueDescriptor",e_.PERIODDURATIONISO8601="periodDurationISO8601",e_.LONG="long",e_.DATEANDTIME="dateAndTime",e_.BOOLEANMAP="booleanMap",e_.MQTTQOS="MQTTQos",e_.NEGATIVEINTEGER="negativeInteger",e_.TCPIPPORTNUMBER="TCP_IPPortNumber",e_.GEOJSONPOINT="GEO_JSONPoint",e_.SNMPVERSION="SNMPVersion",e_.ASSETTYPE="assetType",e_.JSONOBJECT="JSONObject",e_.INTEGERMAP="integerMap",e_.BIGNUMBER="bigNumber",e_.IPADDRESS="IPAddress",e_.EMAIL="email",e_.TIMESTAMP="timestamp",e_.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",e_.ATTRIBUTEREFERENCE="attributeReference",e_.UUID="UUID",e_.INTEGER="integer",e_.OAUTHGRANT="oAuthGrant",e_.NUMBER="number",e_.DEVICECONFIGMAP="DeviceConfigMap",e_.TEXTMAP="textMap",e_.WEBSOCKETSUBSCRIPTION="websocketSubscription",e_.BOOLEAN="boolean",e_.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",e_.FORECASTCONFIGURATION="forecastConfiguration",e_.TIMEDURATIONISO8601="timeDurationISO8601",e_.TIMESTAMPISO8601="timestampISO8601",e_.CONSOLEPROVIDERS="consoleProviders",e_.MULTIVALUEDTEXTMAP="multivaluedTextMap",e_.NEGATIVENUMBER="negativeNumber",e_.PARITYBIT="Paritybit",e_.JSON="JSON",e_.CRONEXPRESSION="CRONExpression",e_.INTEGERBYTE="integerByte",e_.AGENTLINK="agentLink",e_.DIRECTION="direction",e_.HOSTORIPADDRESS="hostOrIPAddress",e_.STOPBITS="Stopbits",e_.CALENDAREVENT="calendarEvent",e_.CONNECTIONSTATUS="connectionStatus",e_.VALUECONSTRAINT="valueConstraint",(eg=ty||(ty={})).MONTH="month",eg.MILE_SCANDINAVIAN="mile_scandinavian",eg.VAR="var",eg.OUNCE="ounce",eg.HECTARE="hectare",eg.YARD="yard",eg.YEAR="year",eg.GIGA="giga",eg.JOULE="joule",eg.VOLT="volt",eg.HERTZ="hertz",eg.MILE="mile",eg.DEGREE="degree",eg.KILO="kilo",eg.BTU="btu",eg.TERA="tera",eg.FOOT="foot",eg.MEGA="mega",eg.KELVIN="kelvin",eg.CARBON="carbon",eg.DECIBEL_ATTENUATED="decibel_attenuated",eg.INCH="inch",eg.SQUARED="squared",eg.PERCENTAGE="percentage",eg.IN_HG="inch_mercury",eg.CENTI="centi",eg.GRAM="gram",eg.CUBED="cubed",eg.DAY="day",eg.RADIAN="radian",eg.OHM="ohm",eg.MINUTE="minute",eg.PART_PER_MILLION="ppm",eg.AMP="amp",eg.MASS_POUND="pound",eg.KNOT="knot",eg.METRE="metre",eg.LITRE="litre",eg.FLUID_OUNCE="fluid_ounce",eg.HOUR="hour",eg.ACRE="acre",eg.CELSIUS="celsius",eg.RPM="rpm",eg.PASCAL="pascal",eg.DECIBEL="decibel",eg.LUMEN="lumen",eg.WEEK="week",eg.FAHRENHEIT="fahrenheit",eg.WATT="watt",eg.GALLON="gallon",eg.LUX="lux",eg.MILLI="milli",eg.BAR="bar",eg.HECTO="hecto",eg.PEAK="peak",eg.SECOND="second",eg.MICRO="micro",eg.PER="per",eg.STONE="stone",tv||(tv={});class nC{static getAssetDescriptors(){return nC._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nC.getValueDescriptor(t)),n=t.jsonType?t:nC.getValueDescriptor(t.type)),!n&&e&&(n=nC.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nC._assetTypeInfos=[],nC._metaItemDescriptors=[],nC._valueDescriptors=[];var nY=n(1001);function nx(e){return(nx="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 nO(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nB(e){var t=function(e,t){if("object"!=nx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nx(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nx(t)?t:t+""}function nR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nB(o.key),o)}}function nP(e,t,n){return t&&nR(e.prototype,t),n&&nR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nj(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nN(e,t){return(nN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nI(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&&nN(e,t)}function nH(e,t){if(t&&("object"==nx(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return nj(e)}function nU(e){return(nU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nW(e,t,n){return(t=nB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function nG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function nq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nG(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(4532);var n$={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)}},nV=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nO(this,e),this.init(t,n)}return nP(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||n$,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),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,nq(nq({},{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}()),nJ=function(){function e(){nO(this,e),this.observers={}}return nP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.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,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function nK(){var e,t,n=new Promise(function(n,o){e=n,t=o});return n.resolve=e,n.reject=t,n}function nX(e){return null==e?"":""+e}function nQ(e,t,n){function o(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 a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function nZ(e,t,n){var o=nQ(e,t,Object);o.obj[o.k]=n}function n0(e,t){var n=nQ(e,t),o=n.obj,r=n.k;if(o)return o[r]}function n1(e,t,n){var o=n0(e,n);return void 0!==o?o:n0(t,n)}function n2(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var n4={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function n3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return n4[e]}):e}var n6="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,n5=[" ",",","?","!",";"];function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function n7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var n9=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return nO(this,o),t=n.call(this),n6&&nJ.call(nj(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 nP(o,[{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,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=n0(this.data,a);return s||!i||"string"!=typeof n?s:function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var r=n.split(o),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var s=2,c=r.slice(a,a+s).join(o),d=i[c];void 0===d&&r.length>a+s;)s++,d=i[c=r.slice(a,a+s).join(o)];if(void 0===d)return;if(null===d)return null;if(n.endsWith(c)){if("string"==typeof d)return d;if(c&&"string"==typeof d[c])return d[c]}var l=r.slice(a+s).join(o);if(l)return e(d,l,o);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nZ(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);var s=n0(this.data,a)||{};o?function e(t,n,o){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?o&&(t[r]=n[r]):e(t[r],n[r],o):t[r]=n[r]);return t}(s,n,r):s=n7(n7({},s),n),nZ(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{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)?n7(n7({},{}),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}}]),o}(nJ),oe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}};function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oo={},or=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nO(this,o),i=n.call(this),n6&&nJ.call(nj(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=nj(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=nV.create("translator"),i}return nP(o,[{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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var o=n5.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===o.length)return!0;var r=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,n,o);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var c=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(r=c.shift()),e=c.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==nx(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,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,d=s.namespaces,l=d[d.length-1],m=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&"cimode"===m.toLowerCase()){if(f){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(l).concat(u).concat(c),b):"".concat(l).concat(u).concat(c)}return i?(b.res=c,b):c}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||c,F=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(_)&&("string"!=typeof g||"[object Array]"!==_)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,on(on({},t),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=k,b):k}if(a){var w="[object Array]"===_,M=w?[]:{},D=w?F:p;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var L="".concat(D).concat(a).concat(E);M[E]=this.translate(L,on(on({},t),{joinArrays:!1,ns:d})),M[E]===L&&(M[E]=h[E])}h=M}}else if(y&&"string"==typeof g&&"[object Array]"===_)(h=h.join(g))&&(h=this.extendTranslation(h,e,t,n));else{var A=!1,T=!1,S=void 0!==t.count&&"string"!=typeof t.count,C=o.hasDefaultValue(t),Y=S?this.pluralResolver.getSuffix(m,t.count,t):"",x=t["defaultValue".concat(Y)]||t.defaultValue;!this.isValidLookup(h)&&C&&(A=!0,h=x),this.isValidLookup(h)||(T=!0,h=c);var O=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:h,B=C&&x!==h&&this.options.updateMissing;if(T||A||B){if(this.logger.log(B?"updateKey":"missingKey",m,l,c,B?x:h),a){var R=this.resolve(c,on(on({},t),{},{keySeparator:!1}));R&&R.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 P=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var N=0;N<j.length;N++)P.push(j[N]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var I=function(e,n,o){var i=C&&o!==h?o:O;r.options.missingKeyHandler?r.options.missingKeyHandler(e,l,n,i,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,l,n,i,B,t),r.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?P.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],c+n,t["defaultValue".concat(n)]||x)})}):I(P,c,x))}h=this.extendTranslation(h,e,t,b,n),T&&h===c&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(c)),(T||A)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,A?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,n,o,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,on(on({},this.options.interpolation.defaultVariables),n),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(on(on({},n),{interpolation:on(on({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var d=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=on(on({},this.options.interpolation.defaultVariables),d)),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return r&&r[0]===o[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):i.translate.apply(i,o.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var m=n.postProcess||this.options.postProcess,f="string"==typeof m?[m]:m;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=oe.handle(f,e,t,this.options&&this.options.postProcessPassResolved?on({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),d=c.key;n=d;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var m=void 0!==s.count&&"string"!=typeof s.count,f=m&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),u=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,b=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!oo["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(oo["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" 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(n){if(!a.isValidLookup(t)){r=n;var i,c=[d];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,d,n,e,s);else{m&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,b="".concat(a.options.pluralSeparator,"zero");if(m&&(c.push(d+l),f&&c.push(d+b)),u){var h="".concat(d).concat(a.options.contextSeparator).concat(s.context);c.push(h),m&&(c.push(h+l),f&&c.push(h+b))}}for(;i=c.pop();)a.isValidLookup(t)||(o=i,t=a.getResource(n,e,i,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:o,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,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(nJ);function oi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var oa=function(){function e(t){nO(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nV.create("languageUtils")}return nP(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oi(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oi(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=oi(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach(function(e){if(!t){var o=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(o))&&(t=o)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(o))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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.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)),o.forEach(function(e){0>r.indexOf(e)&&i(n.formatLanguageCode(e))}),r}}]),e}(),os=[{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}],oc={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)}},od=["v1","v2","v3"],ol={zero:0,one:1,two:2,few:3,many:4,other:5},om=function(){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nO(this,e),this.languageUtils=t,this.options=o,this.logger=nV.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=(n={},os.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:oc[e.fc]}})}),n)}return nP(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,t){return ol[e]-ol[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):o.numbers.map(function(o){return t.getSuffix(e,o,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return n.options.prepend&&r.toString()?n.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&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!od.includes(this.options.compatibilityJSON)}}]),e}();function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ob=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nO(this,e),this.logger=nV.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nP(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:n3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?n2(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?n2(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?n2(t.nestingPrefix):t.nestingPrefixEscaped||n2("$t("),this.nestingSuffix=t.nestingSuffix?n2(t.nestingSuffix):t.nestingSuffixEscaped||n2(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var r=n1(t,c,e);return s.alwaysFormat?s.format(r,void 0,n,ou(ou(ou({},o),t),{},{interpolationkey:e})):r}var i=e.split(s.formatSeparator),a=i.shift().trim(),d=i.join(s.formatSeparator).trim();return s.format(n1(t,c,a),d,n,ou(ou(ou({},o),t),{},{interpolationkey:a}))};this.resetRegExp();var m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return d(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?d(s.escape(e)):d(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(i=l(n)))if("function"==typeof m){var c=m(e,r,o);i="string"==typeof c?c:""}else if(o&&o.hasOwnProperty(n))i="";else if(f){i=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i="";else"string"==typeof i||s.useRawValueToEscape||(i=nX(i));var d=t.safeValue(i);if(e=e.replace(r[0],d),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,o,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ou({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0];var i=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=ou(ou({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],d=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),c=l,d=!0}if((o=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=nX(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),d&&(o=c.reduce(function(e,t){return r.format(e,t,i.lng,ou(ou({},i),{},{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oF(e){var t={};return function(n,o,r){var i=o+JSON.stringify(r),a=t[i];return a||(a=e(o,r),t[i]=a),a(n)}}var o_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nO(this,e),this.logger=nV.create("formatter"),this.options=t,this.formats={number:oF(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:oF(function(e,t){var n=new Intl.NumberFormat(e,op(op({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:oF(function(e,t){var n=new Intl.DateTimeFormat(e,op({},t));return function(e){return n.format(e)}}),relativetime:oF(function(e,t){var n=new Intl.RelativeTimeFormat(e,op({},t));return function(e){return n.format(e,t.range||"day")}}),list:oF(function(e,t){var n=new Intl.ListFormat(e,op({},t));return function(e){return n.format(e)}})},this.init(t)}return nP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=oF(t)}},{key:"format",value:function(e,t,n,o){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);"currency"===t&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,o=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 nz(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)?nz(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=o[0],i=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,s=i.formatOptions;if(r.formats[a]){var c=e;try{var d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=d.locale||d.lng||o.locale||o.lng||n;c=r.formats[a](e,l,op(op(op({},s),o),d))}catch(e){r.logger.warn(e)}return c}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ov=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nO(this,o),i=n.call(this),n6&&nJ.call(nj(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=nV.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return nP(o,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i={},a={},s={},c={};return e.forEach(function(e){var o=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,o=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===c[t]&&(c[t]=!0)))}),o||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var o,s,c,d;o=n.loaded,(c=(s=nQ(o,[r],Object)).obj)[d=s.k]=c[d]||[],c[d].push(i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,c){if(o.readingCalls--,o.waitingReads.length>0){var d=o.waitingReads.shift();o.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}s&&c&&r<o.maxRetries?setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=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,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)})}},{key:"saveMissing",value:function(e,t,n,o,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(n,'" 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==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,oy(oy({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),o}(nJ);function ok(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 ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oD(){}var oE=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(nO(this,o),t=n.call(this),n6&&nJ.call(nj(t)),t.options=ok(r),t.services={},t.logger=nV,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=nj(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),nH(t,nj(t));setTimeout(function(){t.init(r,i)},0)}return t}return nP(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=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 o={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"===nx(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===nx(e[2])||"object"===nx(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){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=oM(oM(oM({},o),this.options),ok(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=oM(oM({},o.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?nV.init(r(this.modules.logger),this.options):nV.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=o_);var i,a=new oa(this.options);this.store=new n9(this.options.resources,this.options);var s=this.services;s.logger=nV,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new om(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=r(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ob(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ov(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new or(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=oD),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[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 n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var d=nK(),l=function(){var t=function(t,o){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),d.resolve(o),n(t,o)};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?l():setTimeout(l,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oD,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=nK();return e||(e=this.languages),t||(t=this.options.ns),n||(n=oD),this.services.backendConnector.reload(e,t,function(e){o.resolve(),n(e)}),o}},{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&&oe.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 n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=nK();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(r(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,o.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var o="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){if("object"!==nx(r)){for(var i,a=arguments.length,s=Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];i=o.options.overloadTranslationOptionHandler([t,r].concat(s))}else i=oM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var d=o.options.keySeparator||".",l=i.keyPrefix?"".concat(i.keyPrefix).concat(d).concat(t):t;return o.t(l,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,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,n=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 o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===o||2===o};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=nK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=nK();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter(function(e){return 0>o.indexOf(e)});return r.length?(this.options.preload=o.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oD,r=oM(oM(oM({},this.options),t),{isClone:!0}),i=new o(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=oM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new or(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))}),i.init(r,n),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}}}]),o}(nJ);nW(oE,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new oE(e,t)});var oL=oE.createInstance();oL.createInstance=oE.createInstance,oL.createInstance,oL.init,oL.loadResources,oL.reloadResources,oL.use,oL.changeLanguage,oL.getFixedT,oL.t,oL.exists,oL.setDefaultNamespace,oL.hasLoadedNamespace,oL.loadNamespaces,oL.loadLanguages;let oA=oL;var oT=n(8183),oS=n.n(oT),oC=n(4867),oY=n.n(oC);n(3472);class ox{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 oO{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oO._evalValuePredicate(e.name,t)))&&(!this.attributes||oO._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oO._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oO._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oO._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oO._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oO._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oO._collectNames(e))]}}oO._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var oB=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((o=o.apply(e,t||[])).next())})};let oR=n(4461);class oP{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),c=o.get("consoleAutoEnable"),d=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=d;let l=oP._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let f=l.providers;for(let e of(l.providers={},d)){let t=f&&f.hasOwnProperty(e)?f[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let u=se.getAppName();u.length>0&&0>l.apps.indexOf(u)&&l.apps.push(u),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let 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 oB(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 oB(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 oB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return oB(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 oB(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new ox,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>oB(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 oB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield se.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&oP._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return oB(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:oR.name,version:oR.version,platform:oR.os.toString(),apps:[],model:((oR.manufacturer?oR.manufacturer+" ":"")+(oR.product?oR.product:"")).trim()}}_initialiseProvider(e){return oB(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 oj(e,t){return function(){return e.apply(t,arguments)}}let{toString:oN}=Object.prototype,{getPrototypeOf:oI}=Object,{iterator:oH,toStringTag:oU}=Symbol,oW=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oz=(e,t)=>{let n=e,o=[];for(;null!=n&&n!==Object.prototype&&-1===o.indexOf(n);){if(o.push(n),oW(n,t))return!0;n=oI(n)}return!1},oG=(t=Object.create(null),e=>{let n=oN.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}),oq=e=>(e=e.toLowerCase(),t=>oG(t)===e),o$=e=>t=>typeof t===e,{isArray:oV}=Array,oJ=o$("undefined");function oK(e){return null!==e&&!oJ(e)&&null!==e.constructor&&!oJ(e.constructor)&&oZ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oX=oq("ArrayBuffer"),oQ=o$("string"),oZ=o$("function"),o0=o$("number"),o1=e=>null!==e&&"object"==typeof e,o2=e=>{if(!o1(e))return!1;let t=oI(e);return(null===t||t===Object.prototype||null===oI(t))&&!oz(e,oU)&&!oz(e,oH)},o4=oq("Date"),o3=oq("File"),o6=oq("Blob"),o5=oq("FileList"),o8="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},o7=void 0!==o8.FormData?o8.FormData:void 0,o9=oq("URLSearchParams"),[re,rt,rn,ro]=["ReadableStream","Request","Response","Headers"].map(oq);function rr(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oV(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oK(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function ri(e,t){let n;if(oK(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let ra="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rs=e=>!oJ(e)&&e!==ra,rc=(r="u">typeof Uint8Array&&oI(Uint8Array),e=>r&&e instanceof r),rd=oq("HTMLFormElement"),{propertyIsEnumerable:rl}=Object.prototype,rm=oq("RegExp"),rf=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};rr(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},ru=oq("AsyncFunction"),rb=(s="function"==typeof setImmediate,c=oZ(ra.postMessage),s?setImmediate:c?(d=`axios@${Math.random()}`,l=[],ra.addEventListener("message",({source:e,data:t})=>{e===ra&&t===d&&l.length&&l.shift()()},!1),e=>{l.push(e),ra.postMessage(d,"*")}):e=>setTimeout(e)),rh="u">typeof queueMicrotask?queueMicrotask.bind(ra):"u">typeof process&&process.nextTick||rb,rp=e=>null!=e&&oZ(e[oH]),rF={isArray:oV,isArrayBuffer:oX,isBuffer:oK,isFormData:e=>{if(!e)return!1;if(o7&&e instanceof o7)return!0;let t=oI(e);if(!t||t===Object.prototype||!oZ(e.append))return!1;let n=oG(e);return"formdata"===n||"object"===n&&oZ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oX(e.buffer)},isString:oQ,isNumber:o0,isBoolean:e=>!0===e||!1===e,isObject:o1,isPlainObject:o2,isEmptyObject:e=>{if(!o1(e)||oK(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:re,isRequest:rt,isResponse:rn,isHeaders:ro,isUndefined:oJ,isDate:o4,isFile:o3,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:o6,isRegExp:rm,isFunction:oZ,isStream:e=>o1(e)&&oZ(e.pipe),isURLSearchParams:o9,isTypedArray:rc,isFileList:o5,forEach:rr,merge:function e(...t){let{caseless:n,skipUndefined:o}=rs(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&ri(r,i)||i,s=oW(r,a)?r[a]:void 0;o2(s)&&o2(t)?r[a]=e(s,t):o2(t)?r[a]=e({},t):oV(t)?r[a]=t.slice():o&&oJ(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oK(n)||(rr(n,i),"object"!=typeof n||oV(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];rl.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(rr(t,(t,o)=>{n&&oZ(t)?Object.defineProperty(e,o,{__proto__:null,value:oj(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oG,kindOfTest:oq,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oV(e))return e;let t=e.length;if(!o0(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oH]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:rd,hasOwnProperty:oW,hasOwnProp:oW,hasOwnInPrototypeChain:oz,getSafeProp:(e,t)=>null!=e&&oz(e,t)?e[t]:void 0,reduceDescriptors:rf,freezeMethods:e=>{rf(e,(t,n)=>{if(oZ(e)&&["arguments","caller","callee"].includes(n))return!1;if(oZ(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oV(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ri,global:ra,isContextDefined:rs,isSpecCompliantForm:function(e){return!!(e&&oZ(e.append)&&"FormData"===e[oU]&&e[oH])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(o1(e)){if(t.has(e))return;if(oK(e))return e;if(!("toJSON"in e)){t.add(e);let o=oV(e)?[]:{};return rr(e,(e,t)=>{let r=n(e);oJ(r)||(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:ru,isThenable:e=>e&&(o1(e)||oZ(e))&&oZ(e.then)&&oZ(e.catch),setImmediate:rb,asap:rh,isIterable:rp,isSafeIterable:e=>null!=e&&oz(e,oH)&&rp(e)},r_=rF.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"]),rg=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ry=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rv(e,t){return rF.isArray(e)?e.map(e=>rv(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rk(e){let t=Object.create(null);return rF.forEach(e.toJSON(),(e,n)=>{t[n]=rv(e,ry)}),t}let rw=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rD(e){return!1===e||null==e?e:rF.isArray(e)?e.map(rD):rv(String(e),rg)}function rE(e,t,n,o,r){if(rF.isFunction(o))return o.call(this,t,n);if(r&&(t=n),rF.isString(t)){if(rF.isString(o))return -1!==t.indexOf(o);if(rF.isRegExp(o))return o.test(t)}}class rL{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rM(t);if(!r)return;let i=rF.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rD(e))}let i=(e,t)=>rF.forEach(e,(e,n)=>r(e,n,t));if(rF.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(rF.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||s[n]&&r_[n]||("set-cookie"===n?s[n]?s[n].push(o):s[n]=[o]:s[n]=s[n]?s[n]+", "+o:o)}),s),t)}else if(rF.isObject(e)&&rF.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!rF.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rF.hasOwnProp(n,r)?(o=n[r],n[r]=rF.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rM(e)){let n=rF.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(rF.isFunction(t))return t.call(this,e,n);if(rF.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let n=rF.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rE(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rM(e)){let r=rF.findKey(n,e);r&&(!t||rE(n,n[r],r,t))&&(delete n[r],o=!0)}}return rF.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rE(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return rF.forEach(this,(o,r)=>{let i=rF.findKey(n,r);if(i){t[i]=rD(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rD(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rF.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&rF.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){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 n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rw]=this[rw]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rM(e);if(!t[o]){let r;r=rF.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return rF.isArray(e)?e.forEach(o):o(e),this}}rL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rF.reduceDescriptors(rL.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rF.freezeMethods(rL);class rA extends Error{static from(e,t,n,o,r,i){let a=new rA(e.message,t||e.code,n,o,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&rF.hasOwnProp(o,"redact")?o.redact:void 0,i=rF.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||rF.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rL&&(o=o.toJSON()),t.push(o),rF.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);rF.isUndefined(o)||(r[t]=o)});else{if(!rF.isPlainObject(o)&&function(e){if(rF.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rF.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?"[REDACTED ****]":n(i);rF.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):rF.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rA.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rA.ERR_BAD_OPTION="ERR_BAD_OPTION",rA.ECONNABORTED="ECONNABORTED",rA.ETIMEDOUT="ETIMEDOUT",rA.ECONNREFUSED="ECONNREFUSED",rA.ERR_NETWORK="ERR_NETWORK",rA.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rA.ERR_DEPRECATED="ERR_DEPRECATED",rA.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rA.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rA.ERR_CANCELED="ERR_CANCELED",rA.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rA.ERR_INVALID_URL="ERR_INVALID_URL",rA.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rT=rA;function rS(e){return rF.isPlainObject(e)||rF.isArray(e)}function rC(e){return rF.endsWith(e,"[]")?e.slice(0,-2):e}function rY(e,t,n){return e?e.concat(t).map(function(e,t){return e=rC(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rx=rF.toFlatObject(rF,{},null,function(e){return/^is[A-Z]/.test(e)}),rO=function(e,t,n){if(!rF.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(n=rF.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rF.isUndefined(t[e])})).metaTokens,r=n.visitor||u,i=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,d=s&&rF.isSpecCompliantForm(t),l=[];if(!rF.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(rF.isDate(e))return e.toISOString();if(rF.isBoolean(e))return e.toString();if(!d&&rF.isBlob(e))throw new rT("Blob is not supported. Use a Buffer instead.");if(rF.isArrayBuffer(e)||rF.isTypedArray(e)){if(d&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rT("Blob is not supported. Use a Buffer instead.",rT.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rT("Object is too deeply nested ("+e+" levels). Max depth: "+c,rT.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,n,r){let s=e;if(rF.isReactNative(t)&&rF.isReactNativeBlob(e))return t.append(rY(r,n,i),m(e)),!1;if(e&&!r&&"object"==typeof e)if(rF.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(c===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rF.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(rF.isArray(e)&&(d=e,rF.isArray(d)&&!d.some(rS))||(rF.isFileList(e)||rF.endsWith(n,"[]"))&&(s=rF.toArray(e)))return n=rC(n),s.forEach(function(e,o){rF.isUndefined(e)||null===e||t.append(!0===a?rY([n],o,i):null===a?n:n+"[]",m(e))}),!1}return!!rS(e)||(t.append(rY(r,n,i),m(e)),!1)}let b=Object.assign(rx,{defaultVisitor:u,convertValue:m,isVisitable:rS});if(!rF.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!rF.isUndefined(n)){if(f(i),-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),rF.forEach(n,function(n,a){!0===(!(rF.isUndefined(n)||null===n)&&r.call(t,n,rF.isString(a)?a.trim():a,o,b))&&e(n,o?o.concat(a):[a],i+1)}),l.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&&rO(e,this,t)}let rP=rR.prototype;function rj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rN(e,t,n){let o;if(!t)return e;e=e||"";let r=rF.isFunction(n)?{serialize:n}:n,i=rF.getSafeProp(r,"encode")||rj,a=rF.getSafeProp(r,"serialize");if(o=a?a(t,r):rF.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("?")?"?":"&")+o}return e}rP.append=function(e,t){this._pairs.push([e,t])},rP.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 rI=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rF.forEach(this.handlers,function(t){null!==t&&e(t)})}},rH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rW="u">typeof FormData?FormData:null,rz="u">typeof Blob?Blob:null,rG="u">typeof window&&"u">typeof document,rq="object"==typeof navigator&&navigator||void 0,r$=rG&&(!rq||0>["ReactNative","NativeScript","NS"].indexOf(rq.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rJ=rG&&window.location.href||"http://localhost",rK={...tD,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rW,Blob:rz},protocols:["http","https","file","blob","url","data"]};function rX(e){if(e>100)throw new rT("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rT.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rQ=function(e){if(rF.isFormData(e)&&rF.isFunction(e.entries)){let t={};return rF.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rX(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&rF.isArray(o)?o.length:i,s)?rF.hasOwnProp(o,i)?o[i]=rF.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(rF.hasOwnProp(o,i)&&rF.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&rF.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/\w+|\[(\w*)]/g;for(;null!==(t=o.exec(e));)rX(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rZ=(e,t)=>null!=e&&rF.hasOwnProp(e,t)?e[t]:void 0,r0={transitional:rH,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=rF.isObject(e);if(i&&rF.isHTMLForm(e)&&(e=new FormData(e)),rF.isFormData(e))return r?JSON.stringify(rQ(e)):e;if(rF.isArrayBuffer(e)||rF.isBuffer(e)||rF.isStream(e)||rF.isFile(e)||rF.isBlob(e)||rF.isReadableStream(e))return e;if(rF.isArrayBufferView(e))return e.buffer;if(rF.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rZ(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rO(e,new rK.classes.URLSearchParams,{visitor:function(e,t,n,o){return rK.isNode&&rF.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rF.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rZ(this,"env"),r=o&&o.FormData;return rO(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rF.isString(a))try{return(0,JSON.parse)(a),rF.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rZ(this,"transitional")||r0.transitional,n=t&&t.forcedJSONParsing,o=rZ(this,"responseType"),r="json"===o;if(rF.isResponse(e)||rF.isReadableStream(e))return e;if(e&&rF.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rZ(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rT.from(e,rT.ERR_BAD_RESPONSE,this,null,rZ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rK.classes.FormData,Blob:rK.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r1(e,t){let n=this||r0,o=t||n,r=rL.from(o.headers),i=o.data;return rF.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function r2(e){return!!(e&&e.__CANCEL__)}rF.forEach(["delete","get","head","post","put","patch","query"],e=>{r0.headers[e]={}});let r4=class extends rT{constructor(e,t,n){super(null==e?"canceled":e,rT.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function r3(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rT("Request failed with status code "+n.status,n.status>=400&&n.status<500?rT.ERR_BAD_REQUEST:rT.ERR_BAD_RESPONSE,n.config,n.request,n))}let r6=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let c=Date.now(),d=r[a];n||(n=c),o[i]=s,r[i]=c;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),c-n<t)return;let f=d&&c-d;return f?Math.round(1e3*m/f):void 0}},r5=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n)]},r8=(e,t,n=3)=>{let o=0,r=r6(50,250);return r5(n=>{if(!n||"number"!=typeof n.loaded)return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,c=Math.max(0,s-o),d=r(c);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a?(a-s)/d:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r7=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},r9=e=>(...t)=>rF.asap(()=>e(...t)),ie=rK.hasStandardBrowserEnv?(i=new URL(rK.origin),a=rK.navigator&&/(msie|trident)/i.test(rK.navigator.userAgent),e=>(e=new URL(e,rK.origin),i.protocol===e.protocol&&i.host===e.host&&(a||i.port===e.port))):()=>!0,it=rK.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rF.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rF.isString(o)&&s.push(`path=${o}`),rF.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),rF.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},io=/^https?:(?!\/\/)/i,ir=/[\t\n\r]/g;function ii(e,t){if("string"==typeof e&&io.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ir,"")))throw new rT('Invalid URL: missing "//" after protocol',rT.ERR_INVALID_URL,t)}function ia(e,t,n,o){ii(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===n)?(ii(e,o),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let is=e=>e instanceof rL?{...e}:e;function ic(e,t){e=e||{},t=t||{};let n=Object.create(null);function o(e,t,n,o){return rF.isPlainObject(e)&&rF.isPlainObject(t)?rF.merge.call({caseless:o},e,t):rF.isPlainObject(t)?rF.merge({},t):rF.isArray(t)?t.slice():t}function r(e,t,n,r){return rF.isUndefined(t)?rF.isUndefined(e)?void 0:o(void 0,e,n,r):o(e,t,n,r)}function i(e,t){if(!rF.isUndefined(t))return o(void 0,t)}function a(e,t){return rF.isUndefined(t)?rF.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,i){return rF.hasOwnProp(t,i)?o(n,r):rF.hasOwnProp(e,i)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>r(is(e),is(t),n,!0)};return rF.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=rF.hasOwnProp(c,o)?c[o]:r,a=i(rF.hasOwnProp(e,o)?e[o]:void 0,rF.hasOwnProp(t,o)?t[o]:void 0,o);rF.isUndefined(a)&&i!==s||(n[o]=a)}),rF.hasOwnProp(t,"validateStatus")&&rF.isUndefined(t.validateStatus)&&!1===function(n){let o=rF.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rF.isUndefined(o)){if(!rF.isPlainObject(o))return;else if(rF.hasOwnProp(o,n))return o[n]}let r=rF.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rF.isPlainObject(r)&&rF.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(rF.hasOwnProp(e,"validateStatus")?n.validateStatus=o(void 0,e.validateStatus):delete n.validateStatus),n}let id=["content-type","content-length"],il=function(e){let t=ic({},e),n=e=>rF.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),c=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rL.from(s),t.url=rN(ia(d,m,l,t),n("params"),n("paramsSerializer")),c){let t=rF.getSafeProp(c,"username")||"",n=rF.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rT.from(t,rT.ERR_BAD_OPTION_VALUE,e)}}if(rF.isFormData(o))if(rK.hasStandardBrowserEnv||rK.hasStandardBrowserWebWorkerEnv||rF.isReactNative(o))s.setContentType(void 0);else{var f,u;rF.isFunction(o.getHeaders)&&(f=s,u=o.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?f.set(u):Object.entries(u||{}).forEach(([e,t])=>{id.includes(e.toLowerCase())&&f.set(e,t)}))}if(rK.hasStandardBrowserEnv&&(rF.isFunction(r)&&(r=r(t)),!0===r||null==r&&ie(t.url))){let e=i&&a&&it.read(a);e&&s.set(i,e)}return t},im="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var o;let r,i,a,s,c,d,l=il(e),m=l.data,f=rL.from(l.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:h}=l;function p(){s&&s(),c&&c(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function _(){if(!F)return;let o=rL.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());r3(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:o,config:e,request:F}),F=null}F.open(l.method.toUpperCase(),l.url,!0),F.timeout=l.timeout,"onloadend"in F?F.onloadend=_:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(_)},F.onabort=function(){F&&(n(new rT("Request aborted",rT.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let o=new rT(t&&t.message?t.message:"Network Error",rT.ERR_NETWORK,e,F);o.event=t||null,n(o),p(),F=null},F.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||rH;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new rT(t,o.clarifyTimeoutError?rT.ETIMEDOUT:rT.ECONNABORTED,e,F)),p(),F=null},void 0===m&&f.setContentType(null),"setRequestHeader"in F&&rF.forEach(rk(f),function(e,t){F.setRequestHeader(t,e)}),rF.isUndefined(l.withCredentials)||(F.withCredentials=!!l.withCredentials),u&&"json"!==u&&(F.responseType=l.responseType),h&&([a,c]=r8(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,s]=r8(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(r=t=>{F&&(n(!t||t.type?new r4(null,e,F):t),F.abort(),p(),F=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let g=(o=l.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(o))&&d[1]||"");if(g&&!rK.protocols.includes(g)){n(new rT("Unsupported protocol "+g+":",rT.ERR_BAD_REQUEST,e)),p();return}F.send(m||null)})},iu=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ib=async function*(e,t){for await(let n of ih(e))yield*iu(n,t)},ih=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ip=(e,t,n,o)=>{let r,i=ib(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},iF=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,i_=(e,t,n)=>t+2<n&&iF(e.charCodeAt(t+1))&&iF(e.charCodeAt(t+2)),{isFunction:ig}=rF,iy=e=>{if(!rF.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iv=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ik=e=>{let t,n=void 0!==rF.global&&null!==rF.global?rF.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=rF.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),c=i?ig(i):"function"==typeof fetch,d=ig(a),l=ig(s);if(!c)return!1;let m=c&&ig(o),f=c&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),u=d&&m&&iv(()=>{let e=!1,t=new a(rK.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iv(()=>rF.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rT(`Response type '${e}' is not supported`,rT.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(rF.isBlob(e))return e.size;if(rF.isSpecCompliantForm(e)){let t=new a(rK.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rF.isArrayBufferView(e)||rF.isArrayBuffer(e)?e.byteLength:(rF.isURLSearchParams(e)&&(e+=""),rF.isString(e))?(await f(e)).byteLength:void 0},F=async(e,t)=>{let n=rF.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:c,signal:l,cancelToken:f,timeout:_,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:k,withCredentials:w="same-origin",fetchOptions:M,maxContentLength:D,maxBodyLength:E}=il(e),L=rF.isNumber(D)&&D>-1,A=rF.isNumber(E)&&E>-1,T=i||fetch;v=v?(v+"").toLowerCase():"text";let S=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rT?t:new r4(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rT(`timeout of ${t}ms exceeded`,rT.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>rF.asap(a),s})([l,f&&f.toAbortSignal()],_),C=null,Y=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),x=null,O=()=>new rT("Request body larger than maxBodyLength limit",rT.ERR_BAD_REQUEST,e,C);try{var B;let i,l,f,_,R=(l="auth",rF.hasOwnProp(e,l)?e[l]:void 0);if(R){let e=rF.getSafeProp(R,"username")||"",t=rF.getSafeProp(R,"password")||"";i={username:e,password:t}}if(f=(B=n).indexOf("://"),_=B,-1!==f&&(_=_.slice(f+3)),_.includes("@")||_.includes(":")){let e=new URL(n,rK.origin);if(!i&&(e.username||e.password)){let t=iy(e.username),n=iy(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;k.delete("authorization"),k.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(L&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length,t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){let t=o.charCodeAt(n+1),r=o.charCodeAt(n+2);iF(t)&&iF(r)&&(e-=2,n+=2)}let n=0,r=t-1,i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)?n++:i(r)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&i_(o,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(n)>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C);if(A&&"get"!==o&&"head"!==o){let e=await p(c);if("number"==typeof e&&isFinite(e)&&(t=e,e>E))throw O()}let P=A&&(rF.isReadableStream(c)||rF.isStream(c)),j=(e,t,n)=>ip(e,65536,e=>{if(A&&e>E)throw x=O();t&&t(e)},n);if(u&&"get"!==o&&"head"!==o&&(y||P)){if(t=null==t?await F(k,c):t,0!==t||P){let e,o=new a(n,{method:"POST",body:c,duplex:"half"});if(rF.isFormData(c)&&(e=o.headers.get("content-type"))&&k.setContentType(e),o.body){let[e,n]=y&&r7(t,r8(r9(y)))||[];c=j(o.body,e,n)}}}else if(P&&!d&&m&&"get"!==o&&"head"!==o)c=j(c);else if(P&&d&&!u&&"get"!==o&&"head"!==o)throw new rT("Stream request bodies are not supported by the current fetch implementation",rT.ERR_NOT_SUPPORT,e,C);rF.isString(w)||(w=w?"include":"omit");let N=d&&"credentials"in a.prototype;if(rF.isFormData(c)){let e=k.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&k.delete("content-type")}k.set("User-Agent","axios/1.18.1",!1);let I={...M,signal:S,method:o.toUpperCase(),headers:rk(k.normalize()),body:c,duplex:"half",credentials:N?w:void 0};C=d&&new a(n,I);let H=await (d?T(C,M):T(n,I)),U=rL.from(H.headers);if(L){let t=rF.toFiniteNumber(U.getContentLength());if(null!=t&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C)}let W=b&&("stream"===v||"response"===v);if(b&&H.body&&(g||L||W&&Y)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=H[e]});let n=rF.toFiniteNumber(U.getContentLength()),[o,r]=g&&r7(n,r8(r9(g),!0))||[];H=new s(ip(H.body,65536,t=>{if(L&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C);o&&o(t)},()=>{r&&r(),Y&&Y()}),t)}v=v||"text";let z=await h[rF.findKey(h,v)||"text"](H,e);if(L&&!b&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof r?new r().encode(z).byteLength:z.length)),"number"==typeof t&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C)}return!W&&Y&&Y(),await new Promise((t,n)=>{r3(t,n,{data:z,headers:rL.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:C})})}catch(t){if(Y&&Y(),S&&S.aborted&&S.reason instanceof rT){let n=S.reason;throw n.config=e,C&&(n.request=C),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(x)throw C&&!x.request&&(x.request=C),x;if(t instanceof rT)throw C&&!t.request&&(t.request=C),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rT("Network Error",rT.ERR_NETWORK,e,C,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rT.from(t,t&&t.code,e,C,t&&t.response)}}},iw=new Map,iM=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,c,d=iw;for(;a--;)s=i[a],void 0===(c=d.get(s))&&d.set(s,c=a?new Map:ik(t)),d=c;return c};iM();let iD={http:null,xhr:im,fetch:{get:iM}};rF.forEach(iD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iE=e=>`- ${e}`,iL=e=>rF.isFunction(e)||null===e||!1===e,iA=function(e,t){let n,o,{length:r}=e=rF.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iL(n)&&void 0===(o=iD[(r=String(n)).toLowerCase()]))throw new rT(`Unknown adapter '${r}'`);if(o&&(rF.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rT("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iE).join("\n"):" "+iE(e[0]):"as no adapter specified"),rT.ERR_NOT_SUPPORT)}return o};function iT(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r4(null,e)}function iS(e){return iT(e),e.headers=rL.from(e.headers),e.data=r1.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iA(e.adapter||r0.adapter,e)(e).then(function(t){iT(e),e.response=t;try{t.data=r1.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rL.from(t.headers),t},function(t){if(!r2(t)&&(iT(e),t&&t.response)){e.response=t.response;try{t.response.data=r1.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rL.from(t.response.headers)}return Promise.reject(t)})}let iC={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iC[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iY={};iC.transitional=function(e,t,n){function o(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rT(o(r," has been removed"+(t?" in "+t:"")),rT.ERR_DEPRECATED);return t&&!iY[r]&&(iY[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iC.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ix=function(e,t,n){if("object"!=typeof e||null===e)throw new rT("options must be an object",rT.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rT("option "+i+" must be "+n,rT.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rT("Unknown option "+i,rT.ERR_BAD_OPTION)}};class iO{constructor(e){this.defaults=e||{},this.interceptors={request:new rI,response:new rI}}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 n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),r=-1===o?"":n.slice(o+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=ic(this.defaults,t);void 0!==r&&ix(r,{silentJSONParsing:iC.transitional(iC.boolean),forcedJSONParsing:iC.transitional(iC.boolean),clarifyTimeoutError:iC.transitional(iC.boolean),legacyInterceptorReqResOrdering:iC.transitional(iC.boolean),advertiseZstdAcceptEncoding:iC.transitional(iC.boolean),validateStatusUndefinedResolves:iC.transitional(iC.boolean)},!1),null!=i&&(rF.isFunction(i)?t.paramsSerializer={serialize:i}:ix(i,{encode:iC.function,serialize:iC.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ix(t,{baseUrl:iC.spelling("baseURL"),withXsrfToken:iC.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&rF.merge(a.common,a[t.method]);a&&rF.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=rL.concat(s,a);let c=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let n=t.transitional||rH;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!d){let e=[iS.bind(this),void 0];for(e.unshift(...c),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=c.length;let f=t;for(;m<o;){let e=c[m++],t=c[m++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=iS.call(this,f)}catch(e){return Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rN(ia((e=ic(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rF.forEach(["delete","get","head","options"],function(e){iO.prototype[e]=function(t,n){return this.request(ic(n||{},{method:e,url:t,data:n&&rF.hasOwnProp(n,"data")?n.data:void 0}))}}),rF.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(ic(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iO.prototype[e]=t(),"query"!==e&&(iO.prototype[e+"Form"]=t(!0))});class iB{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new r4(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new iB(function(t){e=t}),cancel:e}}}let 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 iP=function e(t){let n=new iO(t),o=oj(iO.prototype.request,n);return rF.extend(o,iO.prototype,n,{allOwnKeys:!0}),rF.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ic(t,n))},o}(r0);iP.Axios=iO,iP.CanceledError=r4,iP.CancelToken=iB,iP.isCancel=r2,iP.VERSION="1.18.1",iP.toFormData=rO,iP.AxiosError=rT,iP.Cancel=iP.CanceledError,iP.all=function(e){return Promise.all(e)},iP.spread=function(e){return function(t){return e.apply(null,t)}},iP.isAxiosError=function(e){return rF.isObject(e)&&!0===e.isAxiosError},iP.mergeConfig=ic,iP.AxiosHeaders=rL,iP.formToJSON=e=>rQ(rF.isHTMLForm(e)?new FormData(e):e),iP.getAdapter=iA,iP.HttpStatusCode=iR,iP.default=iP;class ij{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i5`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i5`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i5`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i5`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i5`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i5`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i5`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/${e}`,data:t,options:n})}}class iN{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i5`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i5`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i5`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i5`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i5`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i5`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i5`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i5`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i5`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i5`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i5`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i5`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:i5`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:i5`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/child`,queryParams:t,options:n})}}class iI{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i5`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i5`info`,options:e})}}class iH{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:i5`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i5`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i5`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i5`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i5`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i5`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:i5`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:i5`alarm/${e}/assets`,queryParams:t,options:n})}}class iU{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i5`console/register`,data:e,options:t})}}class iW{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:i5`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i5`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i5`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/valueDescriptors`,queryParams:e,options:t})}}class iz{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i5`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:i5`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/status/${e}`,options:t})}}class iG{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i5`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i5`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i5`apps/info`,options:e})}}class iq{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i5`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i5`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:i5`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i5`configuration/manager/image/${e}`,options:t})}}class i${constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i5`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class iV{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i5`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i5`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`asset/datapoint/${e}/${t}`,data:n,options:o})}}class iJ{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i5`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i5`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i5`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i5`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:i5`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:i5`service/${e}/${t}`,options:n})}}class iK{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i5`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i5`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i5`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i5`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i5`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i5`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i5`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i5`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:i5`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i5`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:i5`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/${t}`,options:n})}}class iX{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`asset/predicted/${e}/${t}`,data:n,options:o})}}class iQ{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i5`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i5`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class iZ{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i5`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i5`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i5`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i5`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i5`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:i5`notification/${e}/delivered`,queryParams:t,options:n})}}class i0{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i5`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i5`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i5`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i5`syslog/event`,queryParams:e,options:t})}}class i1{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i5`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i5`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i5`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i5`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`realm/${e}`,data:t,options:n})}}class i2{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i5`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i5`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i5`flow/${e}`,options:t})}}class i4{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i5`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i5`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i5`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:i5`provisioning/${e}`,data:t,options:n})}}class i3{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i5`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i5`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i5`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i5`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:i5`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i5`map/upload`,queryParams:e,options:t})}}class i6{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i5`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i5`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i5`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:i5`dashboard/${e}/${t}`,options:n})}}function i5(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class i8{constructor(e,t=iP.create()){this._rulesResource=new i9(e,t),this._assetResource=new ae(e,t),this._statusResource=new at(e,t),this._alarmResource=new an(e,t),this._consoleResource=new ao(e,t),this._assetModelResource=new ar(e,t),this._gatewayClientResource=new ai(e,t),this._appResource=new aa(e,t),this._configurationResource=new as(e,t),this._gatewayServiceResource=new ac(e,t),this._assetDatapointResource=new ad(e,t),this._externalServiceResource=new al(e,t),this._userResource=new am(e,t),this._assetPredictedDatapointResource=new af(e,t),this._agentResource=new au(e,t),this._notificationResource=new ab(e,t),this._syslogResource=new ah(e,t),this._realmResource=new ap(e,t),this._flowResource=new aF(e,t),this._provisioningResource=new a_(e,t),this._mapResource=new ag(e,t),this._dashboardResource=new ay(e,t),this._assetResource=new ae(e,t)}get RulesResource(){return this._rulesResource}get AssetResource(){return this._assetResource}get StatusResource(){return this._statusResource}get AlarmResource(){return this._alarmResource}get ConsoleResource(){return this._consoleResource}get AssetModelResource(){return this._assetModelResource}get GatewayClientResource(){return this._gatewayClientResource}get AppResource(){return this._appResource}get ConfigurationResource(){return this._configurationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get ExternalServiceResource(){return this._externalServiceResource}get UserResource(){return this._userResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AgentResource(){return this._agentResource}get NotificationResource(){return this._notificationResource}get SyslogResource(){return this._syslogResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get DashboardResource(){return this._dashboardResource}}class i7{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class i9 extends ij{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ae extends iN{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class at extends iI{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class an extends iH{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ao extends iU{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ar extends iW{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ai extends iz{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class aa extends iG{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class as extends iq{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ac extends i${constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ad extends iV{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class al extends iJ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class am extends iK{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class af extends iX{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class au extends iQ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ab extends iZ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ah extends i0{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ap extends i1{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class aF extends i2{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class a_ extends i4{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ag extends i3{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ay extends i6{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}iP.isAxiosError;let av=new class{get api(){return this._client}constructor(){this._axiosInstance=iP.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>oS().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 i8(e,this._axiosInstance)}};var ak=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((o=o.apply(e,t||[])).next())})};(ey=tk||(tk={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let aw="SUBSCRIBED:",aM="UNAUTHORIZED:",aD="TRIGGERED:",aE="EVENT:";class aL{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aA.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tk.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tk.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(tk.CONNECTING),this._connectingDeferred=new ox,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aA.MIN_RECONNECT_DELAY,this._onStatusChanged(tk.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!==tk.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new ox};return null!=this._pendingSubscription||this._status!==tk.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ak(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tk.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tk.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aL._subscriptionCounter++;if(!this._assetEventPromise){let e;se.authenticated||(e={filterType:"asset",realm:se.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===se.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aL._subscriptionCounter++;if(!this._attributeEventPromise){let e;se.authenticated||(e={filterType:"asset",realm:se.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===se.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tk.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tk.CONNECTED&&this._onStatusChanged(tk.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tk.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<aA.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aA.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aL.MIN_RECONNECT_DELAY=0,aL.MAX_RECONNECT_DELAY=3e4,aL._subscriptionCounter=0;class aA extends aL{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+se.config.realm;return this._connectDeferred=new ox,(se.authenticated?se.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(aw)){let e=JSON.parse(t.substring(aw.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aM)){let e=JSON.parse(t.substring(aM.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aD)){let e=JSON.parse(t.substring(aD.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aE)){let e=JSON.parse(t.substring(aE.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 ox,e.subscriptionId||(e.subscriptionId=aA._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=aE+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 ox;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aE+JSON.stringify(e)),t.promise}}aA._subscriptionCounter=1;let aT=["__proto__","constructor","prototype"];function aS(e){return!("string"!=typeof e||0===e.length||e.length>128||aT.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aC(e){return!(!aS(e)||e.indexOf("/")>-1)}let aY={lng:aC,ns:function(e){return aS(e)}};function ax(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aO(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aB=/\{\{(.+?)\}\}/g;function aR(e,t){let n=!1,o=e.replace(aB,(e,o)=>{let r=o.trim();if(aT.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aC,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let aP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:aP&&"function"==typeof aP.fetch&&(e=aP.fetch);let aj=aO()&&aP?aP.XMLHttpRequest:void 0,aN="function"==typeof ActiveXObject&&aP?aP.ActiveXObject:void 0,aI=["__proto__","constructor","prototype"],aH=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aI.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aU=(t,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let e=r(t,n);if(e instanceof Promise)return void e.then(i).catch(o)}"function"==typeof fetch?fetch(t,n).then(i).catch(o):e(t,n).then(i).catch(o)},aW=(t,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),e&&0!==n.indexOf("file:")){var i=n,a=o,s=r;t.queryStringParams&&(i=aH(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let c="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,d={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:c},l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{aU(i,d,s,l)}catch(e){if(!c||0===Object.keys(c).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(c).forEach(e=>{delete d[e]}),aU(i,d,s,l),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(aO()||"function"==typeof ActiveXObject){var c=n,d=o,l=r;d&&"object"==typeof d&&(d=aH("",d).slice(1)),t.queryStringParams&&(c=aH(c,t.queryStringParams));try{let e=aj?new aj:new aN("MSXML2.XMLHTTP.3.0");e.open(d?"POST":"GET",c,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,d&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))aI.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&l(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(d)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var az=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aW,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aR(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(ax).join(", ")+"] namespaces=["+n.map(ax).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=ax(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+ax(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],c=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let d=aR(o,{lng:n,ns:t});if(null==d){a+=1,r&&a===e.length&&r(s,c);return}this.options.request(this.options,d,i,(t,n)=>{a+=1,s.push(t),c.push(n),a===e.length&&"function"==typeof r&&r(s,c)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};az.type="backend";let aG=e=>(...t)=>({_$litDirective$:e,values:t});class aq{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a$ extends aq{constructor(e){if(super(e),this.it=na,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===na||null==e)return this._t=void 0,this.it=e;if(e===ni)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:[]}}}a$.directiveName="unsafeHTML",a$.resultType=1,aG(a$);class aV extends a${}aV.directiveName="unsafeSVG",aV.resultType=2;let aJ=aG(aV),aK={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 aX=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class aQ extends CustomEvent{constructor(){super(aQ.NAME,{bubbles:!0,composed:!0})}}aQ.NAME="or-iconset-added";let aZ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new aQ)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nr``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nr``}},a0=class extends nM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tY`
|
|
10
|
+
`;class nM extends nv{static finalizeStyles(e){return[nw,...super.finalizeStyles(e)]}}let nD=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},nE={attribute:!0,type:String,converter:tz,reflect:!1,hasChanged:tG};function nL(e){return(t,n)=>{let o;return"object"==typeof n?((e=nE,t,n)=>{let{kind:o,metadata:r}=n,i=globalThis.litPropertyMetadata.get(r);if(void 0===i&&globalThis.litPropertyMetadata.set(r,i=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),i.set(n.name,e),"accessor"===o){let{name:o}=n;return{set(n){let r=t.get.call(this);t.set.call(this,n),this.requestUpdate(o,r,e)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){let{name:o}=n;return function(n){let r=this[o];t.call(this,n),this.requestUpdate(o,r,e)}}throw Error("Unsupported decorator location: "+o)})(e,t,n):(o=t.hasOwnProperty(n),t.constructor.createProperty(n,e),o?Object.getOwnPropertyDescriptor(t,n):void 0)}}function nA(e){return nL({...e,state:!0,attribute:!1})}let nT=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function nS(e,t){return(n,o,r)=>{let i=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof o?n:r??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return nT(n,o,{get(){let e=t.call(this);return void 0===e&&(null!==(e=i(this))||this.hasUpdated)&&a.call(this,e),e}})}return nT(n,o,{get(){return i(this)}})}}(m=ew||(ew={})).CREATE="CREATE",m.UPDATE="UPDATE",m.DELETE="DELETE",(f=eM||(eM={})).LOW="LOW",f.MEDIUM="MEDIUM",f.HIGH="HIGH",(u=eD||(eD={})).MANUAL="MANUAL",u.CLIENT="CLIENT",u.GLOBAL_RULESET="GLOBAL_RULESET",u.REALM_RULESET="REALM_RULESET",u.ASSET_RULESET="ASSET_RULESET",u.AGENT="AGENT",(b=eE||(eE={})).OPEN="OPEN",b.ACKNOWLEDGED="ACKNOWLEDGED",b.IN_PROGRESS="IN_PROGRESS",b.RESOLVED="RESOLVED",b.CLOSED="CLOSED",(h=eL||(eL={})).BOTTOM_LEFT="BOTTOM_LEFT",h.BOTTOM_RIGHT="BOTTOM_RIGHT",h.TOP_LEFT="TOP_LEFT",h.TOP_RIGHT="TOP_RIGHT",(p=eA||(eA={})).CREATE="CREATE",p.READ="READ",p.UPDATE="UPDATE",p.DELETE="DELETE",(F=eT||(eT={})).NONE="NONE",F.FORECAST="FORECAST",F.SETPOINT="SETPOINT",(_=eS||(eS={})).DISCONNECTED="DISCONNECTED",_.CONNECTING="CONNECTING",_.DISCONNECTING="DISCONNECTING",_.CONNECTED="CONNECTED",_.DISABLED="DISABLED",_.WAITING="WAITING",_.ERROR="ERROR",_.STOPPED="STOPPED",(g=eC||(eC={})).REQUEST_START="REQUEST_START",g.REQUEST_REPEATING="REQUEST_REPEATING",g.REQUEST_CANCEL="REQUEST_CANCEL",g.READY="READY",g.COMPLETED="COMPLETED",g.RUNNING="RUNNING",g.CANCELLED="CANCELLED",(y=eY||(eY={})).TOGGLE="TOGGLE",y.INCREMENT="INCREMENT",y.DECREMENT="DECREMENT",y.NEGATE="NEGATE",(v=ex||(ex={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",v.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",v.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",v.INVALID_VALUE="INVALID_VALUE",v.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",v.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",v.CANNOT_PROCESS="CANNOT_PROCESS",v.QUEUE_FULL="QUEUE_FULL",v.UNKNOWN="UNKNOWN",v.ASSET_ID_MISSING="ASSET_ID_MISSING",v.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(k=eO||(eO={})).PUBLIC="PUBLIC",k.SHARED="SHARED",k.PRIVATE="PRIVATE",(w=eB||(eB={})).OFF="OFF",w.ONE_MIN="ONE_MIN",w.FIVE_MIN="FIVE_MIN",w.QUARTER="QUARTER",w.ONE_HOUR="ONE_HOUR",(M=eR||(eR={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",M.KEEP_LAYOUT="KEEP_LAYOUT",M.REDIRECT="REDIRECT",M.BLOCK_DEVICE="BLOCK_DEVICE",(D=eP||(eP={})).CSV="CSV",D.CSV_CROSSTAB="CSV_CROSSTAB",D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(E=ej||(ej={})).MINUTE="MINUTE",E.HOUR="HOUR",E.DAY="DAY",E.WEEK="WEEK",E.MONTH="MONTH",E.YEAR="YEAR",(L=eN||(eN={})).MIN="MIN",L.AVG="AVG",L.MAX="MAX",L.DIFFERENCE="DIFFERENCE",L.COUNT="COUNT",L.SUM="SUM",L.MODE="MODE",L.MEDIAN="MEDIAN",(A=eI||(eI={})).TERMINATING="TERMINATING",A.DISABLED="DISABLED",A.ALREADY_CONNECTED="ALREADY_CONNECTED",A.UNRECOGNISED="UNRECOGNISED",A.PERMANENT_ERROR="PERMANENT_ERROR",A.SYNC_ERROR="SYNC_ERROR",(T=eH||(eH={})).HTTPS="HTTPS",T.HTTP="HTTP",T.TCP="TCP",(S=eU||(eU={})).GET="GET",S.POST="POST",S.PUT="PUT",S.DELETE="DELETE",S.OPTIONS="OPTIONS",S.PATCH="PATCH",(C=eW||(eW={})).KEYCLOAK="KEYCLOAK",C.NONE="NONE",(Y=ez||(ez={})).WEBSOCKET="WEBSOCKET",Y.POLLING="POLLING",(x=eG||(eG={})).INTERNAL="INTERNAL",x.CLIENT="CLIENT",x.GLOBAL_RULESET="GLOBAL_RULESET",x.REALM_RULESET="REALM_RULESET",x.ASSET_RULESET="ASSET_RULESET",(O=eq||(eq={})).REALM="REALM",O.USER="USER",O.ASSET="ASSET",O.CUSTOM="CUSTOM",(B=e$||(e$={})).NORMAL="NORMAL",B.HIGH="HIGH",(R=eV||(eV={})).DEVICE="DEVICE",R.TOPIC="TOPIC",R.CONDITION="CONDITION",(P=eJ||(eJ={})).ALWAYS="ALWAYS",P.ONCE="ONCE",P.HOURLY="HOURLY",P.DAILY="DAILY",P.WEEKLY="WEEKLY",P.MONTHLY="MONTHLY",P.ANNUALLY="ANNUALLY",(j=eK||(eK={})).TITLE="TITLE",j.SOURCE="SOURCE",j.STATUS="STATUS",j.SENT_ON="SENT_ON",j.DELIVERED_ON="DELIVERED_ON",(N=eX||(eX={})).MESSAGE_INVALID="MESSAGE_INVALID",N.CERTIFICATE_INVALID="CERTIFICATE_INVALID",N.UNAUTHORIZED="UNAUTHORIZED",N.FORBIDDEN="FORBIDDEN",N.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",N.CONFIG_DISABLED="CONFIG_DISABLED",N.USER_DISABLED="USER_DISABLED",N.SERVER_ERROR="SERVER_ERROR",N.ASSET_ERROR="ASSET_ERROR",N.SERVER_BUSY="SERVER_BUSY",(I=eQ||(eQ={})).PRIVATE="PRIVATE",I.PROTECTED="PROTECTED",I.PUBLIC="PUBLIC",(H=eZ||(eZ={})).EXACT="EXACT",H.BEGIN="BEGIN",H.END="END",H.CONTAINS="CONTAINS",(U=e0||(e0={})).EQUALS="EQUALS",U.GREATER_THAN="GREATER_THAN",U.GREATER_EQUALS="GREATER_EQUALS",U.LESS_THAN="LESS_THAN",U.LESS_EQUALS="LESS_EQUALS",U.BETWEEN="BETWEEN",(W=e1||(e1={})).CREATED_ON="CREATED_ON",W.NAME="NAME",W.ASSET_TYPE="ASSET_TYPE",W.PARENT_ID="PARENT_ID",W.REALM="REALM",(z=e2||(e2={})).RESTRICTED="RESTRICTED",z.LINKED="LINKED",z.REALM="REALM",(G=e4||(e4={})).AT_LEAST_ONE="AT_LEAST_ONE",G.ALL="ALL",G.NONE="NONE",(q=e3||(e3={})).AND="AND",q.OR="OR",(V=e6||(e6={})).CREATED_ON="CREATED_ON",V.FIRST_NAME="FIRST_NAME",V.LAST_NAME="LAST_NAME",V.USERNAME="USERNAME",V.EMAIL="EMAIL",(J=e5||(e5={})).STOPPED="STOPPED",J.RUNNING="RUNNING",J.ERROR="ERROR",(K=e8||(e8={})).JAVASCRIPT="JAVASCRIPT",K.GROOVY="GROOVY",K.JSON="JSON",K.FLOW="FLOW",(X=e7||(e7={})).READY="READY",X.DEPLOYED="DEPLOYED",X.COMPILATION_ERROR="COMPILATION_ERROR",X.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",X.EXECUTION_ERROR="EXECUTION_ERROR",X.LOOP_ERROR="LOOP_ERROR",X.DISABLED="DISABLED",X.PAUSED="PAUSED",X.EXPIRED="EXPIRED",X.REMOVED="REMOVED",X.EMPTY="EMPTY",(Q=e9||(e9={})).SUNRISE="SUNRISE",Q.SUNSET="SUNSET",Q.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",Q.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",Q.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",Q.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",Q.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",Q.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",Q.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",Q.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",Q.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",Q.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",Q.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",Q.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",Q.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",Q.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",Q.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",Q.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",Q.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",Q.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(Z=te||(te={})).NUMBER="NUMBER",Z.NUMBER_ARRAY="NUMBER_ARRAY",Z.STRING="STRING",Z.BOOLEAN="BOOLEAN",Z.TRIGGER="TRIGGER",Z.COLOR="COLOR",Z.ANY="ANY",(ee=tt||(tt={})).NEW_LINE="NEW_LINE",ee.SPACER="SPACER",(et=tn||(tn={})).INPUT="INPUT",et.PROCESSOR="PROCESSOR",et.OUTPUT="OUTPUT",et.THEN="THEN",(en=to||(to={})).TEXT="TEXT",en.MULTILINE="MULTILINE",en.NUMBER="NUMBER",en.DROPDOWN="DROPDOWN",en.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",en.CHECKBOX="CHECKBOX",en.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",en.COLOR="COLOR",en.DATE="DATE",(eo=tr||(tr={})).ADD="ADD",eo.ADD_OR_REPLACE="ADD_OR_REPLACE",eo.REPLACE="REPLACE",eo.DELETE="DELETE",eo.CLEAR="CLEAR",(er=ti||(ti={})).PER_ASSET="PER_ASSET",er.GLOBAL="GLOBAL",(ei=ta||(ta={})).READ_ADMIN="read:admin",ei.READ_LOGS="read:logs",ei.READ_USERS="read:users",ei.READ_MAP="read:map",ei.READ_ASSETS="read:assets",ei.READ_RULES="read:rules",ei.READ_INSIGHTS="read:insights",ei.READ_ALARMS="read:alarms",ei.READ_NOTIFICATIONS="read:notifications",ei.READ_SERVICES="read:services",ei.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.READ="read",ei.WRITE="write",(ea=ts||(ts={})).REGISTER="REGISTER",ea.UPDATE="UPDATE",ea.DEREGISTER="DEREGISTER",(es=tc||(tc={})).AVAILABLE="AVAILABLE",es.UNAVAILABLE="UNAVAILABLE",(ec=td||(td={})).ASSET="ASSET",ec.AGENT="AGENT",ec.NOTIFICATION="NOTIFICATION",ec.ALARM="ALARM",ec.RULES="RULES",ec.PROTOCOL="PROTOCOL",ec.GATEWAY="GATEWAY",ec.MODEL_AND_VALUES="MODEL_AND_VALUES",ec.API="API",ec.DATA="DATA",(ed=tl||(tl={})).INFO="INFO",ed.WARN="WARN",ed.ERROR="ERROR",(el=tm||(tm={})).NUMERIC="numeric",el.DIGIT_2="2-digit",el.FULL="full",el.LONG="long",el.MEDIUM="medium",el.SHORT="short",el.NARROW="narrow",(em=tf||(tf={})).SECONDLY="SECONDLY",em.MINUTELY="MINUTELY",em.HOURLY="HOURLY",em.DAILY="DAILY",em.WEEKLY="WEEKLY",em.MONTHLY="MONTHLY",em.YEARLY="YEARLY",(ef=tu||(tu={})).OMIT="OMIT",ef.BACKWARD="BACKWARD",ef.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=th||(th={})).SU="SU",eb.MO="MO",eb.TU="TU",eb.WE="WE",eb.TH="TH",eb.FR="FR",eb.SA="SA",(eh=tp||(tp={})).PEOPLECOUNTERASSET="PeopleCounterAsset",eh.MAILAGENT="MailAgent",eh.UDPAGENT="UDPAgent",eh.ROOMASSET="RoomAsset",eh.CITYASSET="CityAsset",eh.VENTILATIONASSET="VentilationAsset",eh.TRADFRILIGHTASSET="TradfriLightAsset",eh.CONSOLEASSET="ConsoleAsset",eh.PRESENCESENSORASSET="PresenceSensorAsset",eh.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",eh.LIGHTASSET="LightAsset",eh.KNXAGENT="KNXAgent",eh.THETHINGSSTACKAGENT="TheThingsStackAgent",eh.PLUGASSET="PlugAsset",eh.CHIRPSTACKAGENT="ChirpStackAgent",eh.WEATHERASSET="WeatherAsset",eh.THINGASSET="ThingAsset",eh.WEBSOCKETAGENT="WebsocketAgent",eh.TCPAGENT="TCPAgent",eh.GATEWAYASSET="GatewayAsset",eh.SERIALAGENT="SerialAgent",eh.BLUETOOTHMESHAGENT="BluetoothMeshAgent",eh.PARKINGASSET="ParkingAsset",eh.TRADFRIPLUGASSET="TradfriPlugAsset",eh.SIMULATORAGENT="SimulatorAgent",eh.SNMPAGENT="SNMPAgent",eh.GROUPASSET="GroupAsset",eh.BUILDINGASSET="BuildingAsset",eh.MODBUSSERIALAGENT="ModbusSerialAgent",eh.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",eh.MQTTAGENT="MQTTAgent",eh.VELBUSTCPAGENT="VelbusTCPAgent",eh.ARTNETLIGHTASSET="ArtnetLightAsset",eh.VELBUSSERIALAGENT="VelbusSerialAgent",eh.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",eh.MICROPHONEASSET="MicrophoneAsset",eh.MODBUSTCPAGENT="ModbusTcpAgent",eh.ZWAVEAGENT="ZWaveAgent",eh.HTTPAGENT="HTTPAgent",eh.DOORASSET="DoorAsset",eh.THERMOSTATASSET="ThermostatAsset",eh.SHIPASSET="ShipAsset",(ep=tF||(tF={})).COLOURRGB="colourRGB",ep.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",ep.PRICEHOURLY="priceHourly",ep.MQTTPORT="MQTTPort",ep.PINGDISABLED="pingDisabled",ep.FLOW="flow",ep.CHILDASSETTYPE="childAssetType",ep.LASTACCESS="lastAccess",ep.POSITION="position",ep.NETWORKKEY="networkKey",ep.UNIVERSE="universe",ep.ROUTINGMODE="routingMode",ep.MSSINUMBER="MSSINumber",ep.LASTWILLRETAIN="lastWillRetain",ep.LASTWILLTOPIC="lastWillTopic",ep.SERIALBAUDRATE="serialBaudrate",ep.SUBSCRIBEQOS="subscribeQos",ep.LEDCOUNT="lEDCount",ep.LOCKED="locked",ep.CLOUDCOVERAGE="cloudCoverage",ep.BASEURL="baseURL",ep.PROTOCOL="protocol",ep.REQUIREDVALUES="requiredValues",ep.REGION="region",ep.CONSOLEPLATFORM="consolePlatform",ep.GATEWAYSTATUS="gatewayStatus",ep.NO2LEVEL="NO2Level",ep.ATMOSPHERICPRESSURE="atmosphericPressure",ep.SERIALPORT="serialPort",ep.APPLICATIONID="applicationId",ep.TAGS="tags",ep.UNLOCK="unlock",ep.CHECKINTERVALSECONDS="checkIntervalSeconds",ep.LOCATION="location",ep.CLIENTSECRET="clientSecret",ep.WINDDIRECTION="windDirection",ep.WINDSPEED="windSpeed",ep.PARTICLESPM10="particlesPM10",ep.APPLICATIONKEY="applicationKey",ep.LENGTH="length",ep.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",ep.USERNAMEPASSWORD="usernamePassword",ep.WATERLEVEL="waterLevel",ep.CONNECTHEADERS="connectHeaders",ep.CONSOLENAME="consoleName",ep.WEBSOCKETQUERY="websocketQuery",ep.PREFERHTML="preferHTML",ep.PARITY="parity",ep.COOLING="cooling",ep.POLLINGMILLIS="pollingMillis",ep.SOILTEMPERATURE="soilTemperature",ep.SUNIRRADIANCE="sunIrradiance",ep.MESSAGEMAXLENGTH="messageMaxLength",ep.WINDGUSTSPEED="windGustSpeed",ep.LIGHTID="lightId",ep.PROXYADDRESS="proxyAddress",ep.REQUESTQUERYPARAMETERS="requestQueryParameters",ep.MQTTHOST="MQTTHost",ep.SECUREGRPC="secureGRPC",ep.MODEL="model",ep.STREET="street",ep.MANUFACTURER="manufacturer",ep.DELETEPROCESSEDMAIL="deleteProcessedMail",ep.RESUMESESSION="resumeSession",ep.ONOFF="onOff",ep.APIKEY="ApiKey",ep.CITY="city",ep.PRESENCE="presence",ep.SPACESOCCUPIED="spacesOccupied",ep.STARTTLS="startTLS",ep.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",ep.WEBSOCKETPATH="websocketPath",ep.AGENTSTATUS="agentStatus",ep.PRICEDAILY="priceDaily",ep.COUNTGROWTHMINUTE="countGrowthMinute",ep.IMONUMBER="IMONumber",ep.ATTRIBUTION="Attribution",ep.TENANTID="tenantId",ep.REQUESTHEADERS="requestHeaders",ep.HOST="host",ep.COUNTOUTMINUTE="countOutMinute",ep.MESSAGECHARSET="messageCharset",ep.CERTIFICATEALIAS="certificateAlias",ep.EMAIL="email",ep.BINDPORT="bindPort",ep.CONSOLEVERSION="consoleVersion",ep.PARTICLESPM1="particlesPM1",ep.MTU="mtu",ep.SPEED="speed",ep.MESSAGESTRIPDELIMITER="messageStripDelimiter",ep.AREA="area",ep.COUNTRY="country",ep.SHIPTYPE="shipType",ep.CONNECTSUBSCRIPTIONS="connectSubscriptions",ep.RELATIVEHUMIDITY="relativeHumidity",ep.SOURCEADDRESS="sourceAddress",ep.RAINFALL="rainfall",ep.OAUTHGRANT="oAuthGrant",ep.OZONELEVEL="ozoneLevel",ep.SEQUENCENUMBER="sequenceNumber",ep.COUNTINMINUTE="countInMinute",ep.PORT="port",ep.SUNALTITUDE="sunAltitude",ep.COUNTOUT="countOut",ep.ROOMNUMBER="roomNumber",ep.TUNNELINGSUPPORTED="tunnelingSupported",ep.ENINUMBER="ENINumber",ep.PARTICLESPM2_5="particlesPM2_5",ep.AGENTDISABLED="agentDisabled",ep.DISABLED="disabled",ep.COUNTIN="countIn",ep.MESSAGESOURCEADDRESS="messageSourceAddress",ep.PROVISIONWEATHERASSET="ProvisionWeatherAsset",ep.TIMEINJECTIONINTERVAL="timeInjectionInterval",ep.TEMPERATURESETPOINT="temperatureSetpoint",ep.CONSOLEPROVIDERS="consoleProviders",ep.COUNTTOTAL="countTotal",ep.SPACESBUFFER="spacesBuffer",ep.DEVICECONFIG="deviceConfig",ep.SPACESTOTAL="spacesTotal",ep.BINDHOST="bindHost",ep.FANSPEED="fanSpeed",ep.MESSAGECONVERTBINARY="messageConvertBinary",ep.NOTES="notes",ep.MAILFOLDERNAME="mailFolderName",ep.MESSAGEDELIMITERS="messageDelimiters",ep.TEMPERATURE="temperature",ep.SUNZENITH="sunZenith",ep.SNMPVERSIONVALUE="SNMPVersionValue",ep.BRIGHTNESS="brightness",ep.POSTALCODE="postalCode",ep.SPACESOPEN="spacesOpen",ep.HUMIDITY="humidity",ep.SOUNDLEVEL="soundLevel",ep.SECUREMODE="secureMode",ep.DIRECTION="direction",ep.STOPBITS="stopbits",ep.UVINDEX="uVIndex",ep.CONNECTURL="connectURL",ep.CLIENTID="clientId",ep.NATMODE="NATMode",ep.UPDATEONWRITE="updateOnWrite",ep.LASTWILLPAYLOAD="lastWillPayload",ep.GROUPID="groupId",ep.FOLLOWREDIRECTS="followRedirects",ep.SUNAZIMUTH="sunAzimuth",ep.MESSAGECONVERTHEX="messageConvertHex",ep.WEBSOCKETMODE="websocketMode",ep.COLOURTEMPERATURE="colourTemperature",ep.PUBLISHQOS="publishQos",ep.DATABITS="dataBits",(eF=t_||(t_={})).FORMAT="format",eF.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",eF.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",eF.SECRET="secret",eF.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",eF.ATTRIBUTELINKS="attributeLinks",eF.RULERESETIMMEDIATE="ruleResetImmediate",eF.RULESTATE="ruleState",eF.AGENTLINKCONFIG="agentLinkConfig",eF.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",eF.FORECAST="forecast",eF.STOREDATAPOINTS="storeDataPoints",eF.LABEL="label",eF.CONSTRAINTS="constraints",eF.UNITS="units",eF.USERCONNECTED="userConnected",eF.SHOWONDASHBOARD="showOnDashboard",eF.READONLY="readOnly",eF.MULTILINE="multiline",eF.ACCESSPUBLICWRITE="accessPublicWrite",eF.MOMENTARY="momentary",eF.AGENTLINK="agentLink",eF.ACCESSRESTRICTEDREAD="accessRestrictedRead",eF.ACCESSPUBLICREAD="accessPublicRead",(e_=tg||(tg={})).ASSETQUERY="assetQuery",e_.WSURL="WS_URL",e_.COLOURRGB="colourRGB",e_.VALUEFORMAT="valueFormat",e_.TEXT="text",e_.BYTE="byte",e_.USERNAMEANDPASSWORD="usernameAndPassword",e_.HTTPURL="HTTP_URL",e_.ATTRIBUTELINK="attributeLink",e_.ASSETID="assetID",e_.NUMBERMAP="numberMap",e_.HTTPMETHOD="HTTPMethod",e_.ATTRIBUTESTATE="attributeState",e_.POSITIVENUMBER="positiveNumber",e_.POSITIVEINTEGER="positiveInteger",e_.EXECUTIONSTATUS="executionStatus",e_.BIGINTEGER="bigInteger",e_.VALUEDESCRIPTOR="valueDescriptor",e_.PERIODDURATIONISO8601="periodDurationISO8601",e_.LONG="long",e_.DATEANDTIME="dateAndTime",e_.BOOLEANMAP="booleanMap",e_.MQTTQOS="MQTTQos",e_.NEGATIVEINTEGER="negativeInteger",e_.TCPIPPORTNUMBER="TCP_IPPortNumber",e_.GEOJSONPOINT="GEO_JSONPoint",e_.SNMPVERSION="SNMPVersion",e_.ASSETTYPE="assetType",e_.JSONOBJECT="JSONObject",e_.INTEGERMAP="integerMap",e_.BIGNUMBER="bigNumber",e_.IPADDRESS="IPAddress",e_.EMAIL="email",e_.TIMESTAMP="timestamp",e_.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",e_.ATTRIBUTEREFERENCE="attributeReference",e_.UUID="UUID",e_.INTEGER="integer",e_.OAUTHGRANT="oAuthGrant",e_.NUMBER="number",e_.DEVICECONFIGMAP="DeviceConfigMap",e_.TEXTMAP="textMap",e_.WEBSOCKETSUBSCRIPTION="websocketSubscription",e_.BOOLEAN="boolean",e_.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",e_.FORECASTCONFIGURATION="forecastConfiguration",e_.TIMEDURATIONISO8601="timeDurationISO8601",e_.TIMESTAMPISO8601="timestampISO8601",e_.CONSOLEPROVIDERS="consoleProviders",e_.MULTIVALUEDTEXTMAP="multivaluedTextMap",e_.NEGATIVENUMBER="negativeNumber",e_.PARITYBIT="Paritybit",e_.JSON="JSON",e_.CRONEXPRESSION="CRONExpression",e_.INTEGERBYTE="integerByte",e_.AGENTLINK="agentLink",e_.DIRECTION="direction",e_.HOSTORIPADDRESS="hostOrIPAddress",e_.STOPBITS="Stopbits",e_.CALENDAREVENT="calendarEvent",e_.CONNECTIONSTATUS="connectionStatus",e_.VALUECONSTRAINT="valueConstraint",(eg=ty||(ty={})).MONTH="month",eg.MILE_SCANDINAVIAN="mile_scandinavian",eg.VAR="var",eg.OUNCE="ounce",eg.HECTARE="hectare",eg.YARD="yard",eg.YEAR="year",eg.GIGA="giga",eg.JOULE="joule",eg.VOLT="volt",eg.HERTZ="hertz",eg.MILE="mile",eg.DEGREE="degree",eg.KILO="kilo",eg.BTU="btu",eg.TERA="tera",eg.FOOT="foot",eg.MEGA="mega",eg.KELVIN="kelvin",eg.CARBON="carbon",eg.DECIBEL_ATTENUATED="decibel_attenuated",eg.INCH="inch",eg.SQUARED="squared",eg.PERCENTAGE="percentage",eg.IN_HG="inch_mercury",eg.CENTI="centi",eg.GRAM="gram",eg.CUBED="cubed",eg.DAY="day",eg.RADIAN="radian",eg.OHM="ohm",eg.MINUTE="minute",eg.PART_PER_MILLION="ppm",eg.AMP="amp",eg.MASS_POUND="pound",eg.KNOT="knot",eg.METRE="metre",eg.LITRE="litre",eg.FLUID_OUNCE="fluid_ounce",eg.HOUR="hour",eg.ACRE="acre",eg.CELSIUS="celsius",eg.RPM="rpm",eg.PASCAL="pascal",eg.DECIBEL="decibel",eg.LUMEN="lumen",eg.WEEK="week",eg.FAHRENHEIT="fahrenheit",eg.WATT="watt",eg.GALLON="gallon",eg.LUX="lux",eg.MILLI="milli",eg.BAR="bar",eg.HECTO="hecto",eg.PEAK="peak",eg.SECOND="second",eg.MICRO="micro",eg.PER="per",eg.STONE="stone",tv||(tv={});class nC{static getAssetDescriptors(){return nC._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=nC.getValueDescriptor(t)),n=t.jsonType?t:nC.getValueDescriptor(t.type)),!n&&e&&(n=nC.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let o=this.resolveValueTypeFromValue(n);if(!o)return;for(;t>0;)o+="[]",t--;return o}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let o,r;if(t&&"string"!=typeof t)o=t;else{let r=this.getAssetTypeInfo(e||"ThingAsset");if(!r)return[void 0,void 0];"string"==typeof t&&(o=this.getAttributeDescriptor(t,r)),!o&&n&&(o={type:n.type,name:n.name,meta:n.meta})}return o&&(r=this.getValueDescriptor(o.type)),[o,r]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}nC._assetTypeInfos=[],nC._metaItemDescriptors=[],nC._valueDescriptors=[];var nY=n(1001);function nx(e){return(nx="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 nO(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function nB(e){var t=function(e,t){if("object"!=nx(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=nx(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==nx(t)?t:t+""}function nR(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,nB(o.key),o)}}function nP(e,t,n){return t&&nR(e.prototype,t),n&&nR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nj(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nN(e,t){return(nN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nI(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&&nN(e,t)}function nH(e,t){if(t&&("object"==nx(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return nj(e)}function nU(e){return(nU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nW(e,t,n){return(t=nB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function nG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function nq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nG(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}n(4532);var n$={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)}},nV=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nO(this,e),this.init(t,n)}return nP(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||n$,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),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,o){return o&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,nq(nq({},{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}()),nJ=function(){function e(){nO(this,e),this.observers={}}return nP(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.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,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function nK(){var e,t,n=new Promise(function(n,o){e=n,t=o});return n.resolve=e,n.reject=t,n}function nX(e){return null==e?"":""+e}function nQ(e,t,n){function o(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 a=o(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r()?{}:{obj:e,k:o(i.shift())}}function nZ(e,t,n){var o=nQ(e,t,Object);o.obj[o.k]=n}function n0(e,t){var n=nQ(e,t),o=n.obj,r=n.k;if(o)return o[r]}function n1(e,t,n){var o=n0(e,n);return void 0!==o?o:n0(t,n)}function n2(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var n4={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function n3(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return n4[e]}):e}var n6="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,n5=[" ",",","?","!",";"];function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function n7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var n9=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return nO(this,o),t=n.call(this),n6&&nJ.call(nj(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 nP(o,[{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,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,i=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=n0(this.data,a);return s||!i||"string"!=typeof n?s:function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var r=n.split(o),i=t,a=0;a<r.length;++a){if(!i||"string"==typeof i[r[a]]&&a+1<r.length)return;if(void 0===i[r[a]]){for(var s=2,c=r.slice(a,a+s).join(o),d=i[c];void 0===d&&r.length>a+s;)s++,d=i[c=r.slice(a,a+s).join(o)];if(void 0===d)return;if(null===d)return null;if(n.endsWith(c)){if("string"==typeof d)return d;if(c&&"string"==typeof d[c])return d[c]}var l=r.slice(a+s).join(o);if(l)return e(d,l,o);return}i=i[r[a]]}return i}}(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."),o=t,t=a[1]),this.addNamespaces(t),nZ(this.data,a,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)("string"==typeof n[r]||"[object Array]"===Object.prototype.toString.apply(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),o=n,n=t,t=a[1]),this.addNamespaces(t);var s=n0(this.data,a)||{};o?function e(t,n,o){for(var r in n)"__proto__"!==r&&"constructor"!==r&&(r in t?"string"==typeof t[r]||t[r]instanceof String||"string"==typeof n[r]||n[r]instanceof String?o&&(t[r]=n[r]):e(t[r],n[r],o):t[r]=n[r]);return t}(s,n,r):s=n7(n7({},s),n),nZ(this.data,a,s),i.silent||this.emit("added",e,t,n)}},{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)?n7(n7({},{}),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}}]),o}(nJ),oe={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var i=this;return e.forEach(function(e){i.processors[e]&&(t=i.processors[e].process(t,n,o,r))}),t}};function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var oo={},or=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e){var t,r,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nO(this,o),i=n.call(this),n6&&nJ.call(nj(i)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r=nj(i),t.forEach(function(t){e[t]&&(r[t]=e[t])}),i.options=a,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=nV.create("translator"),i}return nP(o,[{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 n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],i=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var o=n5.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===o.length)return!0;var r=new RegExp("(".concat(o.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),i=!r.test(e);if(!i){var a=e.indexOf(n);a>0&&!r.test(e.substring(0,a))&&(i=!0)}return i}(e,n,o);if(i&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var c=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(c[0])>-1)&&(r=c.shift()),e=c.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==nx(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,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),c=s.key,d=s.namespaces,l=d[d.length-1],m=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&"cimode"===m.toLowerCase()){if(f){var u=t.nsSeparator||this.options.nsSeparator;return i?(b.res="".concat(l).concat(u).concat(c),b):"".concat(l).concat(u).concat(c)}return i?(b.res=c,b):c}var b=this.resolve(e,t),h=b&&b.res,p=b&&b.usedKey||c,F=b&&b.exactUsedKey||c,_=Object.prototype.toString.apply(h),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,v="string"!=typeof h&&"boolean"!=typeof h&&"number"!=typeof h;if(y&&h&&v&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(_)&&("string"!=typeof g||"[object Array]"!==_)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var k=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,on(on({},t),{},{ns:d})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");return i?(b.res=k,b):k}if(a){var w="[object Array]"===_,M=w?[]:{},D=w?F:p;for(var E in h)if(Object.prototype.hasOwnProperty.call(h,E)){var L="".concat(D).concat(a).concat(E);M[E]=this.translate(L,on(on({},t),{joinArrays:!1,ns:d})),M[E]===L&&(M[E]=h[E])}h=M}}else if(y&&"string"==typeof g&&"[object Array]"===_)(h=h.join(g))&&(h=this.extendTranslation(h,e,t,n));else{var A=!1,T=!1,S=void 0!==t.count&&"string"!=typeof t.count,C=o.hasDefaultValue(t),Y=S?this.pluralResolver.getSuffix(m,t.count,t):"",x=t["defaultValue".concat(Y)]||t.defaultValue;!this.isValidLookup(h)&&C&&(A=!0,h=x),this.isValidLookup(h)||(T=!0,h=c);var O=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:h,B=C&&x!==h&&this.options.updateMissing;if(T||A||B){if(this.logger.log(B?"updateKey":"missingKey",m,l,c,B?x:h),a){var R=this.resolve(c,on(on({},t),{},{keySeparator:!1}));R&&R.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 P=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&j&&j[0])for(var N=0;N<j.length;N++)P.push(j[N]);else"all"===this.options.saveMissingTo?P=this.languageUtils.toResolveHierarchy(t.lng||this.language):P.push(t.lng||this.language);var I=function(e,n,o){var i=C&&o!==h?o:O;r.options.missingKeyHandler?r.options.missingKeyHandler(e,l,n,i,B,t):r.backendConnector&&r.backendConnector.saveMissing&&r.backendConnector.saveMissing(e,l,n,i,B,t),r.emit("missingKey",e,l,n,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&S?P.forEach(function(e){r.pluralResolver.getSuffixes(e,t).forEach(function(n){I([e],c+n,t["defaultValue".concat(n)]||x)})}):I(P,c,x))}h=this.extendTranslation(h,e,t,b,n),T&&h===c&&this.options.appendNamespaceToMissingKey&&(h="".concat(l,":").concat(c)),(T||A)&&this.options.parseMissingKeyHandler&&(h="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(l,":").concat(c):c,A?h:void 0):this.options.parseMissingKeyHandler(h))}return i?(b.res=h,b):h}},{key:"extendTranslation",value:function(e,t,n,o,r){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,on(on({},this.options.interpolation.defaultVariables),n),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(on(on({},n),{interpolation:on(on({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var c=e.match(this.interpolator.nestingRegexp);a=c&&c.length}var d=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=on(on({},this.options.interpolation.defaultVariables),d)),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,o=Array(e),a=0;a<e;a++)o[a]=arguments[a];return r&&r[0]===o[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(o[0]," in key: ").concat(t[0])),null):i.translate.apply(i,o.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var m=n.postProcess||this.options.postProcess,f="string"==typeof m?[m]:m;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=oe.handle(f,e,t,this.options&&this.options.postProcessPassResolved?on({i18nResolved:o},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,o,r,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s),d=c.key;n=d;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var m=void 0!==s.count&&"string"!=typeof s.count,f=m&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),u=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,b=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach(function(e){a.isValidLookup(t)||(i=e,!oo["".concat(b[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(oo["".concat(b[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" 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(n){if(!a.isValidLookup(t)){r=n;var i,c=[d];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(c,d,n,e,s);else{m&&(l=a.pluralResolver.getSuffix(n,s.count,s));var l,b="".concat(a.options.pluralSeparator,"zero");if(m&&(c.push(d+l),f&&c.push(d+b)),u){var h="".concat(d).concat(a.options.contextSeparator).concat(s.context);c.push(h),m&&(c.push(h+l),f&&c.push(h+b))}}for(;i=c.pop();)a.isValidLookup(t)||(o=i,t=a.getResource(n,e,i,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:o,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,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}(nJ);function oi(e){return e.charAt(0).toUpperCase()+e.slice(1)}var oa=function(){function e(t){nO(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nV.create("languageUtils")}return nP(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"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oi(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=oi(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=oi(n[2].toLowerCase()))),n.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,n=this;return e?(e.forEach(function(e){if(!t){var o=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(o))&&(t=o)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(o))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 n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.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)),o.forEach(function(e){0>r.indexOf(e)&&i(n.formatLanguageCode(e))}),r}}]),e}(),os=[{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}],oc={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)}},od=["v1","v2","v3"],ol={zero:0,one:1,two:2,few:3,many:4,other:5},om=function(){function e(t){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nO(this,e),this.languageUtils=t,this.options=o,this.logger=nV.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=(n={},os.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:oc[e.fc]}})}),n)}return nP(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]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(e,t){return ol[e]-ol[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):o.numbers.map(function(o){return t.getSuffix(e,o,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var i=function(){return n.options.prepend&&r.toString()?n.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&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!od.includes(this.options.compatibilityJSON)}}]),e}();function of(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ou(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?of(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):of(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ob=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nO(this,e),this.logger=nV.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return nP(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:n3,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?n2(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?n2(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?n2(t.nestingPrefix):t.nestingPrefixEscaped||n2("$t("),this.nestingSuffix=t.nestingSuffix?n2(t.nestingSuffix):t.nestingSuffixEscaped||n2(")"),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 n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,i,a,s=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function d(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(0>e.indexOf(s.formatSeparator)){var r=n1(t,c,e);return s.alwaysFormat?s.format(r,void 0,n,ou(ou(ou({},o),t),{},{interpolationkey:e})):r}var i=e.split(s.formatSeparator),a=i.shift().trim(),d=i.join(s.formatSeparator).trim();return s.format(n1(t,c,a),d,n,ou(ou(ou({},o),t),{},{interpolationkey:a}))};this.resetRegExp();var m=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return d(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?d(s.escape(e)):d(e)}}].forEach(function(t){for(a=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(i=l(n)))if("function"==typeof m){var c=m(e,r,o);i="string"==typeof c?c:""}else if(o&&o.hasOwnProperty(n))i="";else if(f){i=r[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),i="";else"string"==typeof i||s.useRawValueToEscape||(i=nX(i));var d=t.safeValue(i);if(e=e.replace(r[0],d),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,o,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ou({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0];var i=(r=this.interpolate(r,a)).match(/'/g),s=r.match(/"/g);(i&&i.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{a=JSON.parse(r),t&&(a=ou(ou({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],d=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=l.shift(),c=l,d=!0}if((o=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=nX(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),d&&(o=c.reduce(function(e,t){return r.format(e,t,i.lng,ou(ou({},i),{},{interpolationkey:n[1].trim()}))},o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function oh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function op(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oh(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oh(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oF(e){var t={};return function(n,o,r){var i=o+JSON.stringify(r),a=t[i];return a||(a=e(o,r),t[i]=a),a(n)}}var o_=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};nO(this,e),this.logger=nV.create("formatter"),this.options=t,this.formats={number:oF(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:oF(function(e,t){var n=new Intl.NumberFormat(e,op(op({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:oF(function(e,t){var n=new Intl.DateTimeFormat(e,op({},t));return function(e){return n.format(e)}}),relativetime:oF(function(e,t){var n=new Intl.RelativeTimeFormat(e,op({},t));return function(e){return n.format(e,t.range||"day")}}),list:oF(function(e,t){var n=new Intl.ListFormat(e,op({},t));return function(e){return n.format(e)}})},this.init(t)}return nP(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=oF(t)}},{key:"format",value:function(e,t,n,o){var r=this;return t.split(this.formatSeparator).reduce(function(e,t){var i=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);"currency"===t&&0>r.indexOf(":")?n.currency||(n.currency=r.trim()):"relativetime"===t&&0>r.indexOf(":")?n.range||(n.range=r.trim()):r.split(";").forEach(function(e){if(e){var t,o=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 nz(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)?nz(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=o[0],i=o.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}}(t),a=i.formatName,s=i.formatOptions;if(r.formats[a]){var c=e;try{var d=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},l=d.locale||d.lng||o.locale||o.lng||n;c=r.formats[a](e,l,op(op(op({},s),o),d))}catch(e){r.logger.warn(e)}return c}return r.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function og(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?og(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):og(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ov=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(e,t,r){var i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return nO(this,o),i=n.call(this),n6&&nJ.call(nj(i)),i.backend=e,i.store=t,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=nV.create("backendConnector"),i.waitingReads=[],i.maxParallelReads=a.maxParallelReads||10,i.readingCalls=0,i.maxRetries=a.maxRetries>=0?a.maxRetries:5,i.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return nP(o,[{key:"queueLoad",value:function(e,t,n,o){var r=this,i={},a={},s={},c={};return e.forEach(function(e){var o=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===a[s]&&(a[s]=!0):(r.state[s]=1,o=!1,void 0===a[s]&&(a[s]=!0),void 0===i[s]&&(i[s]=!0),void 0===c[t]&&(c[t]=!0)))}),o||(s[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],i=o[1];t&&this.emit("failedLoading",r,i,t),n&&this.store.addResourceBundle(r,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var o,s,c,d;o=n.loaded,(c=(s=nQ(o,[r],Object)).obj)[d=s.k]=c[d]||[],c[d].push(i),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,c){if(o.readingCalls--,o.waitingReads.length>0){var d=o.waitingReads.shift();o.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}s&&c&&r<o.maxRetries?setTimeout(function(){o.read.call(o,e,t,n,r+1,2*i,a)},i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,o=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,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,function(o,a){o&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(r," failed"),o),!o&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(r),a),t.loaded(e,o,a)})}},{key:"saveMissing",value:function(e,t,n,o,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(n,'" 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==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,oy(oy({},i),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),o}(nJ);function ok(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 ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function oM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(n),!0).forEach(function(t){nW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oD(){}var oE=function(e){nI(o,e);var t,n=(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,n=nU(o);return e=t?Reflect.construct(n,arguments,nU(this).constructor):n.apply(this,arguments),nH(this,e)});function o(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(nO(this,o),t=n.call(this),n6&&nJ.call(nj(t)),t.options=ok(r),t.services={},t.logger=nV,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=nj(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),nH(t,nj(t));setTimeout(function(){t.init(r,i)},0)}return t}return nP(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=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 o={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"===nx(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===nx(e[2])||"object"===nx(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){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=oM(oM(oM({},o),this.options),ok(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=oM(oM({},o.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?nV.init(r(this.modules.logger),this.options):nV.init(null,this.options),this.modules.formatter?i=this.modules.formatter:"u">typeof Intl&&(i=o_);var i,a=new oa(this.options);this.store=new n9(this.options.resources,this.options);var s=this.services;s.logger=nV,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new om(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),i&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(s.formatter=r(i),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ob(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ov(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.languageDetector&&(s.languageDetector=r(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=r(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new or(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];e.emit.apply(e,[t].concat(o))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=oD),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&"dev"!==c[0]&&(this.options.lng=c[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 n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var d=nK(),l=function(){var t=function(t,o){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),d.resolve(o),n(t,o)};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?l():setTimeout(l,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oD,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>i.indexOf(e)&&i.push(e)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(i,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)})}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=nK();return e||(e=this.languages),t||(t=this.options.ns),n||(n=oD),this.services.backendConnector.reload(e,t,function(e){o.resolve(),n(e)}),o}},{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&&oe.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 n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=nK();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},i=function(e,i){i?(r(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,o.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var o="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);o&&(n.language||r(o),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,function(e){i(e,o)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){if("object"!==nx(r)){for(var i,a=arguments.length,s=Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];i=o.options.overloadTranslationOptionHandler([t,r].concat(s))}else i=oM({},r);i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,i.keyPrefix=i.keyPrefix||n||e.keyPrefix;var d=o.options.keySeparator||".",l=i.keyPrefix?"".concat(i.keyPrefix).concat(d).concat(t):t;return o.t(l,i)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,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,n=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 o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var a=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===o||2===o};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!r||a(i,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=nK();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){o.resolve(),t&&t(e)}),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=nK();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter(function(e){return 0>o.indexOf(e)});return r.length?(this.options.preload=o.concat(r),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oD,r=oM(oM(oM({},this.options),t),{isClone:!0}),i=new o(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=oM({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new or(i.services,i.options),i.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];i.emit.apply(i,[e].concat(n))}),i.init(r,n),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}}}]),o}(nJ);nW(oE,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new oE(e,t)});var oL=oE.createInstance();oL.createInstance=oE.createInstance,oL.createInstance,oL.init,oL.loadResources,oL.reloadResources,oL.use,oL.changeLanguage,oL.getFixedT,oL.t,oL.exists,oL.setDefaultNamespace,oL.hasLoadedNamespace,oL.loadNamespaces,oL.loadLanguages;let oA=oL;var oT=n(8183),oS=n.n(oT),oC=n(4867),oY=n.n(oC);n(3472);class ox{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 oO{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,o,r,i,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(o=this.realm)?void 0:o.name)&&e.realm!==this.realm.name||(null==(r=this.parents)?void 0:r.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(i=this.paths)?void 0:i.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>oO._evalValuePredicate(e.name,t)))&&(!this.attributes||oO._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!oO._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?oO._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let o;if(null==e)return!1;let r=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),i=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":o=r.startsWith(i);break;case"END":o=r.endsWith(i);break;case"CONTAINS":o=r.includes(i);break;default:o=r===i}return t.negate?!o:o}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,o;let r=null==(n=t.name)?void 0:n.value;if(!r)return!0;let i=null==(o=e.attributes)?void 0:o[r];if(!i)return!!t.negated;let a=!t.value||oO._evalValuePredicate(i.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,o,r;let i=null!=(n=t.operator)?n:"AND",a=[...(null!=(o=t.items)?o:[]).map(t=>oO._evalPredicate(e,t)),...(null!=(r=t.groups)?r:[]).map(t=>oO._evalGroup(e,t))];return!a.length||("OR"===i?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>oO._collectNames(e))]}}oO._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var oB=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((o=o.apply(e,t||[])).next())})};let oR=n(4461);class oP{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let o=new URLSearchParams(window.location.search),r=o.get("consoleName"),i=o.get("consoleVersion"),a=o.get("consolePlatform"),s=o.get("consoleProviders"),c=o.get("consoleAutoEnable"),d=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=d;let l=oP._createConsoleRegistration(),m=window.localStorage.getItem(this._storageKey);if(m)try{let e=JSON.parse(m);e.id&&(l.id=e.id),e.name&&(l.name=e.name),e.providers&&(l.providers=e.providers),e.apps&&(l.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let f=l.providers;for(let e of(l.providers={},d)){let t=f&&f.hasOwnProperty(e)?f[e]:{enabled:!1,disabled:!1};l.providers[e]=t}let u=se.getAppName();u.length>0&&0>l.apps.indexOf(u)&&l.apps.push(u),this._registration=l,r&&(l.name=r),i&&(l.version=i),a&&(l.platform=a),c&&(this._autoEnable="TRUE"===c||"true"===c)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let 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 oB(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 oB(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 oB(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},o=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=o.hasPermission,this._registration.providers[e].success=o.success,this._registration.providers[e].enabled=o.success,this._registration.providers[e].data=o.data;let r=this._pendingProviderEnables.indexOf(e);return r>=0&&(this._pendingProviderEnables.splice(r,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),o})}disableProvider(e){return oB(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 oB(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let o=new ox,r=()=>{delete this._pendingProviderPromises[n],o.reject("No response from provider")};return this._pendingProviderPromises[n]=[o,window.setTimeout(r,5e3)],this._doSendProviderMessage(e),o.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>oB(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 oB(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield se.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&oP._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return oB(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,o=t.action,r=this._pendingProviderPromises[n+o];r&&(window.clearTimeout(r[1]),delete this._pendingProviderPromises[n+o],r[0].resolve(t));let i=this._providerMessageListeners[n+o];i&&i(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:oR.name,version:oR.version,platform:oR.os.toString(),apps:[],model:((oR.manufacturer?oR.manufacturer+" ":"")+(oR.product?oR.product:"")).trim()}}_initialiseProvider(e){return oB(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 oj(e,t){return function(){return e.apply(t,arguments)}}let{toString:oN}=Object.prototype,{getPrototypeOf:oI}=Object,{iterator:oH,toStringTag:oU}=Symbol,oW=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),oz=(e,t)=>{let n=e,o=[];for(;null!=n&&n!==Object.prototype&&-1===o.indexOf(n);){if(o.push(n),oW(n,t))return!0;n=oI(n)}return!1},oG=(t=Object.create(null),e=>{let n=oN.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}),oq=e=>(e=e.toLowerCase(),t=>oG(t)===e),o$=e=>t=>typeof t===e,{isArray:oV}=Array,oJ=o$("undefined");function oK(e){return null!==e&&!oJ(e)&&null!==e.constructor&&!oJ(e.constructor)&&oZ(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let oX=oq("ArrayBuffer"),oQ=o$("string"),oZ=o$("function"),o0=o$("number"),o1=e=>null!==e&&"object"==typeof e,o2=e=>{if(!o1(e))return!1;let t=oI(e);return(null===t||t===Object.prototype||null===oI(t))&&!oz(e,oU)&&!oz(e,oH)},o4=oq("Date"),o3=oq("File"),o6=oq("Blob"),o5=oq("FileList"),o8="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},o7=void 0!==o8.FormData?o8.FormData:void 0,o9=oq("URLSearchParams"),[re,rt,rn,ro]=["ReadableStream","Request","Response","Headers"].map(oq);function rr(e,t,{allOwnKeys:n=!1}={}){let o,r;if(null!=e)if("object"!=typeof e&&(e=[e]),oV(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{let r;if(oK(e))return;let i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;for(o=0;o<a;o++)r=i[o],t.call(null,e[r],r,e)}}function ri(e,t){let n;if(oK(e))return null;t=t.toLowerCase();let o=Object.keys(e),r=o.length;for(;r-- >0;)if(t===(n=o[r]).toLowerCase())return n;return null}let ra="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,rs=e=>!oJ(e)&&e!==ra,rc=(r="u">typeof Uint8Array&&oI(Uint8Array),e=>r&&e instanceof r),rd=oq("HTMLFormElement"),{propertyIsEnumerable:rl}=Object.prototype,rm=oq("RegExp"),rf=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),o={};rr(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(o[r]=i||n)}),Object.defineProperties(e,o)},ru=oq("AsyncFunction"),rb=(s="function"==typeof setImmediate,c=oZ(ra.postMessage),s?setImmediate:c?(d=`axios@${Math.random()}`,l=[],ra.addEventListener("message",({source:e,data:t})=>{e===ra&&t===d&&l.length&&l.shift()()},!1),e=>{l.push(e),ra.postMessage(d,"*")}):e=>setTimeout(e)),rh="u">typeof queueMicrotask?queueMicrotask.bind(ra):"u">typeof process&&process.nextTick||rb,rp=e=>null!=e&&oZ(e[oH]),rF={isArray:oV,isArrayBuffer:oX,isBuffer:oK,isFormData:e=>{if(!e)return!1;if(o7&&e instanceof o7)return!0;let t=oI(e);if(!t||t===Object.prototype||!oZ(e.append))return!1;let n=oG(e);return"formdata"===n||"object"===n&&oZ(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&oX(e.buffer)},isString:oQ,isNumber:o0,isBoolean:e=>!0===e||!1===e,isObject:o1,isPlainObject:o2,isEmptyObject:e=>{if(!o1(e)||oK(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:re,isRequest:rt,isResponse:rn,isHeaders:ro,isUndefined:oJ,isDate:o4,isFile:o3,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:o6,isRegExp:rm,isFunction:oZ,isStream:e=>o1(e)&&oZ(e.pipe),isURLSearchParams:o9,isTypedArray:rc,isFileList:o5,forEach:rr,merge:function e(...t){let{caseless:n,skipUndefined:o}=rs(this)&&this||{},r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let a=n&&"string"==typeof i&&ri(r,i)||i,s=oW(r,a)?r[a]:void 0;o2(s)&&o2(t)?r[a]=e(s,t):o2(t)?r[a]=e({},t):oV(t)?r[a]=t.slice():o&&oJ(t)||(r[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||oK(n)||(rr(n,i),"object"!=typeof n||oV(n)))continue;let o=Object.getOwnPropertySymbols(n);for(let e=0;e<o.length;e++){let t=o[e];rl.call(n,t)&&i(n[t],t)}}return r},extend:(e,t,n,{allOwnKeys:o}={})=>(rr(t,(t,o)=>{n&&oZ(t)?Object.defineProperty(e,o,{__proto__:null,value:oj(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,o)=>{let r,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(r=Object.getOwnPropertyNames(e)).length;i-- >0;)a=r[i],(!o||o(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&oI(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:oG,kindOfTest:oq,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let o=e.indexOf(t,n);return -1!==o&&o===n},toArray:e=>{if(!e)return null;if(oV(e))return e;let t=e.length;if(!o0(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,o=(e&&e[oH]).call(e);for(;(n=o.next())&&!n.done;){let o=n.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let n,o=[];for(;null!==(n=e.exec(t));)o.push(n);return o},isHTMLForm:rd,hasOwnProperty:oW,hasOwnProp:oW,hasOwnInPrototypeChain:oz,getSafeProp:(e,t)=>null!=e&&oz(e,t)?e[t]:void 0,reduceDescriptors:rf,freezeMethods:e=>{rf(e,(t,n)=>{if(oZ(e)&&["arguments","caller","callee"].includes(n))return!1;if(oZ(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(oV(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:ri,global:ra,isContextDefined:rs,isSpecCompliantForm:function(e){return!!(e&&oZ(e.append)&&"FormData"===e[oU]&&e[oH])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(o1(e)){if(t.has(e))return;if(oK(e))return e;if(!("toJSON"in e)){t.add(e);let o=oV(e)?[]:{};return rr(e,(e,t)=>{let r=n(e);oJ(r)||(o[t]=r)}),t.delete(e),o}}return e};return n(e)},isAsyncFn:ru,isThenable:e=>e&&(o1(e)||oZ(e))&&oZ(e.then)&&oZ(e.catch),setImmediate:rb,asap:rh,isIterable:rp,isSafeIterable:e=>null!=e&&oz(e,oH)&&rp(e)},r_=rF.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"]),rg=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ry=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function rv(e,t){return rF.isArray(e)?e.map(e=>rv(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function rk(e){let t=Object.create(null);return rF.forEach(e.toJSON(),(e,n)=>{t[n]=rv(e,ry)}),t}let rw=Symbol("internals");function rM(e){return e&&String(e).trim().toLowerCase()}function rD(e){return!1===e||null==e?e:rF.isArray(e)?e.map(rD):rv(String(e),rg)}function rE(e,t,n,o,r){if(rF.isFunction(o))return o.call(this,t,n);if(r&&(t=n),rF.isString(t)){if(rF.isString(o))return -1!==t.indexOf(o);if(rF.isRegExp(o))return o.test(t)}}class rL{constructor(e){e&&this.set(e)}set(e,t,n){let o=this;function r(e,t,n){let r=rM(t);if(!r)return;let i=rF.findKey(o,r);i&&void 0!==o[i]&&!0!==n&&(void 0!==n||!1===o[i])||(o[i||t]=rD(e))}let i=(e,t)=>rF.forEach(e,(e,n)=>r(e,n,t));if(rF.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let o;if(rF.isString(e)&&(e=e.trim())&&(o=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim()))){var a;let n,o,r,s;i((s={},(a=e)&&a.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),o=e.substring(r+1).trim(),!n||s[n]&&r_[n]||("set-cookie"===n?s[n]?s[n].push(o):s[n]=[o]:s[n]=s[n]?s[n]+", "+o:o)}),s),t)}else if(rF.isObject(e)&&rF.isSafeIterable(e)){let n=Object.create(null),o,r;for(let t of e){if(!rF.isArray(t))throw TypeError("Object iterator must return a key-value pair");r=t[0],rF.hasOwnProp(n,r)?(o=n[r],n[r]=rF.isArray(o)?[...o,t[1]]:[o,t[1]]):n[r]=t[1]}i(n,t)}else null!=e&&r(t,e,n)}return this}get(e,t){if(e=rM(e)){let n=rF.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)n[t[1]]=t[2];return n}if(rF.isFunction(t))return t.call(this,e,n);if(rF.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=rM(e)){let n=rF.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||rE(this,this[n],n,t)))}return!1}delete(e,t){let n=this,o=!1;function r(e){if(e=rM(e)){let r=rF.findKey(n,e);r&&(!t||rE(n,n[r],r,t))&&(delete n[r],o=!0)}}return rF.isArray(e)?e.forEach(r):r(e),o}clear(e){let t=Object.keys(this),n=t.length,o=!1;for(;n--;){let r=t[n];(!e||rE(this,this[r],r,e,!0))&&(delete this[r],o=!0)}return o}normalize(e){let t=this,n={};return rF.forEach(this,(o,r)=>{let i=rF.findKey(n,r);if(i){t[i]=rD(o),delete t[r];return}let a=e?r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(r).trim();a!==r&&delete t[r],t[a]=rD(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return rF.forEach(this,(n,o)=>{null!=n&&!1!==n&&(t[o]=e&&rF.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){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 n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[rw]=this[rw]={accessors:{}}).accessors,n=this.prototype;function o(e){let o=rM(e);if(!t[o]){let r;r=rF.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+r,{__proto__:null,value:function(n,o,r){return this[t].call(this,e,n,o,r)},configurable:!0})}),t[o]=!0}}return rF.isArray(e)?e.forEach(o):o(e),this}}rL.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),rF.reduceDescriptors(rL.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),rF.freezeMethods(rL);class rA extends Error{static from(e,t,n,o,r,i){let a=new rA(e.message,t||e.code,n,o,r);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,o,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r,this.status=r.status)}toJSON(){let e,t,n,o=this.config,r=o&&rF.hasOwnProp(o,"redact")?o.redact:void 0,i=rF.isArray(r)&&r.length>0?(e=new Set(r.map(e=>String(e).toLowerCase())),t=[],(n=o=>{let r;if(null===o||"object"!=typeof o||rF.isBuffer(o))return o;if(-1===t.indexOf(o)){if(o instanceof rL&&(o=o.toJSON()),t.push(o),rF.isArray(o))r=[],o.forEach((e,t)=>{let o=n(e);rF.isUndefined(o)||(r[t]=o)});else{if(!rF.isPlainObject(o)&&function(e){if(rF.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(rF.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(o))return t.pop(),o;for(let[t,i]of(r=Object.create(null),Object.entries(o))){let o=e.has(t.toLowerCase())?"[REDACTED ****]":n(i);rF.isUndefined(o)||(r[t]=o)}}return t.pop(),r}})(o)):rF.toJSONObject(o);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}rA.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",rA.ERR_BAD_OPTION="ERR_BAD_OPTION",rA.ECONNABORTED="ECONNABORTED",rA.ETIMEDOUT="ETIMEDOUT",rA.ECONNREFUSED="ECONNREFUSED",rA.ERR_NETWORK="ERR_NETWORK",rA.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",rA.ERR_DEPRECATED="ERR_DEPRECATED",rA.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",rA.ERR_BAD_REQUEST="ERR_BAD_REQUEST",rA.ERR_CANCELED="ERR_CANCELED",rA.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",rA.ERR_INVALID_URL="ERR_INVALID_URL",rA.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let rT=rA;function rS(e){return rF.isPlainObject(e)||rF.isArray(e)}function rC(e){return rF.endsWith(e,"[]")?e.slice(0,-2):e}function rY(e,t,n){return e?e.concat(t).map(function(e,t){return e=rC(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let rx=rF.toFlatObject(rF,{},null,function(e){return/^is[A-Z]/.test(e)}),rO=function(e,t,n){if(!rF.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(n=rF.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!rF.isUndefined(t[e])})).metaTokens,r=n.visitor||u,i=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,c=void 0===n.maxDepth?100:n.maxDepth,d=s&&rF.isSpecCompliantForm(t),l=[];if(!rF.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(rF.isDate(e))return e.toISOString();if(rF.isBoolean(e))return e.toString();if(!d&&rF.isBlob(e))throw new rT("Blob is not supported. Use a Buffer instead.");if(rF.isArrayBuffer(e)||rF.isTypedArray(e)){if(d&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new rT("Blob is not supported. Use a Buffer instead.",rT.ERR_NOT_SUPPORT)}return e}function f(e){if(e>c)throw new rT("Object is too deeply nested ("+e+" levels). Max depth: "+c,rT.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u(e,n,r){let s=e;if(rF.isReactNative(t)&&rF.isReactNativeBlob(e))return t.append(rY(r,n,i),m(e)),!1;if(e&&!r&&"object"==typeof e)if(rF.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(c===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!rF.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),f(1+t.length-1),n})}(e);else{var d;if(rF.isArray(e)&&(d=e,rF.isArray(d)&&!d.some(rS))||(rF.isFileList(e)||rF.endsWith(n,"[]"))&&(s=rF.toArray(e)))return n=rC(n),s.forEach(function(e,o){rF.isUndefined(e)||null===e||t.append(!0===a?rY([n],o,i):null===a?n:n+"[]",m(e))}),!1}return!!rS(e)||(t.append(rY(r,n,i),m(e)),!1)}let b=Object.assign(rx,{defaultVisitor:u,convertValue:m,isVisitable:rS});if(!rF.isObject(e))throw TypeError("data must be an object");return!function e(n,o,i=0){if(!rF.isUndefined(n)){if(f(i),-1!==l.indexOf(n))throw Error("Circular reference detected in "+o.join("."));l.push(n),rF.forEach(n,function(n,a){!0===(!(rF.isUndefined(n)||null===n)&&r.call(t,n,rF.isString(a)?a.trim():a,o,b))&&e(n,o?o.concat(a):[a],i+1)}),l.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&&rO(e,this,t)}let rP=rR.prototype;function rj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function rN(e,t,n){let o;if(!t)return e;e=e||"";let r=rF.isFunction(n)?{serialize:n}:n,i=rF.getSafeProp(r,"encode")||rj,a=rF.getSafeProp(r,"serialize");if(o=a?a(t,r):rF.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("?")?"?":"&")+o}return e}rP.append=function(e,t){this._pairs.push([e,t])},rP.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 rI=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){rF.forEach(this.handlers,function(t){null!==t&&e(t)})}},rH={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},rU="u">typeof URLSearchParams?URLSearchParams:rR,rW="u">typeof FormData?FormData:null,rz="u">typeof Blob?Blob:null,rG="u">typeof window&&"u">typeof document,rq="object"==typeof navigator&&navigator||void 0,r$=rG&&(!rq||0>["ReactNative","NativeScript","NS"].indexOf(rq.product)),rV="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,rJ=rG&&window.location.href||"http://localhost",rK={...tD,isBrowser:!0,classes:{URLSearchParams:rU,FormData:rW,Blob:rz},protocols:["http","https","file","blob","url","data"]};function rX(e){if(e>100)throw new rT("FormData field is too deeply nested ("+e+" levels). Max depth: 100",rT.ERR_FORM_DATA_DEPTH_EXCEEDED)}let rQ=function(e){if(rF.isFormData(e)&&rF.isFunction(e.entries)){let t={};return rF.forEachEntry(e,(e,n)=>{!function e(t,n,o,r){rX(r);let i=t[r++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),s=r>=t.length;return(i=!i&&rF.isArray(o)?o.length:i,s)?rF.hasOwnProp(o,i)?o[i]=rF.isArray(o[i])?o[i].concat(n):[o[i],n]:o[i]=n:(rF.hasOwnProp(o,i)&&rF.isObject(o[i])||(o[i]=[]),e(t,n,o[i],r)&&rF.isArray(o[i])&&(o[i]=function(e){let t,n,o={},r=Object.keys(e),i=r.length;for(t=0;t<i;t++)o[n=r[t]]=e[n];return o}(o[i]))),!a}(function(e){let t,n=[],o=/\w+|\[(\w*)]/g;for(;null!==(t=o.exec(e));)rX(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},rZ=(e,t)=>null!=e&&rF.hasOwnProp(e,t)?e[t]:void 0,r0={transitional:rH,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,o=t.getContentType()||"",r=o.indexOf("application/json")>-1,i=rF.isObject(e);if(i&&rF.isHTMLForm(e)&&(e=new FormData(e)),rF.isFormData(e))return r?JSON.stringify(rQ(e)):e;if(rF.isArrayBuffer(e)||rF.isBuffer(e)||rF.isStream(e)||rF.isFile(e)||rF.isBlob(e)||rF.isReadableStream(e))return e;if(rF.isArrayBufferView(e))return e.buffer;if(rF.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=rZ(this,"formSerializer");if(o.indexOf("application/x-www-form-urlencoded")>-1)return rO(e,new rK.classes.URLSearchParams,{visitor:function(e,t,n,o){return rK.isNode&&rF.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=rF.isFileList(e))||o.indexOf("multipart/form-data")>-1){let o=rZ(this,"env"),r=o&&o.FormData;return rO(n?{"files[]":e}:e,r&&new r,t)}}if(i||r){t.setContentType("application/json",!1);var a=e;if(rF.isString(a))try{return(0,JSON.parse)(a),rF.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=rZ(this,"transitional")||r0.transitional,n=t&&t.forcedJSONParsing,o=rZ(this,"responseType"),r="json"===o;if(rF.isResponse(e)||rF.isReadableStream(e))return e;if(e&&rF.isString(e)&&(n&&!o||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,rZ(this,"parseReviver"))}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw rT.from(e,rT.ERR_BAD_RESPONSE,this,null,rZ(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rK.classes.FormData,Blob:rK.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function r1(e,t){let n=this||r0,o=t||n,r=rL.from(o.headers),i=o.data;return rF.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function r2(e){return!!(e&&e.__CANCEL__)}rF.forEach(["delete","get","head","post","put","patch","query"],e=>{r0.headers[e]={}});let r4=class extends rT{constructor(e,t,n){super(null==e?"canceled":e,rT.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function r3(e,t,n){let o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new rT("Request failed with status code "+n.status,n.status>=400&&n.status<500?rT.ERR_BAD_REQUEST:rT.ERR_BAD_RESPONSE,n.config,n.request,n))}let r6=function(e,t){let n,o=Array(e=e||10),r=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){let c=Date.now(),d=r[a];n||(n=c),o[i]=s,r[i]=c;let l=a,m=0;for(;l!==i;)m+=o[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),c-n<t)return;let f=d&&c-d;return f?Math.round(1e3*m/f):void 0}},r5=function(e,t){let n,o,r=0,i=1e3/t,a=(t,i=Date.now())=>{r=i,n=null,o&&(clearTimeout(o),o=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-r;s>=i?a(e,t):(n=e,o||(o=setTimeout(()=>{o=null,a(n)},i-s)))},()=>n&&a(n)]},r8=(e,t,n=3)=>{let o=0,r=r6(50,250);return r5(n=>{if(!n||"number"!=typeof n.loaded)return;let i=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(i,a):i,c=Math.max(0,s-o),d=r(c);o=Math.max(o,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:d||void 0,estimated:d&&a?(a-s)/d:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},r7=(e,t)=>{let n=null!=e;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]},r9=e=>(...t)=>rF.asap(()=>e(...t)),ie=rK.hasStandardBrowserEnv?(i=new URL(rK.origin),a=rK.navigator&&/(msie|trident)/i.test(rK.navigator.userAgent),e=>(e=new URL(e,rK.origin),i.protocol===e.protocol&&i.host===e.host&&(a||i.port===e.port))):()=>!0,it=rK.hasStandardBrowserEnv?{write(e,t,n,o,r,i,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];rF.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),rF.isString(o)&&s.push(`path=${o}`),rF.isString(r)&&s.push(`domain=${r}`),!0===i&&s.push("secure"),rF.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].replace(/^\s+/,""),r=o.indexOf("=");if(-1!==r&&o.slice(0,r)===e)try{return decodeURIComponent(o.slice(r+1))}catch(e){return o.slice(r+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},io=/^https?:(?!\/\/)/i,ir=/[\t\n\r]/g;function ii(e,t){if("string"==typeof e&&io.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(ir,"")))throw new rT('Invalid URL: missing "//" after protocol',rT.ERR_INVALID_URL,t)}function ia(e,t,n,o){ii(t,o);let r=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(r||!1===n)?(ii(e,o),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let is=e=>e instanceof rL?{...e}:e;function ic(e,t){e=e||{},t=t||{};let n=Object.create(null);function o(e,t,n,o){return rF.isPlainObject(e)&&rF.isPlainObject(t)?rF.merge.call({caseless:o},e,t):rF.isPlainObject(t)?rF.merge({},t):rF.isArray(t)?t.slice():t}function r(e,t,n,r){return rF.isUndefined(t)?rF.isUndefined(e)?void 0:o(void 0,e,n,r):o(e,t,n,r)}function i(e,t){if(!rF.isUndefined(t))return o(void 0,t)}function a(e,t){return rF.isUndefined(t)?rF.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function s(n,r,i){return rF.hasOwnProp(t,i)?o(n,r):rF.hasOwnProp(e,i)?o(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>r(is(e),is(t),n,!0)};return rF.forEach(Object.keys({...e,...t}),function(o){if("__proto__"===o||"constructor"===o||"prototype"===o)return;let i=rF.hasOwnProp(c,o)?c[o]:r,a=i(rF.hasOwnProp(e,o)?e[o]:void 0,rF.hasOwnProp(t,o)?t[o]:void 0,o);rF.isUndefined(a)&&i!==s||(n[o]=a)}),rF.hasOwnProp(t,"validateStatus")&&rF.isUndefined(t.validateStatus)&&!1===function(n){let o=rF.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!rF.isUndefined(o)){if(!rF.isPlainObject(o))return;else if(rF.hasOwnProp(o,n))return o[n]}let r=rF.hasOwnProp(e,"transitional")?e.transitional:void 0;if(rF.isPlainObject(r)&&rF.hasOwnProp(r,n))return r[n]}("validateStatusUndefinedResolves")&&(rF.hasOwnProp(e,"validateStatus")?n.validateStatus=o(void 0,e.validateStatus):delete n.validateStatus),n}let id=["content-type","content-length"],il=function(e){let t=ic({},e),n=e=>rF.hasOwnProp(t,e)?t[e]:void 0,o=n("data"),r=n("withXSRFToken"),i=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),c=n("auth"),d=n("baseURL"),l=n("allowAbsoluteUrls"),m=n("url");if(t.headers=s=rL.from(s),t.url=rN(ia(d,m,l,t),n("params"),n("paramsSerializer")),c){let t=rF.getSafeProp(c,"username")||"",n=rF.getSafeProp(c,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw rT.from(t,rT.ERR_BAD_OPTION_VALUE,e)}}if(rF.isFormData(o))if(rK.hasStandardBrowserEnv||rK.hasStandardBrowserWebWorkerEnv||rF.isReactNative(o))s.setContentType(void 0);else{var f,u;rF.isFunction(o.getHeaders)&&(f=s,u=o.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?f.set(u):Object.entries(u||{}).forEach(([e,t])=>{id.includes(e.toLowerCase())&&f.set(e,t)}))}if(rK.hasStandardBrowserEnv&&(rF.isFunction(r)&&(r=r(t)),!0===r||null==r&&ie(t.url))){let e=i&&a&&it.read(a);e&&s.set(i,e)}return t},im="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var o;let r,i,a,s,c,d,l=il(e),m=l.data,f=rL.from(l.headers).normalize(),{responseType:u,onUploadProgress:b,onDownloadProgress:h}=l;function p(){s&&s(),c&&c(),l.cancelToken&&l.cancelToken.unsubscribe(r),l.signal&&l.signal.removeEventListener("abort",r)}let F=new XMLHttpRequest;function _(){if(!F)return;let o=rL.from("getAllResponseHeaders"in F&&F.getAllResponseHeaders());r3(function(e){t(e),p()},function(e){n(e),p()},{data:u&&"text"!==u&&"json"!==u?F.response:F.responseText,status:F.status,statusText:F.statusText,headers:o,config:e,request:F}),F=null}F.open(l.method.toUpperCase(),l.url,!0),F.timeout=l.timeout,"onloadend"in F?F.onloadend=_:F.onreadystatechange=function(){!F||4!==F.readyState||(0!==F.status||F.responseURL&&F.responseURL.startsWith("file:"))&&setTimeout(_)},F.onabort=function(){F&&(n(new rT("Request aborted",rT.ECONNABORTED,e,F)),p(),F=null)},F.onerror=function(t){let o=new rT(t&&t.message?t.message:"Network Error",rT.ERR_NETWORK,e,F);o.event=t||null,n(o),p(),F=null},F.ontimeout=function(){let t=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded",o=l.transitional||rH;l.timeoutErrorMessage&&(t=l.timeoutErrorMessage),n(new rT(t,o.clarifyTimeoutError?rT.ETIMEDOUT:rT.ECONNABORTED,e,F)),p(),F=null},void 0===m&&f.setContentType(null),"setRequestHeader"in F&&rF.forEach(rk(f),function(e,t){F.setRequestHeader(t,e)}),rF.isUndefined(l.withCredentials)||(F.withCredentials=!!l.withCredentials),u&&"json"!==u&&(F.responseType=l.responseType),h&&([a,c]=r8(h,!0),F.addEventListener("progress",a)),b&&F.upload&&([i,s]=r8(b),F.upload.addEventListener("progress",i),F.upload.addEventListener("loadend",s)),(l.cancelToken||l.signal)&&(r=t=>{F&&(n(!t||t.type?new r4(null,e,F):t),F.abort(),p(),F=null)},l.cancelToken&&l.cancelToken.subscribe(r),l.signal&&(l.signal.aborted?r():l.signal.addEventListener("abort",r)));let g=(o=l.url,(d=/^([-+\w]{1,25}):(?:\/\/)?/.exec(o))&&d[1]||"");if(g&&!rK.protocols.includes(g)){n(new rT("Unsupported protocol "+g+":",rT.ERR_BAD_REQUEST,e)),p();return}F.send(m||null)})},iu=function*(e,t){let n,o=e.byteLength;if(!t||o<t)return void(yield e);let r=0;for(;r<o;)n=r+t,yield e.slice(r,n),r=n},ib=async function*(e,t){for await(let n of ih(e))yield*iu(n,t)},ih=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ip=(e,t,n,o)=>{let r,i=ib(e,t),a=0,s=e=>{!r&&(r=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await i.next();if(t){s(),e.close();return}let r=o.byteLength;if(n){let e=a+=r;n(e)}e.enqueue(new Uint8Array(o))}catch(e){throw s(e),e}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},iF=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,i_=(e,t,n)=>t+2<n&&iF(e.charCodeAt(t+1))&&iF(e.charCodeAt(t+2)),{isFunction:ig}=rF,iy=e=>{if(!rF.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},iv=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ik=e=>{let t,n=void 0!==rF.global&&null!==rF.global?rF.global:globalThis,{ReadableStream:o,TextEncoder:r}=n,{fetch:i,Request:a,Response:s}=e=rF.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),c=i?ig(i):"function"==typeof fetch,d=ig(a),l=ig(s);if(!c)return!1;let m=c&&ig(o),f=c&&("function"==typeof r?(t=new r,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),u=d&&m&&iv(()=>{let e=!1,t=new a(rK.origin,{body:new o,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),b=l&&m&&iv(()=>rF.isReadableStream(new s("").body)),h={stream:b&&(e=>e.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{h[e]||(h[e]=(t,n)=>{let o=t&&t[e];if(o)return o.call(t);throw new rT(`Response type '${e}' is not supported`,rT.ERR_NOT_SUPPORT,n)})});let p=async e=>{if(null==e)return 0;if(rF.isBlob(e))return e.size;if(rF.isSpecCompliantForm(e)){let t=new a(rK.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return rF.isArrayBufferView(e)||rF.isArrayBuffer(e)?e.byteLength:(rF.isURLSearchParams(e)&&(e+=""),rF.isString(e))?(await f(e)).byteLength:void 0},F=async(e,t)=>{let n=rF.toFiniteNumber(e.getContentLength());return null==n?p(t):n};return async e=>{let t,{url:n,method:o,data:c,signal:l,cancelToken:f,timeout:_,onDownloadProgress:g,onUploadProgress:y,responseType:v,headers:k,withCredentials:w="same-origin",fetchOptions:M,maxContentLength:D,maxBodyLength:E}=il(e),L=rF.isNumber(D)&&D>-1,A=rF.isNumber(E)&&E>-1,T=i||fetch;v=v?(v+"").toLowerCase():"text";let S=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,o=!1,r=function(e){if(!o){o=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof rT?t:new r4(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,r(new rT(`timeout of ${t}ms exceeded`,rT.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>rF.asap(a),s})([l,f&&f.toAbortSignal()],_),C=null,Y=S&&S.unsubscribe&&(()=>{S.unsubscribe()}),x=null,O=()=>new rT("Request body larger than maxBodyLength limit",rT.ERR_BAD_REQUEST,e,C);try{var B;let i,l,f,_,R=(l="auth",rF.hasOwnProp(e,l)?e[l]:void 0);if(R){let e=rF.getSafeProp(R,"username")||"",t=rF.getSafeProp(R,"password")||"";i={username:e,password:t}}if(f=(B=n).indexOf("://"),_=B,-1!==f&&(_=_.slice(f+3)),_.includes("@")||_.includes(":")){let e=new URL(n,rK.origin);if(!i&&(e.username||e.password)){let t=iy(e.username),n=iy(e.password);i={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(i){let e;k.delete("authorization"),k.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(L&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),o=e.slice(t+1);if(/;base64/i.test(n)){let e=o.length,t=o.length;for(let n=0;n<t;n++)if(37===o.charCodeAt(n)&&n+2<t){let t=o.charCodeAt(n+1),r=o.charCodeAt(n+2);iF(t)&&iF(r)&&(e-=2,n+=2)}let n=0,r=t-1,i=e=>e>=2&&37===o.charCodeAt(e-2)&&51===o.charCodeAt(e-1)&&(68===o.charCodeAt(e)||100===o.charCodeAt(e));r>=0&&(61===o.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===o.charCodeAt(r)?n++:i(r)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&i_(o,e,t))r+=1,e+=2;else if(n<128)r+=1;else if(n<2048)r+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=o.charCodeAt(e+1);t>=56320&&t<=57343?(r+=4,e++):r+=3}else r+=3}return r}(n)>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C);if(A&&"get"!==o&&"head"!==o){let e=await p(c);if("number"==typeof e&&isFinite(e)&&(t=e,e>E))throw O()}let P=A&&(rF.isReadableStream(c)||rF.isStream(c)),j=(e,t,n)=>ip(e,65536,e=>{if(A&&e>E)throw x=O();t&&t(e)},n);if(u&&"get"!==o&&"head"!==o&&(y||P)){if(t=null==t?await F(k,c):t,0!==t||P){let e,o=new a(n,{method:"POST",body:c,duplex:"half"});if(rF.isFormData(c)&&(e=o.headers.get("content-type"))&&k.setContentType(e),o.body){let[e,n]=y&&r7(t,r8(r9(y)))||[];c=j(o.body,e,n)}}}else if(P&&!d&&m&&"get"!==o&&"head"!==o)c=j(c);else if(P&&d&&!u&&"get"!==o&&"head"!==o)throw new rT("Stream request bodies are not supported by the current fetch implementation",rT.ERR_NOT_SUPPORT,e,C);rF.isString(w)||(w=w?"include":"omit");let N=d&&"credentials"in a.prototype;if(rF.isFormData(c)){let e=k.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&k.delete("content-type")}k.set("User-Agent","axios/1.18.1",!1);let I={...M,signal:S,method:o.toUpperCase(),headers:rk(k.normalize()),body:c,duplex:"half",credentials:N?w:void 0};C=d&&new a(n,I);let H=await (d?T(C,M):T(n,I)),U=rL.from(H.headers);if(L){let t=rF.toFiniteNumber(U.getContentLength());if(null!=t&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C)}let W=b&&("stream"===v||"response"===v);if(b&&H.body&&(g||L||W&&Y)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=H[e]});let n=rF.toFiniteNumber(U.getContentLength()),[o,r]=g&&r7(n,r8(r9(g),!0))||[];H=new s(ip(H.body,65536,t=>{if(L&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C);o&&o(t)},()=>{r&&r(),Y&&Y()}),t)}v=v||"text";let z=await h[rF.findKey(h,v)||"text"](H,e);if(L&&!b&&!W){let t;if(null!=z&&("number"==typeof z.byteLength?t=z.byteLength:"number"==typeof z.size?t=z.size:"string"==typeof z&&(t="function"==typeof r?new r().encode(z).byteLength:z.length)),"number"==typeof t&&t>D)throw new rT("maxContentLength size of "+D+" exceeded",rT.ERR_BAD_RESPONSE,e,C)}return!W&&Y&&Y(),await new Promise((t,n)=>{r3(t,n,{data:z,headers:rL.from(H.headers),status:H.status,statusText:H.statusText,config:e,request:C})})}catch(t){if(Y&&Y(),S&&S.aborted&&S.reason instanceof rT){let n=S.reason;throw n.config=e,C&&(n.request=C),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(x)throw C&&!x.request&&(x.request=C),x;if(t instanceof rT)throw C&&!t.request&&(t.request=C),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new rT("Network Error",rT.ERR_NETWORK,e,C,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw rT.from(t,t&&t.code,e,C,t&&t.response)}}},iw=new Map,iM=e=>{let t=e&&e.env||{},{fetch:n,Request:o,Response:r}=t,i=[o,r,n],a=i.length,s,c,d=iw;for(;a--;)s=i[a],void 0===(c=d.get(s))&&d.set(s,c=a?new Map:ik(t)),d=c;return c};iM();let iD={http:null,xhr:im,fetch:{get:iM}};rF.forEach(iD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let iE=e=>`- ${e}`,iL=e=>rF.isFunction(e)||null===e||!1===e,iA=function(e,t){let n,o,{length:r}=e=rF.isArray(e)?e:[e],i={};for(let a=0;a<r;a++){let r;if(o=n=e[a],!iL(n)&&void 0===(o=iD[(r=String(n)).toLowerCase()]))throw new rT(`Unknown adapter '${r}'`);if(o&&(rF.isFunction(o)||(o=o.get(t))))break;i[r||"#"+a]=o}if(!o){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new rT("There is no suitable adapter to dispatch the request "+(r?e.length>1?"since :\n"+e.map(iE).join("\n"):" "+iE(e[0]):"as no adapter specified"),rT.ERR_NOT_SUPPORT)}return o};function iT(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r4(null,e)}function iS(e){return iT(e),e.headers=rL.from(e.headers),e.data=r1.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),iA(e.adapter||r0.adapter,e)(e).then(function(t){iT(e),e.response=t;try{t.data=r1.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=rL.from(t.headers),t},function(t){if(!r2(t)&&(iT(e),t&&t.response)){e.response=t.response;try{t.response.data=r1.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=rL.from(t.response.headers)}return Promise.reject(t)})}let iC={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{iC[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let iY={};iC.transitional=function(e,t,n){function o(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new rT(o(r," has been removed"+(t?" in "+t:"")),rT.ERR_DEPRECATED);return t&&!iY[r]&&(iY[r]=!0,console.warn(o(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},iC.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ix=function(e,t,n){if("object"!=typeof e||null===e)throw new rT("options must be an object",rT.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),r=o.length;for(;r-- >0;){let i=o[r],a=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new rT("option "+i+" must be "+n,rT.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new rT("Unknown option "+i,rT.ERR_BAD_OPTION)}};class iO{constructor(e){this.defaults=e||{},this.interceptors={request:new rI,response:new rI}}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 n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),o=-1===t?-1:n.indexOf("\n",t+1),r=-1===o?"":n.slice(o+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:r,paramsSerializer:i,headers:a}=t=ic(this.defaults,t);void 0!==r&&ix(r,{silentJSONParsing:iC.transitional(iC.boolean),forcedJSONParsing:iC.transitional(iC.boolean),clarifyTimeoutError:iC.transitional(iC.boolean),legacyInterceptorReqResOrdering:iC.transitional(iC.boolean),advertiseZstdAcceptEncoding:iC.transitional(iC.boolean),validateStatusUndefinedResolves:iC.transitional(iC.boolean)},!1),null!=i&&(rF.isFunction(i)?t.paramsSerializer={serialize:i}:ix(i,{encode:iC.function,serialize:iC.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ix(t,{baseUrl:iC.spelling("baseURL"),withXsrfToken:iC.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&rF.merge(a.common,a[t.method]);a&&rF.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=rL.concat(s,a);let c=[],d=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;d=d&&e.synchronous;let n=t.transitional||rH;n&&n.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let m=0;if(!d){let e=[iS.bind(this),void 0];for(e.unshift(...c),e.push(...l),o=e.length,n=Promise.resolve(t);m<o;)n=n.then(e[m++],e[m++]);return n}o=c.length;let f=t;for(;m<o;){let e=c[m++],t=c[m++];try{f=e(f)}catch(e){t.call(this,e);break}}try{n=iS.call(this,f)}catch(e){return Promise.reject(e)}for(m=0,o=l.length;m<o;)n=n.then(l[m++],l[m++]);return n}getUri(e){return rN(ia((e=ic(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}rF.forEach(["delete","get","head","options"],function(e){iO.prototype[e]=function(t,n){return this.request(ic(n||{},{method:e,url:t,data:n&&rF.hasOwnProp(n,"data")?n.data:void 0}))}}),rF.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,o,r){return this.request(ic(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}iO.prototype[e]=t(),"query"!==e&&(iO.prototype[e+"Form"]=t(!0))});class iB{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,o=new Promise(e=>{n.subscribe(e),t=e}).then(e);return o.cancel=function(){n.unsubscribe(t)},o},e(function(e,o,r){n.reason||(n.reason=new r4(e,o,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new iB(function(t){e=t}),cancel:e}}}let 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 iP=function e(t){let n=new iO(t),o=oj(iO.prototype.request,n);return rF.extend(o,iO.prototype,n,{allOwnKeys:!0}),rF.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(ic(t,n))},o}(r0);iP.Axios=iO,iP.CanceledError=r4,iP.CancelToken=iB,iP.isCancel=r2,iP.VERSION="1.18.1",iP.toFormData=rO,iP.AxiosError=rT,iP.Cancel=iP.CanceledError,iP.all=function(e){return Promise.all(e)},iP.spread=function(e){return function(t){return e.apply(null,t)}},iP.isAxiosError=function(e){return rF.isObject(e)&&!0===e.isAxiosError},iP.mergeConfig=ic,iP.AxiosHeaders=rL,iP.formToJSON=e=>rQ(rF.isHTMLForm(e)?new FormData(e):e),iP.getAdapter=iA,iP.HttpStatusCode=iR,iP.default=iP;class ij{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:i5`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:i5`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i5`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:i5`dashboard/${e}/${t}`,options:n})}}class iN{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:i5`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i5`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:i5`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i5`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:i5`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:i5`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:i5`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:i5`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:i5`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:i5`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`rules/${e}`,data:t,options:n})}}class iI{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:i5`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,o,r){return this.httpClient.request({method:"GET",url:i5`gateway/tunnel/${e}/${t}/${n}/${o}`,options:r})}}class iH{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`asset/predicted/${e}/${t}`,data:n,options:o})}writePredictedDatapoints(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`asset/predicted/${e}/${t}`,data:n,options:o})}}class iU{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:i5`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:i5`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:i5`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:i5`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:i5`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:i5`service/${e}/${t}`,options:n})}}class iW{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:i5`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:i5`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:i5`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:i5`model/valueDescriptors`,queryParams:e,options:t})}}class iz{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:i5`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:i5`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i5`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:i5`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`realm/${e}`,data:t,options:n})}}class iG{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:i5`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:i5`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:i5`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:i5`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:i5`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:i5`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:i5`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:i5`alarm/${e}/assets`,queryParams:t,options:n})}}class iq{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:i5`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:i5`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:i5`flow/${e}`,options:t})}}class i${constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:i5`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:i5`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:i5`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:i5`provisioning/${e}`,data:t,options:n})}}class iV{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:i5`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:i5`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:i5`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:i5`map/getCustomMapInfo`,options:e})}getTile(e,t,n,o){return this.httpClient.request({method:"GET",url:i5`map/tile/${e}/${t}/${n}`,options:o})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:i5`map/upload`,queryParams:e,options:t})}}class iJ{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:i5`console/register`,data:e,options:t})}}class iK{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:i5`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:i5`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:i5`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:i5`syslog/event`,queryParams:e,options:t})}}class iX{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:i5`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:i5`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:i5`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:i5`gateway/status/${e}`,options:t})}}class iQ{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:i5`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:i5`info`,options:e})}}class iZ{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:i5`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:i5`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:i5`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:i5`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:i5`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:i5`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:i5`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:i5`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/reset-password/${t}`,data:n,options:o})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/userRealmRoles/${t}`,data:n,options:o})}getUserClientRoles(e,t,n,o){return this.httpClient.request({method:"GET",url:i5`user/${e}/userRoles/${t}/${n}`,options:o})}updateUserClientRoles(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i5`user/${e}/userRoles/${t}/${n}`,data:o,options:r})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:i5`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`user/${e}/${t}/roles`,data:n,options:o})}get(e,t,n){return this.httpClient.request({method:"GET",url:i5`user/${e}/${t}`,options:n})}}class i0{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:i5`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:i5`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:i5`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:i5`configuration/manager/image/${e}`,options:t})}}class i1{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:i5`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:i5`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`asset/datapoint/${e}/${t}`,data:n,options:o})}}class i2{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i5`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,o){return this.httpClient.request({method:"POST",url:i5`agent/assetImport/${e}`,queryParams:n,data:t,options:o})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:i5`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class i4{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:i5`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:i5`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:i5`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:i5`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:i5`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`notification/${e}/acknowledged`,queryParams:n,data:t,options:o})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:i5`notification/${e}/delivered`,queryParams:t,options:n})}}class i3{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:i5`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:i5`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:i5`apps/info`,options:e})}}class i6{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:i5`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:i5`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:i5`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:i5`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:i5`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:i5`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:i5`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:i5`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:i5`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:i5`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i5`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:i5`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:i5`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:i5`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,o){return this.httpClient.request({method:"DELETE",url:i5`asset/user/link/${e}/${t}/${n}`,options:o})}get(e,t){return this.httpClient.request({method:"GET",url:i5`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:i5`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,o){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/attribute/${t}`,data:n,options:o})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,o,r){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/attribute/${t}/${n}`,data:o,options:r})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:i5`asset/${e}/child`,queryParams:t,options:n})}}function i5(e,...t){let n="";for(let o=0;o<t.length;o++)n+=e[o],n+=encodeURIComponent(t[o]);return n+e[e.length-1]}class i8{constructor(e,t=iP.create()){this._dashboardResource=new i9(e,t),this._rulesResource=new ae(e,t),this._gatewayServiceResource=new at(e,t),this._assetPredictedDatapointResource=new an(e,t),this._externalServiceResource=new ao(e,t),this._assetModelResource=new ar(e,t),this._realmResource=new ai(e,t),this._alarmResource=new aa(e,t),this._flowResource=new as(e,t),this._provisioningResource=new ac(e,t),this._mapResource=new ad(e,t),this._consoleResource=new al(e,t),this._syslogResource=new am(e,t),this._gatewayClientResource=new af(e,t),this._statusResource=new au(e,t),this._userResource=new ab(e,t),this._configurationResource=new ah(e,t),this._assetDatapointResource=new ap(e,t),this._agentResource=new aF(e,t),this._notificationResource=new a_(e,t),this._appResource=new ag(e,t),this._assetResource=new ay(e,t),this._assetResource=new ay(e,t)}get DashboardResource(){return this._dashboardResource}get RulesResource(){return this._rulesResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetModelResource(){return this._assetModelResource}get RealmResource(){return this._realmResource}get AlarmResource(){return this._alarmResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get ConsoleResource(){return this._consoleResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get AgentResource(){return this._agentResource}get NotificationResource(){return this._notificationResource}get AppResource(){return this._appResource}get AssetResource(){return this._assetResource}}class i7{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class i9 extends ij{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ae extends iN{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class at extends iI{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class an extends iH{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ao extends iU{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ar extends iW{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ai extends iz{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class aa extends iG{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class as extends iq{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ac extends i${constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ad extends iV{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class al extends iJ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class am extends iK{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class af extends iX{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class au extends iQ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ab extends iZ{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ah extends i0{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ap extends i1{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class aF extends i2{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class a_ extends i4{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ag extends i3{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}class ay extends i6{constructor(e,t=iP.create()){t.defaults.baseURL=e,super(new i7(t))}}iP.isAxiosError;let av=new class{get api(){return this._client}constructor(){this._axiosInstance=iP.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>oS().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 i8(e,this._axiosInstance)}};var ak=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}c((o=o.apply(e,t||[])).next())})};(ey=tk||(tk={})).DISCONNECTED="DISCONNECTED",ey.CONNECTED="CONNECTED",ey.CONNECTING="CONNECTING";let aw="SUBSCRIBED:",aM="UNAUTHORIZED:",aD="TRIGGERED:",aE="EVENT:";class aL{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=aA.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=tk.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===tk.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(tk.CONNECTING),this._connectingDeferred=new ox,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=aA.MIN_RECONNECT_DELAY,this._onStatusChanged(tk.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!==tk.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new ox};return null!=this._pendingSubscription||this._status!==tk.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ak(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===tk.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==tk.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,r="AssetEvent"+aL._subscriptionCounter++;if(!this._assetEventPromise){let e;se.authenticated||(e={filterType:"asset",realm:se.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(r,e=>{let t=e.asset.id;o?o.find(e=>t===e)&&n(e):e.asset.realm===se.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(o&&t){let e={messageID:"read-assets:"+o.join(",")+":"+r,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(r)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),r&&this.unsubscribe(r),t}return r})})}subscribeAttributeEvents(e,t,n){return ak(this,void 0,void 0,function*(){let o=e&&"string"!=typeof e[0],r=o?e.map(e=>e.id):e,i=o?e:void 0,a="AttributeEvent"+aL._subscriptionCounter++;if(!this._attributeEventPromise){let e;se.authenticated||(e={filterType:"asset",realm:se.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let i=t.ref;o?e.forEach(e=>{i.id===e.id&&i.name===e.name&&n(t)}):r?r.find(e=>i.id===e)&&n(t):t.realm===se.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&r){let e={messageID:"read-assets:"+r.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:r}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!i||i.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===tk.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===tk.CONNECTED&&this._onStatusChanged(tk.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(tk.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<aA.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(aA.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}aL.MIN_RECONNECT_DELAY=0,aL.MAX_RECONNECT_DELAY=3e4,aL._subscriptionCounter=0;class aA extends aL{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+se.config.realm;return this._connectDeferred=new ox,(se.authenticated?se.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(aw)){let e=JSON.parse(t.substring(aw.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(aM)){let e=JSON.parse(t.substring(aM.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(aD)){let e=JSON.parse(t.substring(aD.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(aE)){let e=JSON.parse(t.substring(aE.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 ox,e.subscriptionId||(e.subscriptionId=aA._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=aE+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 ox;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(aE+JSON.stringify(e)),t.promise}}aA._subscriptionCounter=1;let aT=["__proto__","constructor","prototype"];function aS(e){return!("string"!=typeof e||0===e.length||e.length>128||aT.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function aC(e){return!(!aS(e)||e.indexOf("/")>-1)}let aY={lng:aC,ns:function(e){return aS(e)}};function ax(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function aO(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let aB=/\{\{(.+?)\}\}/g;function aR(e,t){let n=!1,o=e.replace(aB,(e,o)=>{let r=o.trim();if(aT.indexOf(r)>-1)return e;let i=t[r];if(null==i)return e;let a=aY[r]||aC,s=String(i).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:o}let aP="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:aP&&"function"==typeof aP.fetch&&(e=aP.fetch);let aj=aO()&&aP?aP.XMLHttpRequest:void 0,aN="function"==typeof ActiveXObject&&aP?aP.ActiveXObject:void 0,aI=["__proto__","constructor","prototype"],aH=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))aI.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},aU=(t,n,o,r)=>{let i=e=>{if(!e.ok)return o(e.statusText||"Error",{status:e.status});e.text().then(t=>{o(null,{status:e.status,data:t})}).catch(o)};if(r){let e=r(t,n);if(e instanceof Promise)return void e.then(i).catch(o)}"function"==typeof fetch?fetch(t,n).then(i).catch(o):e(t,n).then(i).catch(o)},aW=(t,n,o,r)=>{if("function"==typeof o&&(r=o,o=void 0),r=r||(()=>{}),e&&0!==n.indexOf("file:")){var i=n,a=o,s=r;t.queryStringParams&&(i=aH(i,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let c="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,d={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:c},l="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{aU(i,d,s,l)}catch(e){if(!c||0===Object.keys(c).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(c).forEach(e=>{delete d[e]}),aU(i,d,s,l),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(aO()||"function"==typeof ActiveXObject){var c=n,d=o,l=r;d&&"object"==typeof d&&(d=aH("",d).slice(1)),t.queryStringParams&&(c=aH(c,t.queryStringParams));try{let e=aj?new aj:new aN("MSXML2.XMLHTTP.3.0");e.open(d?"POST":"GET",c,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,d&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))aI.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&l(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(d)}catch(e){console&&console.log(e)}return}r(Error("No fetch and no xhr implementation found!"))};var az=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:aW,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,o,r){var i,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=i=s)&&"function"==typeof a.then?i:Promise.resolve(i)).then(i=>{if(!i)return r(null,{});let a=aR(i,{lng:e.join("+"),ns:n.join("+")});if(null==a)return r(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(ax).join(", ")+"] namespaces=["+n.map(ax).join(", ")+"]"),!1);this.loadUrl(a,r,t,o)})}loadUrl(e,t,n,o){let r=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof o?[o]:o),i=ax(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,r,(e,r)=>{let a,s;if(r&&(r.status>=500&&r.status<600||!r.status))return t("failed loading "+i+"; status code: "+r.status,!0);if(r&&r.status>=400&&r.status<500)return t("failed loading "+i+"; status code: "+r.status,!1);if(!r&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+i+": "+ax(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof r.data?this.options.parse(r.data,n,o):r.data}catch(e){s="failed parsing "+i+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,o,r){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let i=this.options.parsePayload(t,n,o),a=0,s=[],c=[];e.forEach(n=>{let o=this.options.addPath;"function"==typeof this.options.addPath&&(o=this.options.addPath(n,t));let d=aR(o,{lng:n,ns:t});if(null==d){a+=1,r&&a===e.length&&r(s,c);return}this.options.request(this.options,d,i,(t,n)=>{a+=1,s.push(t),c.push(n),a===e.length&&"function"==typeof r&&r(s,c)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,o=e.language;if(o&&"cimode"===o.toLowerCase())return;let r=[],i=e=>{t.toResolveHierarchy(e).forEach(e=>{0>r.indexOf(e)&&r.push(e)})};i(o),this.allOptions.preload&&this.allOptions.preload.forEach(e=>i(e)),r.forEach(t=>{this.allOptions.ns.forEach(o=>{e.read(t,o,"read",null,null,(r,i)=>{r&&n.warn(`loading namespace ${o} for language ${t} failed`,r),!r&&i&&n.log(`loaded namespace ${o} for language ${t}`,i),e.loaded(`${t}|${o}`,r,i)})})})}};az.type="backend";let aG=e=>(...t)=>({_$litDirective$:e,values:t});class aq{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}class a$ extends aq{constructor(e){if(super(e),this.it=na,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===na||null==e)return this._t=void 0,this.it=e;if(e===ni)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:[]}}}a$.directiveName="unsafeHTML",a$.resultType=1,aG(a$);class aV extends a${}aV.directiveName="unsafeSVG",aV.resultType=2;let aJ=aG(aV),aK={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 aX=function(e,t,n,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(i<3?r(a):i>3?r(t,n,a):r(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a};class aQ extends CustomEvent{constructor(){super(aQ.NAME,{bubbles:!0,composed:!0})}}aQ.NAME="or-iconset-added";let aZ=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new aQ)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return nr``;let t=(e||"").split(":"),n=t.pop(),o=t.pop(),r=this._defaultIconSet;return(o&&(r=this.getIconSet(o)),n&&r)?r.getIconTemplate(n):nr``}},a0=class extends nM{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[tY`
|
|
11
11
|
:host {
|
|
12
12
|
--internal-or-icon-width: var(--or-icon-width, 24px);
|
|
13
13
|
--internal-or-icon-height: var(--or-icon-height, 24px);
|