@openremote/or-json-forms 1.32.0-snapshot.20261012115031 → 1.32.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.
@@ -13,7 +13,7 @@ var ORJsonForms;(()=>{var e={76674(e,t,n){var i,o,r,a,s,l,c;e=n.nmd(e),!(i=funct
13
13
  font-weight: 600;
14
14
  line-height: 125.303%;
15
15
  }
16
- `;class ex extends ev{static finalizeStyles(e){return[ew,...super.finalizeStyles(e)]}}let eF=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ek={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:L};function eE(e){return(t,n)=>{let i;return"object"==typeof n?((e=ek,t,n)=>{let{kind:i,metadata:o}=n,r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(n.name,e),"accessor"===i){let{name:i}=n;return{set(n){let o=t.get.call(this);t.set.call(this,n),this.requestUpdate(i,o,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){let{name:i}=n;return function(n){let o=this[i];t.call(this,n),this.requestUpdate(i,o,e)}}throw Error("Unsupported decorator location: "+i)})(e,t,n):(i=t.hasOwnProperty(n),t.constructor.createProperty(n,e),i?Object.getOwnPropertyDescriptor(t,n):void 0)}}function eC(e){return eE({...e,state:!0,attribute:!1})}let eA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eT(e,t){return(n,i,o)=>{let r=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof i?n:o??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return eA(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eA(n,i,{get(){return r(this)}})}}var eS=n(55359),eM=n.n(eS),eL=n(71770),eD=n.n(eL),eI=n(38420),eO=n.n(eI),eR=n(95355),e$=n.n(eR),eN=n(29650),eP=n.n(eN),eB=n(59974),eY=n.n(eB),ej=n(29475),eH=n.n(ej),ez=n(64383),eU=n.n(ez),eW=n(22485),eV=n.n(eW),eG=n(18508),eq=n.n(eG),eK=n(16372),eX=n.n(eK),eJ=n(58466),eQ=n.n(eJ),eZ=n(78434),e0=n.n(eZ),e1=n(51582),e2=n.n(e1),e5=n(81285),e4=n.n(e5),e3=n(26461),e6=n.n(e3),e8=n(97564),e7=n.n(e8),e9=n(94360),te=n.n(e9),tt=n(20469),tn=n.n(tt),ti=n(96672),to=n.n(ti),tr=n(6994),ta=n.n(tr),ts=n(19804),tl=n.n(ts),tc=n(81370),td=n.n(tc),tu=n(86520),tm=n.n(tu),th=n(55482),tf=n.n(th);let tp="additionalProperties",tg="required";class tb{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tp)},i=this.findOption(t)(tg);return i.length>0&&(n.required=i),n},this.properties=e=>Object.keys(e).reduce((t,n)=>(t[n]=this.property(e[n]),t),{}),this.property=e=>{switch(typeof e){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(e))return{type:"integer"};return{type:"number"};case"object":if(null==e)return{type:"null"};return this.schemaObjectOrArray(e);default:return{}}},this.schemaObjectOrArray=e=>e instanceof Array?this.schemaArray(e):this.schemaObject(e),this.schemaArray=e=>{if(!(e.length>0))return{type:"array",items:{}};{var t,n;let i,o=(t=e.map(this.property),n=e=>JSON.stringify(e),i={},t.filter(e=>{let t=n(e);return!Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let t_=(e,t={})=>new tb(e=>n=>{switch(n){case tp:if(Object.prototype.hasOwnProperty.call(t,tp))return t[tp];return!0;case tg:if(Object.prototype.hasOwnProperty.call(t,tg))return t[tg](e);return Object.keys(e);default:return}}).schemaObject(e),tv=new Set,ty=(e,t)=>t<=1?e:e+t.toString(),tw=(e,t)=>{let n=ty(e,t);return!tv.has(n)},tx=e=>{void 0===e&&(e="undefined");let t=0;for(;!tw(e,t);)t++;let n=ty(e,t);return tv.add(n),n},tF=e=>tv.delete(e),tk=()=>tv.clear(),tE=(e,t)=>{let n=e;return(eM()(e)||eM()(t)||t.startsWith("[")||(n=e+"."),eM()(n))?t:eM()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tS),n="#"===t[0]||""===t[0];return e$()(n?2:1,t.length,2).map(e=>t[e])},tA=e=>tC(e).join("."),tT=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tS=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tM=e=>`/properties/${e.split(".").map(e=>tT(e)).join("/properties/")}`,tL=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tS(t.substr(t.lastIndexOf("/")+1));return eD()(n)}return""},tD=e=>eD()(e.replace("_"," ")),tI=(e,t)=>{let n=e.label;return"boolean"==typeof n?tO(tL(e,t),n):"string"==typeof n?tO(n,!0):"object"==typeof n?tO("string"==typeof n.text?n.text:tL(e,t),"boolean"!=typeof n.show||n.show):tO(tL(e,t),!0)},tO=(e,t)=>({text:e,show:t}),tR=(e,t)=>eM()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),t$=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>t$(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>t$(e,t)):t$(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>t$(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tN=(e,t,n)=>tP(e,t?.split("/").map(tS),n),tP=(e,t,n)=>{if(eM()(e))return;if("string"==typeof e.$ref&&(e=tN(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tP(e,o,n);let r=tP(eP()(e,i),o,n);if(r)return r;if("properties"===i||"items"===i){let t;for(let r of[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]))if(t=tP(r,[i,...o],n))break;return t}},tB={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};(_d=vx||(vx={})).HIDE="HIDE",_d.SHOW="SHOW",_d.ENABLE="ENABLE",_d.DISABLE="DISABLE";let tY=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tj=e=>{tz(e,tY(!0))},tH=e=>{tz(e,tY(!1))},tz=(e,t)=>{if(!eM()(e)){if(tq(e))return void e.elements.forEach(e=>tz(e,t));t(e)}},tU=(e,t)=>{if(tZ(e)){if(tX(e)&&e.scope.endsWith(tM(t)))return e;else if(e.options?.detail)return tU(e.options.detail,t)}if(tq(e))for(let n of e.elements){let e=tU(n,t);if(void 0!==e)return e}},tW=(e,t)=>{if(!tX(e))return t??"";let n=tC(e.scope);return eM()(n)?t??"":tE(t,n.join("."))},tV=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tG=e=>"Group"===e.type,tq=e=>void 0!==e.elements,tK=e=>!!e&&"object"==typeof e,tX=e=>tK(e)&&"string"==typeof e.scope,tJ=e=>!!e&&"object"==typeof e,tQ=e=>tJ(e)&&["string","boolean"].includes(typeof e.label),tZ=e=>"Control"===e.type,t0=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t0(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t0(e,o,n,i),!1);if("LEAF"===t.type)return tR(e,tW(t,n))===t.expectedValue;if(!eY()(t,"schema"))return!0;{let o=tR(e,tW(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t1=(e,t,n,i)=>t0(t,e.rule.condition,n,i),t2=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case vx.HIDE:return!o;case vx.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case vx.DISABLE:return!o;case vx.ENABLE:return o;default:return!0}},t4=e=>!!e.rule&&(e.rule.effect===vx.SHOW||e.rule.effect===vx.HIDE),t3=e=>!!e.rule&&(e.rule.effect===vx.ENABLE||e.rule.effect===vx.DISABLE),t6=(e,t,n,i)=>!e.rule||t2(e,t,n,i),t8=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t7=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return eH()(Object.keys(e.properties),t=>{let n=e.properties[t];return n&&"object"==typeof n&&"type"in n&&("string"===n.type||"number"===n.type||"integer"===n.type)})},t9=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),ne=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nt=(e,t)=>{let n=e.toISOString();if("date-time"===t);else if("date"===t)return n.split("T")[0];else if("time"===t)return n.split("T")[1].split(".")[0];return n},nn=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),ni=(e,t)=>eV()(no(e),t),no=e=>{if(eM()(e))return[];if(!eM()(e.type)&&"string"==typeof e.type)return[e.type];if(eU()(e.type))return e.type;if(!eM()(e.properties)||!eM()(e.additionalProperties))return["object"];if(!eM()(e.items))return["array"];if(!eM()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):no(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eM()(e.allOf)){let t=eH()(e.allOf,e=>0!==no(e).length);if(t)return no(t)}return[]},nr={schema:tN,data:tR},na={compose:tE,fromScoped:e=>tC(e.scope).join(".")},ns={isEnabled:(e,t,n)=>t8(e,t,void 0,n),isVisible:(e,t,n)=>t6(e,t,void 0,n)},nl=e=>{let t=new(eq())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eX()(t),t},nc=(e,t)=>void 0===e||e(t)?[]:e.errors,nd="YYYY-MM-DD",nu="HH:mm:ss",nm="YYYY-MM-DDTHH:mm:ss.sssZ",nh=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");let n=(e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}})(e);return void 0===n||t.endsWith(n)||(t=`${t}.${n}`),t=tS(t=t.replace(/^./,""))},nf=(e,t,n)=>i=>{let o=eQ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nh(e));return eQ()(i,i=>{if(-1!==ng.indexOf(i.keyword)&&!t9(i.parentSchema))return!1;let r=n(nh(i)),a=i.parentSchema;return!r||np(a)||t9(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e0()(a,t)),r})},np=e=>e?.type==="object"||!!e?.properties,ng=["additionalProperties","allOf","anyOf","oneOf"],nb=e=>null==e?"":e.join("\n"),n_={createLabelDescriptionFrom:tI,convertToValidClassName:nn},nv=e=>({type:e,elements:[]}),ny=e=>({type:"Control",scope:e}),nw=(e,t,n,i,o,r)=>{if(!eM()(e)&&void 0!==e.$ref)return nw(tN(r,e.$ref,r),t,n,i,o,r);if(!eM()(e)&&(!eM()(e.oneOf)||!eM()(e.anyOf)||!eM()(e.allOf))){let e=ny(n);return t.push(e),e}let a=no(e);if(0===a.length)return null;if(a.length>1){let e=ny(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=nv(o);if(t.push(a),e.properties&&eO()(e.properties).length>1&&((e,t)=>{if(!eM()(t)){let n=eD()(t);tG(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eM()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tT(n)}`;void 0!==i.$ref&&(i=tN(r,i.$ref,r)),nw(i,a.elements,s,n,o,r)})}return a}switch(a[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let e=ny(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nx=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eM()(e)&&!tq(e)){let n=nv(t);return n.elements.push(e),n}return e})(nw(e,[],n,"",t,i),t),nF={jsonSchema:t_,uiSchema:nx,controlElement:ny},nk="jsonforms/INIT",nE="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nA="jsonforms/UPDATE",nT="jsonforms/UPDATE_ERRORS",nS="jsonforms/VALIDATE",nM="jsonforms/ADD_RENDERER",nL="jsonforms/REMOVE_RENDERER",nD="jsonforms/ADD_CELL",nI="jsonforms/REMOVE_CELL",nO="jsonforms/SET_CONFIG",nR="jsonforms/ADD_UI_SCHEMA",n$="jsonforms/REMOVE_UI_SCHEMA",nN="jsonforms/SET_SCHEMA",nP="jsonforms/SET_UISCHEMA",nB="jsonforms/SET_VALIDATION_MODE",nY="jsonforms/SET_LOCALE",nj="jsonforms/SET_TRANSLATOR",nH="jsonforms/UPDATE_I18N",nz="jsonforms/ADD_DEFAULT_DATA",nU="jsonforms/REMOVE_DEFAULT_DATA",nW=e=>{if(!("type"in e)||"string"!=typeof e.type)return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(e=>"number"==typeof e);case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(e=>"object"==typeof e&&null!==e&&"from"in e&&"to"in e&&"number"==typeof e.from&&"number"==typeof e.to);default:return!1}},nV=(e,t=t_(e),n,i)=>({type:nk,data:e,schema:t,uischema:"object"==typeof n?n:nx(t),options:i}),nG=(e,t,n,i)=>({type:nE,data:e,schema:t,uischema:n,options:i}),nq=(e,t)=>({type:nz,schemaPath:e,data:t}),nK=e=>({type:nU,schemaPath:e}),nX=e=>({type:nC,ajv:e}),nJ=(e,t,n)=>({type:nA,path:e,updater:t,context:n}),nQ=e=>({type:nT,errors:e}),nZ=(e,t)=>({type:nM,tester:e,renderer:t}),n0=(e,t)=>({type:nD,tester:e,cell:t}),n1=(e,t)=>({type:nI,tester:e,cell:t}),n2=(e,t)=>({type:nL,tester:e,renderer:t}),n5=e=>({type:nO,config:e}),n4=e=>({type:nB,validationMode:e}),n3=(e,t)=>({type:nR,tester:e,uischema:t}),n6=e=>({type:n$,tester:e}),n8=e=>({type:nY,locale:e}),n7=e=>({type:nN,schema:e}),n9=(e,t)=>({type:nj,translator:e,errorTranslator:t}),ie=(e,t,n)=>({type:nH,locale:e,translator:t,errorTranslator:n}),it=e=>({type:nP,uischema:e});var ii=Object.freeze({__proto__:null,INIT:nk,UPDATE_CORE:nE,SET_AJV:nC,UPDATE_DATA:nA,UPDATE_ERRORS:nT,VALIDATE:nS,ADD_RENDERER:nM,REMOVE_RENDERER:nL,ADD_CELL:nD,REMOVE_CELL:nI,SET_CONFIG:nO,ADD_UI_SCHEMA:nR,REMOVE_UI_SCHEMA:n$,SET_SCHEMA:nN,SET_UISCHEMA:nP,SET_VALIDATION_MODE:nB,SET_LOCALE:nY,SET_TRANSLATOR:nj,UPDATE_I18N:nH,ADD_DEFAULT_DATA:nz,REMOVE_DEFAULT_DATA:nU,isUpdateArrayContext:nW,init:nV,updateCore:nG,registerDefaultData:nq,unregisterDefaultData:nK,setAjv:nX,update:nJ,updateErrors:nQ,registerRenderer:nZ,registerCell:n0,unregisterCell:n1,unregisterRenderer:n2,setConfig:n5,setValidationMode:n4,registerUISchema:n3,unregisterUISchema:n6,setLocale:n8,setSchema:n7,setTranslator:n9,updateI18n:ie,setUISchema:it});let io=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nD:return e.concat([{tester:n,cell:i}]);case nI:return e.filter(e=>e.tester!==n);default:return e}},ir={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},ia=(e={})=>e2()({},ir,e),is=(e=ia(),t)=>t.type===nO?ia(t.config):e,il={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ic=(e,t)=>t&&id(t.options)?t.options.validationMode:e.validationMode,id=e=>!!e&&void 0!==e.validationMode,iu=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},im=(e,t)=>{if(t){if(ih(t.options))return t.options.ajv;else if(void 0!==t.options&&te()(t.options.compile))return t.options}return e.ajv?e.ajv:nl()},ih=e=>!!e&&void 0!==e.ajv,ip=(e=il,t)=>{switch(t.type){case nk:{let n=im(e,t),i=ic(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nc(o,t.data),a=iu(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nE:{let n=im(e,t),i=ic(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nc(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nc(o,t.data));let a=iu(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==r||e.validator!==o||e.validationMode!==i||e.additionalErrors!==a?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:e0()(r,e.errors)?e.errors:r,validator:o,validationMode:i,additionalErrors:a}:e}case nC:{let n=t.ajv,i="NoValidation"===e.validationMode?void 0:n.compile(e.schema),o=nc(i,e.data);return{...e,validator:i,errors:o}}case nN:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nc(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nP:return{...e,uischema:t.uischema};case nA:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e4()(e.data)),i=nc(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eP()(e.data,t.path),o=t.updater(e4()(i));n=void 0!==o?e6()(t.path,o,void 0===e.data?{}:e.data):e7()(t.path,void 0===e.data?{}:e.data);let r=nc(e.validator,n);return{...e,data:n,errors:r}}case nT:return{...e,errors:t.errors};case nB:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nc(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nc(n,e.data);return{...e,validator:n,errors:i,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode};default:return e}},ig=(e=[],t)=>{switch(t.type){case nz:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nU:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},ib=e=>i_(eP()(e,"jsonforms.defaultData")),i_=e=>e;(_u=vF||(vF={})).addTooltip="addTooltip",_u.addAriaLabel="addAriaLabel",_u.removeTooltip="removeTooltip",_u.upAriaLabel="upAriaLabel",_u.downAriaLabel="downAriaLabel",_u.noSelection="noSelection",_u.removeAriaLabel="removeAriaLabel",_u.noDataMessage="noDataMessage",_u.deleteDialogTitle="deleteDialogTitle",_u.deleteDialogMessage="deleteDialogMessage",_u.deleteDialogAccept="deleteDialogAccept",_u.deleteDialogDecline="deleteDialogDecline",_u.up="up",_u.down="down";let iv=[{key:vF.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:vF.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:vF.removeTooltip,default:()=>"Delete"},{key:vF.removeAriaLabel,default:()=>"Delete button"},{key:vF.upAriaLabel,default:()=>"Move item up"},{key:vF.up,default:()=>"Up"},{key:vF.down,default:()=>"Down"},{key:vF.downAriaLabel,default:()=>"Move item down"},{key:vF.noDataMessage,default:()=>"No data"},{key:vF.noSelection,default:()=>"No selection"},{key:vF.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:vF.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:vF.deleteDialogAccept,default:()=>"Yes"},{key:vF.deleteDialogDecline,default:()=>"No"}];(_m=vk||(vk={})).clearDialogTitle="clearDialogTitle",_m.clearDialogMessage="clearDialogMessage",_m.clearDialogAccept="clearDialogAccept",_m.clearDialogDecline="clearDialogDecline";let iy=[{key:vk.clearDialogTitle,default:()=>"Clear form?"},{key:vk.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:vk.clearDialogAccept,default:()=>"Yes"},{key:vk.clearDialogDecline,default:()=>"No"}],iw=(e,t)=>tV(t)?t.i18n:e?.i18n??void 0,ix=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",iF=(e,t,n)=>iw(e,t)??ix(n),ik=(e,t,n,i)=>`${iF(e,t,n)}.${i}`,iE=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iA=(e,t,n)=>{let i=t(ik(e.parentSchema,n,nh(e),`error.${e.keyword}`),void 0,{error:e});if(void 0!==i)return i;let o=t(`error.${e.keyword}`,void 0,{error:e});if(void 0!==o)return o;let r=t(e.message,void 0,{error:e});return void 0!==r?r:"required"===e.keyword&&e.message?.startsWith("must have required property")?t("is a required property","is a required property",{error:e}):e.message},iT=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(ik(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return nb(e.map(e=>t(e,n,o)))},iS=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tV(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iw(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iM=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iL=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iD=e=>{if(void 0!==e)return e.locale},iI=e=>void 0===e?iC:e.translate,iO=e=>void 0===e?iA:e.translateError,iR=e=>iD(eP()(e,"jsonforms.i18n")),i$=()=>e=>iI(eP()(e,"jsonforms.i18n")),iN=()=>e=>iO(eP()(e,"jsonforms.i18n")),iP={locale:"en",translate:iC,translateError:iA},iB=(e=iP,t)=>{switch(t.type){case nH:{let n=t.locale??iP.locale,i=t.translator??iP.translate,o=t.errorTranslator??iP.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nj:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iA};case nY:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},iY=(e=[],t)=>{switch(t.type){case nM:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nL:return e.filter(e=>e.tester!==t.tester);default:return e}},ij=e=>!eM()(e)&&void 0!==e.scope,iH=e=>(t,n,i)=>{if(eM()(t)||!ij(t)||eM()(n))return!1;let o=t.scope;if(eM()(o))return!1;let r=n;return ni(n,"object")&&(r=tN(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iz=(e,t)=>(n,i,o)=>{if(eM()(n)||!ij(n))return!1;let r=n.scope,a=i;return ni(i,"object")&&(a=tN(i,r,o?.rootSchema)),void 0!==(a=eP()(a,e))&&t(a,o?.rootSchema)},iU=e=>iH(t=>!eM()(t)&&ni(t,e)),iW=e=>iH(t=>!eM()(t)&&t.format===e&&ni(t,"string")),iV=e=>t=>!eM()(t)&&t.type===e,iG=(e,t)=>n=>{if(eM()(n))return!1;let i=n.options;return!eM()(i)&&i[e]===t},iq=e=>t=>{if(eM()(t))return!1;let n=t.options;return!eM()(n)&&!tf()(n[e])},iK=e=>t=>!eM()(e)&&!!ij(t)&&ta()(t.scope,e),iX=e=>t=>{if(eM()(e)||!ij(t))return!1;let n=t.scope;return!eM()(n)&&tl()(n.split("/"))===e},iJ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),iQ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),iZ=(e,t)=>(n,i,o)=>t(n,i,o)?e:-1,i0=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return -1===r?-1:r+e},i1=iJ(iV("Control"),iU("boolean")),i2=iJ(iV("Control"),iU("object")),i5=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i4=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i3=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i6=iJ(iV("Control"),iH(e=>ne(e))),i8=iJ(iV("Control"),iH(e=>t9(e))),i7=iJ(iV("Control"),iU("integer")),i9=iJ(iV("Control"),iU("number")),oe=iJ(iV("Control"),iU("string")),ot=iJ(iV("Control"),iG("multi",!0)),on=iJ(iV("Control"),iQ(iW("date"),iG("format","date"))),oi=iJ(iV("Control"),iQ(iW("time"),iG("format","time"))),oo=iJ(iV("Control"),iQ(iW("date-time"),iG("format","date-time"))),or=iJ(iH((e,t)=>ni(e,"array")&&!Array.isArray(tN(e,"items",t))),iz("items",(e,t)=>ni(e.$ref?tN(t,e.$ref,t):e,"object"))),oa=iJ(iV("Control"),or),os=(e,t,n)=>{if(eU()(e))return td()(e,(e,i)=>e||os(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tN(n,e.$ref,n);if(i&&!i.$ref)return os(i,t,n)}return e.items?os(e.items,t,n):!!e.properties&&td()(tm()(e.properties),(e,[i,o])=>e||os(o,t,n),!1)},ol=(e,t,n)=>{if(!iV("Control")(e,t,n))return!1;let i=tN(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(os(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!t9(e)||ni(e,"object")&&2==++o)||!!ni(e,"array")),n?.rootSchema))return!0;if(e.options&&e.options.detail){if("string"==typeof e.options.detail)return"DEFAULT"!==e.options.detail.toUpperCase();else if("object"==typeof e.options.detail&&e.options.detail.type)return!0}}return!1},oc=oa,od=iJ(iV("Control"),iH((e,t)=>0!==no(e).length&&!Array.isArray(tN(e,"items",t))),iz("items",(e,t)=>{let n=no(e.$ref?tN(t,e.$ref,t):e);return 1===n.length&&eV()(["integer","number","boolean","string"],n[0])})),ou=iJ(iV("Control"),iQ(iU("number"),iU("integer")),iH(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iG("slider",!0)),om=iJ(iV("Control"),iU("integer"),iG("format",!0)),oh=e=>"Categorization"===e.type,of=e=>"Category"===e.type,op=e=>!eM()(e.elements)&&e.elements.map(e=>oh(e)?op(e):of(e)).reduce((e,t)=>e&&t,!0),og=e=>op(e),ob=e=>(t,n,i)=>!e(t,n,i);var o_=Object.freeze({__proto__:null,NOT_APPLICABLE:-1,isControl:ij,schemaMatches:iH,schemaSubPathMatches:iz,schemaTypeIs:iU,formatIs:iW,uiTypeIs:iV,optionIs:iG,hasOption:iq,scopeEndsWith:iK,scopeEndIs:iX,and:iJ,or:iQ,rankWith:iZ,withIncreasedRank:i0,isBooleanControl:i1,isObjectControl:i2,isAllOfControl:i5,isAnyOfControl:i4,isOneOfControl:i3,isEnumControl:i6,isOneOfEnumControl:i8,isIntegerControl:i7,isNumberControl:i9,isStringControl:oe,isMultiLineControl:ot,isDateControl:on,isTimeControl:oi,isDateTimeControl:oo,isObjectArray:or,isObjectArrayControl:oa,isObjectArrayWithNesting:ol,isArrayObjectControl:oc,isPrimitiveArrayControl:od,isRangeControl:ou,isNumberFormatControl:om,isCategorization:oh,isCategory:of,hasCategory:op,categorizationHasCategory:og,not:ob});let ov=(e=[],t)=>{switch(t.type){case nR:return e.slice().concat({tester:t.tester,uischema:t.uischema});case n$:{let n=e.slice();return to()(n,e=>e.tester===t.tester),n}default:return e}},oy=e=>(t,n,i)=>{let o=tn()(e,e=>e.tester(t,n,i));if(void 0!==o&&-1!==o.tester(t,n,i))return o.uischema},ow={core:ip,renderers:iY,cells:io,config:is,uischemas:ov,defaultData:ig,i18n:iB},ox=(e,t,n,i,o="VerticalLayout",r,a)=>{if(r&&r.options&&r.options.detail){if("string"==typeof r.options.detail){if("GENERATE"===r.options.detail.toUpperCase())return"function"==typeof o?o():nF.uiSchema(t,o,void 0,a)}else if("object"==typeof r.options.detail&&r.options.detail.type&&"string"==typeof r.options.detail.type)return r.options.detail}let s=oy(e)(t,n,i);return void 0===s?"function"==typeof o?o():nF.uiSchema(t,o,"#",a):s},oF=(e,t,n)=>n(e,t),ok=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return nf(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oE=(e,t)=>ok(e,t,t=>t===e),oC=(e,t)=>ok(e,t,t=>t.startsWith(e+".")),oA=(e,t)=>n=>oE(e,t)(n.jsonforms.core),oT=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oS=e=>o$(eP()(e,"jsonforms.core")),oM=e=>oN(eP()(e,"jsonforms.core")),oL=e=>oP(eP()(e,"jsonforms.core")),oD=e=>oB(eP()(e,"jsonforms.core")),oI=e=>eP()(e,"jsonforms.renderers"),oO=e=>eP()(e,"jsonforms.cells"),oR=e=>eP()(e,"jsonforms.uischemas"),o$=e=>eP()(e,"data"),oN=e=>eP()(e,"schema"),oP=e=>eP()(e,"uischema"),oB=e=>eP()(e,"ajv"),oY=e=>e.jsonforms.config,oj=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t3(n)?t8(n,o,t?.path,oD(e)):"boolean"==typeof n?.options?.readonly?!n.options.readonly:"boolean"==typeof n?.options?.readOnly?!n.options.readOnly:"boolean"==typeof r?.readonly?!r.readonly:"boolean"==typeof r?.readOnly?!r.readOnly:i?.readOnly!==!0&&("boolean"!=typeof t?.enabled||t.enabled)),oH=(e,t,n)=>{let i=t+n;if(i<0||i>=e.length)return;let o=[t,i].sort((e,t)=>e-t);e.splice(o[0],2,e[o[1]],e[o[0]])},oz=(e,t)=>{oH(e,t,-1)},oU=(e,t)=>{oH(e,t,1)},oW=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oV=(e,t)=>e&&!t,oG=(e,t)=>{let n=oq(e,t);return void 0===n?{}:n},oq=(e,t)=>{let n="string"==typeof e.$ref?nr.schema(t,e.$ref,t):e;if(void 0!==n.default)return oX(n,t);if(ni(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nt(new Date,n.format):"";if(ni(n,"integer")||ni(n,"number"))return 0;if(ni(n,"boolean"))return!1;if(ni(n,"array"))return[];if(ni(n,"object"))return oX(n,t);if(ni(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oK(e[n],t);if(void 0!==i)return i}},oK=(e,t)=>{if(e.length>0)for(let n of e){let e=oq(n,t);if(void 0!==e)return e}},oX=(e,t)=>{if(ni(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(e=>{if(e&&e.properties)for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}}),n}return e4()(e.default)},oJ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,oQ=(e,t,n)=>{let i="string"==typeof e?e:JSON.stringify(e);return t&&(i=t(n?`${n}.${i}`:i,i)),{label:i,value:e}},oZ=(e,t,n)=>{let i=e.title??("string"==typeof e.const?e.const:JSON.stringify(e.const));return t&&(i=e.i18n?t(e.i18n,i):t(n?`${n}.${i}`:i,i)),{label:i,value:e.const}},o0=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oS(e),d=tW(l,t.path),u=void 0===t.visible||t4(l)?t6(l,c,t.path,oD(e)):t.visible,m=t.id,h=oM(e),f=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tS((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=nr.schema(n,a,h))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=nr.schema(t.schema||h,l.scope,h),g=oA(d,p)(e),b=void 0!==p?p.description:"",_=nr.data(c,d),v=tI(l,p),y=v.show?v.text:"",w=oY(e),x=oj(e,t,l,p||h,c,w),F=p??h,k=i$()(e),E=iN()(e),C=iF(F,l,d),A=k(ik(F,l,d,"label"),y,{schema:F,uischema:l,path:d,errors:g});return{data:_,description:k(ik(F,l,d,"description"),b,{schema:F,uischema:l,path:d,errors:g}),errors:iT(g,E,k,F,l,d),label:A,visible:u,enabled:x,id:m,path:d,required:f,uischema:l,schema:F,config:oY(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:C}},o1=e=>({handleChange(t,n){e(nJ(t,()=>n))}}),o2=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,i$()(e),iF(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,i$()(e),iF(n.schema,n.uischema,n.path))];return{...n,options:i}},o5=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,i$()(e),iF(n.schema,n.uischema,n.path)));return{...n,options:i}},o4=(e,t)=>{let n=o0(e,t),i=n.schema.items;i=i&&i.$ref?tN(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>oZ(t,e.jsonforms.i18n?.translate,iF(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>oQ(t,e.jsonforms.i18n?.translate,iF(n.schema,n.uischema,n.path)));return{...n,options:o}},o3=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tE(i,`${a}`),l=rd(oS(e),s,r,n,oM(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o6=(e,t)=>{let{...n}=o0(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o8=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o6(e,t),s=nr.schema(i,"items",a.rootSchema),l=oT(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oI(e),cells:t.cells||oO(e)}},o7=e=>({addItem:(t,n)=>()=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nJ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nJ(t,e=>(oz(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nJ(t,e=>(oU(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),o9=e=>({addItem:(t,n)=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nJ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),re={visible:!0,enabled:!0,path:"",direction:"column"},rt=(e,t)=>{let n=oS(e),{uischema:i}=t,o=void 0===t.visible||t4(i)?t6(t.uischema,n,t.path,oD(e)):t.visible,r=nr.data(n,t.path),a=oY(e),s=oj(e,t,i,void 0,n,a),l=i$()(e),c=tJ(i)?iS(i,l):void 0;return{...re,renderers:t.renderers||oI(e),cells:t.cells||oO(e),visible:o,enabled:s,path:t.path,data:r,uischema:t.uischema,schema:t.schema,direction:t.direction??("HorizontalLayout"===i.type?"row":"VerticalLayout"===i.type?"column":re.direction),config:a,label:c}},rn=(e,t)=>({renderers:t.renderers||eP()(e.jsonforms,"renderers"),cells:t.cells||eP()(e.jsonforms,"cells"),schema:t.schema||oM(e),rootSchema:oM(e),uischema:t.uischema||oL(e),path:t.path,enabled:t.enabled,config:oY(e)}),ri={...re,errors:[]},ro=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o0(e,t),d=e.jsonforms.core.ajv,u=["required","additionalProperties","type","enum","const"],m=e=>!e||0===e.length||!e.find(e=>-1!==u.indexOf(e.keyword));for(let e=0;e<r[n]?.length;e++)try{let t=r[n][e];t.$ref&&(t=nr.schema(a,t.$ref,a));let s=d.compile(t);if(s(o),m(s.errors)){i=e;break}}catch(e){console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:o,schema:r,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:i,uischemas:oR(e)}},rr=(e,t)=>ro(e,t,"allOf"),ra=(e,t)=>ro(e,t,"anyOf"),rs=(e,t)=>ro(e,t,"oneOf"),rl=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o6(e,t),l=nr.schema(i,"items",s.rootSchema),c=i$()(e),d=iT(oT(n,l)(e),iN()(e),c,void 0,void 0,void 0),u=r+(r.length>0&&d.length>0?"\n":"")+d;return{...s,label:a,path:n,uischema:o,schema:l,arraySchema:i,data:s.data?s.data.length:0,errors:u,minItems:i.minItems}},rc=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t4(n)?t6(t.uischema,oS(e),t.path,oD(e)):t.visible,o=n.text,r=i$()(e),a=iw(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oY(e),renderers:t.renderers||oI(e),cells:t.cells||oO(e),uischema:n}},rd=(e,t,n,i,o,r,a)=>{let s,l=nr.data(e,t);if(n||(n=t7(i)),!n)return"";let c=eP()(l,n);if(void 0===c)return"";let d=nr.schema(i,"#"+tM(n),o);if(ne(d))s=oQ(c,r,iF(d,tU(a,n),t+"."+n));else if(t9(d)){let e=d.oneOf.find(e=>e0()(e.const,c));e&&(s=oZ(e,r,iF(e,void 0,t+"."+n)))}return s?s.label:c},ru=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oS(e),d=void 0!==t.visible?t.visible:t6(a,c,void 0,oD(e)),u=oM(e),m=oY(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oj(e,t,a,o||u,c,m));let h=i$()(e),f=iN()(e),p=iT(oA(r,o)(e),f,h,o,a,r),g=eM()(p);return{data:nr.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:g,schema:o,uischema:a,config:oY(e),rootSchema:u,renderers:s,cells:l}},rm=(e,t)=>{let n=ru(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rh=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,i$()(e),iF(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,i$()(e),iF(n.schema,n.uischema,n.path))];return{...n,options:i}},rf=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,i$()(e),iF(n.schema,n.uischema,n.path)));return{...n,options:i}},rp=o1,rg=(e,t)=>{let{handleChange:n}=rp(e);return{handleChange:t.handleChange||n}},rb=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&nr.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:ox(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),r_=e=>(...t)=>({_$litDirective$:e,values:t});class rv{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)}}let ry=r_(class extends rv{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let n in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return et}}),{I:rw}={M:N,P:P,A:B,C:1,L:ea,R:ec,D:W,V:el,I:ed,H:eu,N:eh,U:ef,B:em,F:ep},rx=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rx(e,t);return!0},rF=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rk=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rA(t)}};function rE(e){void 0!==this._$AN?(rF(this),this._$AM=e,rk(this)):this._$AM=e}function rC(e,t=!1,n=0){let i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)rx(i[e],!1),rF(i[e]);else null!=i&&(rx(i,!1),rF(i));else rx(this,e)}let rA=e=>{2==e.type&&(e._$AP??=rC,e._$AQ??=rE)};class rT extends rv{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rk(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rx(this,e),rF(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class rS{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rM{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let rL=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rD=r_(class extends rT{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rS(this),this._$CX=new rM}render(...e){return e.find(e=>!rL(e))??et}update(e,t){let n=this._$Cbt,i=n.length;this._$Cbt=t;let o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let a=t[e];if(!rL(a))return this._$Cwt=e,a;e<i&&a===n[e]||(this._$Cwt=0x3fffffff,i=0,Promise.resolve(a).then(async e=>{for(;r.get();)await r.get();let t=o.deref();if(void 0!==t){let n=t._$Cbt.indexOf(a);n>-1&&n<t._$Cwt&&(t._$Cwt=n,t.setValue(e))}}))}return et}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rI=function(e,t){return(rI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rO(e,t){function n(){this.constructor=e}rI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rR=function(){return(rR=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r$=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),rN=function(){function e(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n)),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new r$({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(e,{bubbles:n,detail:t}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(i)},e}();function rP(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},i=function(){};e.document.addEventListener("test",i,n),e.document.removeEventListener("test",i,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}function rB(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rY(n,t))return n;n=n.parentElement}return null}function rY(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var rj=function(e,t){return(rj=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rH(e,t){function n(){this.constructor=e}rj(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rz=function(){return(rz=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rU={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rW=function(e){function t(n){var i=e.call(this,rz(rz({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rH(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rU},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,i=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(r$),rV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rH(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this;return new rW({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){var t=e.root;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rG=function(e,t){return(rG=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rq(e,t){function n(){this.constructor=e}rG(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rK=function(){return(rK=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rX={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rJ=function(e){function t(n){var i=e.call(this,rK(rK({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rq(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rX.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rX.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rX.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rX.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING))},t}(r$),rQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rq(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new rJ({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rZ=function(e,t){return(rZ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r0(e,t){function n(){this.constructor=e}rZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r1=function(){return(r1=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r2={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r5={NOTCH_ELEMENT_PADDING:8},r4={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r3=function(e){function t(n){return e.call(this,r1(r1({},t.defaultAdapter),n))||this}return r0(t,e),Object.defineProperty(t,"strings",{get:function(){return r2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=r5.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(r$),r6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r0(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r2.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rW.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r4.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r4.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this;return new r3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){return e.notchElement_.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){return e.notchElement_.style.removeProperty("width")}})},t}(rN),r8=function(e,t){return(r8=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r7(e,t){function n(){this.constructor=e}r8(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r9=function(){return(r9=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},at={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},an={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ai=["touchstart","pointerdown","mousedown","keydown"],ao=["touchend","pointerup","mouseup","contextmenu"],ar=[],aa=function(e){function t(n){var i=e.call(this,r9(r9({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(e){return i.activate_(e)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return r7(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ae},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return at},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=t.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal_())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(i),e.adapter.removeClass(o),e.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(ai.forEach(function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):ao.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ai.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),ao.forEach(function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)})},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==e&&i.type!==e.type)){if(n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),void 0!==e&&ar.length>0&&ar.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(ar.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){ar=[],!n.wasElementMadeActive&&void 0!==e&&(" "===e.key||32===e.keyCode)&&(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})}}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates_(),m=u.startPoint,h=u.endPoint;c=m.x+"px, "+m.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout(function(){return e.activationTimerCallback_()},l)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var i,o,r=t.x,a=t.y,s=r+n.left,l=a+n.top;return"touchstart"===e.type?(i=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-l):(i=e.pageX-s,o=e.pageY-l),{x:i,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState_,o=i.hasDeactivationUXRun,r=i.isActivated;(o||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter.removeClass(n)},an.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=r9({},t);t.isProgrammatic?(requestAnimationFrame(function(){return e.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()}))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+t.numbers.PADDING;var n=Math.floor(e*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,o=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords_.top+"px"))},t}(r$),as=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return r7(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var i=new t(e);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n=e.CSS,i=vE;if("boolean"==typeof vE&&!t)return vE;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,t||(vE=i),i}(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,rP())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rP())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rY(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rP())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rP())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return!!this.unbounded_},set:function(e){this.unbounded_=!!e,this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new aa(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation.setUnbounded(!!this.unbounded_)},t}(rN),al={ROOT:"mdc-text-field-character-counter"},ac={ROOT_SELECTOR:"."+al.ROOT},ad=function(e){function t(n){return e.call(this,rR(rR({},t.defaultAdapter),n))||this}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return al},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ac},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(r$),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ad({setContent:function(t){e.root.textContent=t}})},t}(rN),am={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},ah={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},af={LABEL_SCALE:.75},ap=["pattern","min","max","required","step","minlength","maxlength"],ag=["color","date","datetime-local","month","range","time","week"],ab=["mousedown","touchstart"],a_=["click","keydown"],av=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rR(rR({},t.defaultAdapter),n))||this;return o.isFocused_=!1,o.receivedUserInput_=!1,o.isValid_=!0,o.useNativeValidation_=!0,o.validateOnValueChange_=!0,o.helperText_=i.helperText,o.characterCounter_=i.characterCounter,o.leadingIcon_=i.leadingIcon,o.trailingIcon_=i.trailingIcon,o.inputFocusHandler_=function(){return o.activateFocus()},o.inputBlurHandler_=function(){return o.deactivateFocus()},o.inputInputHandler_=function(){return o.handleInput()},o.setPointerXOffset_=function(e){return o.setTransformOrigin(e)},o.textFieldInteractionHandler_=function(){return o.handleTextFieldInteraction()},o.validationAttributeChangeHandler_=function(e){return o.handleValidationAttributeChange(e)},o}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ah},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return am},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return ag.indexOf(e)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),ab.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),a_.forEach(function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),ab.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),a_.forEach(function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return ap.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)}),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*af.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText_&&(this.helperText_.isPersistent()||!this.helperText_.isValidation()||!this.isValid_)&&this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!(this.isDisabled()||this.adapter.hasOutline())){var t=e.touches,n=t?t[0]:e,i=n.target.getBoundingClientRect(),o=n.clientX-i.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var i=this.helperText_.isVisible(),o=this.helperText_.getId();i&&o?this.adapter.setInputAttr(am.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(am.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,i=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(o)):this.adapter.removeClass(i),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(r$),ay={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},aw={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+ay.ROOT},ax=function(e){function t(n){return e.call(this,rR(rR({},t.defaultAdapter),n))||this}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ay},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aw},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(aw.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(ay.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(ay.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(ay.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(ay.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(ay.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(ay.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(aw.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(ay.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(ay.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(aw.ROLE,"alert")):this.adapter.removeAttr(aw.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(aw.ARIA_HIDDEN,"true")},t}(r$),aF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ax({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),ak={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aE={ROOT:"mdc-text-field__icon"},aC=["click","keydown"],aA=function(e){function t(n){var i=e.call(this,rR(rR({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return rO(t,e),Object.defineProperty(t,"strings",{get:function(){return ak},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aE},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),aC.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aC.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",ak.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(r$),aT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aA({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(aA.strings.ICON_EVENT,{},!0)}})},t}(rN),aS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r,a){void 0===e&&(e=function(e,t){return new as(e,t)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new aF(e)}),void 0===i&&(i=function(e){return new au(e)}),void 0===o&&(o=function(e){return new aT(e)}),void 0===r&&(r=function(e){return new rV(e)}),void 0===a&&(a=function(e){return new r6(e)}),this.input_=this.root.querySelector(am.INPUT_SELECTOR);var s=this.root.querySelector(am.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(am.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(am.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=ax.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(ah.HELPER_LINE),h=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=h?n(h):null;var f=ad.strings,p=this.root.querySelector(f.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(f.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var g=this.root.querySelector(am.LEADING_ICON_SELECTOR);this.leadingIcon_=g?o(g):null;var b=this.root.querySelector(am.TRAILING_ICON_SELECTOR);this.trailingIcon_=b?o(b):null,this.prefix_=this.root.querySelector(am.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(am.SUFFIX_SELECTOR),this.ripple=this.createRipple_(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.characterCounter_&&this.characterCounter_.destroy(),this.leadingIcon_&&this.leadingIcon_.destroy(),this.trailingIcon_&&this.trailingIcon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input_.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input_.required},set:function(e){this.input_.required=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input_.pattern},set:function(e){this.input_.pattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input_.minLength},set:function(e){this.input_.minLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input_.maxLength},set:function(e){e<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input_.min},set:function(e){this.input_.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input_.max},set:function(e){this.input_.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input_.step},set:function(e){this.input_.step=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix_?this.prefix_.textContent:null},set:function(e){this.prefix_&&(this.prefix_.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix_?this.suffix_.textContent:null},set:function(e){this.suffix_&&(this.suffix_.textContent=e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input_.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){return new av(rR(rR(rR(rR(rR({},this.getRootAdapterMethods_()),this.getInputAdapterMethods_()),this.getLabelAdapterMethods_()),this.getLineRippleAdapterMethods_()),this.getOutlineAdapterMethods_()),this.getFoundationMap_())},t.prototype.getRootAdapterMethods_=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(e.map(function(e){return e.attributeName}).filter(function(e){return e}))});return n.observe(e.input_,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods_=function(){var e=this;return{getNativeInput:function(){return e.input_},setInputAttr:function(t,n){e.input_.setAttribute(t,n)},removeInputAttr:function(t){e.input_.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input_},registerInputInteractionHandler:function(t,n){e.input_.addEventListener(t,n,rP())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rP())}}},t.prototype.getLabelAdapterMethods_=function(){var e=this;return{floatLabel:function(t){return e.label_&&e.label_.float(t)},getLabelWidth:function(){return e.label_?e.label_.getWidth():0},hasLabel:function(){return!!e.label_},shakeLabel:function(t){return e.label_&&e.label_.shake(t)},setLabelRequired:function(t){return e.label_&&e.label_.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods_=function(){var e=this;return{activateLineRipple:function(){e.lineRipple_&&e.lineRipple_.activate()},deactivateLineRipple:function(){e.lineRipple_&&e.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple_&&e.lineRipple_.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods_=function(){var e=this;return{closeOutline:function(){return e.outline_&&e.outline_.closeNotch()},hasOutline:function(){return!!e.outline_},notchOutline:function(t){return e.outline_&&e.outline_.notch(t)}}},t.prototype.getFoundationMap_=function(){return{characterCounter:this.characterCounter_?this.characterCounter_.foundationForTextField:void 0,helperText:this.helperText_?this.helperText_.foundationForTextField:void 0,leadingIcon:this.leadingIcon_?this.leadingIcon_.foundationForTextField:void 0,trailingIcon:this.trailingIcon_?this.trailingIcon_.foundationForTextField:void 0}},t.prototype.createRipple_=function(e){var t=this,n=this.root.classList.contains(ah.TEXTAREA),i=this.root.classList.contains(ah.OUTLINED);if(n||i)return null;var o=rR(rR({},as.createAdapter(this)),{isSurfaceActive:function(){return rY(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rP())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rP())}});return e(this.root,new aa(o))},t}(rN),aM=function(e,t){return(aM=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aL(e,t){function n(){this.constructor=e}aM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aD=function(){return(aD=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aI={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},aO={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function aR(e){return!!e.document&&"function"==typeof e.document.createElement}function a$(e,t){if(aR(e)&&t in aI){var n=e.document.createElement("div"),i=aI[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aN(e,t){if(aR(e)&&t in aO){var n=e.document.createElement("div"),i=aO[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aP={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},aB={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},aY={ANIM_END_LATCH_MS:250},aj=function(e){function t(n){var i=e.call(this,aD(aD({},t.defaultAdapter),n))||this;return i.currentCheckState_=aB.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aL(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aP},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(aP.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aP.DISABLED):this.adapter.removeClass(aP.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1},aY.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=aB.TRANSITION_STATE_UNCHECKED,i=aP.SELECTED;t===n?this.adapter.removeClass(i):this.adapter.addClass(i),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=aB.TRANSITION_STATE_INDETERMINATE,t=aB.TRANSITION_STATE_CHECKED,n=aB.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aB.TRANSITION_STATE_INIT,o=aB.TRANSITION_STATE_CHECKED,r=aB.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,u=a.ANIM_INDETERMINATE_CHECKED,m=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:if(n===r)return"";return n===o?u:m;case r:return n===o?s:l;case o:return n===r?c:d;default:return n===o?u:m}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(aB.ARIA_CHECKED_ATTR,aB.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aB.ARIA_CHECKED_ATTR)},t}(r$),aH=["checked","indeterminate"],az=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aL(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){var e=aB.DATA_INDETERMINATE_ATTR;this.nativeControl_.indeterminate="true"===this.nativeControl_.getAttribute(e),this.nativeControl_.removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation.handleChange()},this.handleAnimationEnd_=function(){return e.foundation.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(aN(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aN(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new aj({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return!!e.root.parentNode},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=aD(aD({},as.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rP())},isSurfaceActive:function(){return rY(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rP())}});return new as(this.root,new aa(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aH.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aU(o)){var r=o.get,a={configurable:o.configurable,enumerable:o.enumerable,get:r,set:function(n){o.set.call(t,n),e.foundation.handleChange()}};Object.defineProperty(t,i,a)}})},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);aH.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aU(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aB.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(rN);function aU(e){return!!e&&"function"==typeof e.set}var aW=function(e,t){return(aW=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aV(e,t){function n(){this.constructor=e}aW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aG=function(){return(aG=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aq={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aK={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aX=function(e){function t(n){return e.call(this,aG(aG({},t.defaultAdapter),n))||this}return aV(t,e),Object.defineProperty(t,"strings",{get:function(){return aK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aq},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked_(e),this.updateCheckedStyling_(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aq.DISABLED):this.adapter.removeClass(aq.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked_(t.checked),this.updateCheckedStyling_(t.checked)},t.prototype.updateCheckedStyling_=function(e){e?this.adapter.addClass(aq.CHECKED):this.adapter.removeClass(aq.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aK.ARIA_CHECKED_ATTR,""+!!e)},t}(r$),aJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aV(t,e),t.attachTo=function(e){return new t(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.changeHandler_)},t.prototype.initialSyncWithDOM=function(){var e=this;this.changeHandler_=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(t=e.foundation).handleChange.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n))},this.nativeControl_.addEventListener("change",this.changeHandler_),this.checked=this.checked},t.prototype.getDefaultFoundation=function(){var e=this;return new aX({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlChecked:function(t){return e.nativeControl_.checked=t},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple_=function(){var e=this,t=aX.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aG(aG({},as.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rP())},isSurfaceActive:function(){return rY(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rP())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new as(this.root,new aa(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aX.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rN),aQ=function(e,t){return(aQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aZ(e,t){function n(){this.constructor=e}aQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a0=function(){return(a0=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a1="mdc-slider--disabled",a2="mdc-slider__thumb",a5="mdc-slider__thumb--top",a4="mdc-slider__thumb--with-indicator",a3="mdc-slider__tick-marks",a6="mdc-slider__tick-mark--active",a8="mdc-slider__tick-mark--inactive",a7="disabled",a9="value",se="step";(_h=vC||(vC={}))[_h.ACTIVE=0]="ACTIVE",_h[_h.INACTIVE=1]="INACTIVE",(_f=vA||(vA={}))[_f.START=1]="START",_f[_f.END=2]="END";var st="u">typeof window,sn=function(e){function t(n){var i=e.call(this,a0(a0({},t.defaultAdapter),n))||this;return i.initialStylesRemoved=!1,i.isDisabled=!1,i.isDiscrete=!1,i.step=1,i.hasTickMarks=!1,i.isRange=!1,i.thumb=null,i.downEventClientX=null,i.startThumbKnobWidth=0,i.endThumbKnobWidth=0,i}return aZ(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(a1),this.isDiscrete=this.adapter.hasClass("mdc-slider--discrete"),this.hasTickMarks=this.adapter.hasClass("mdc-slider--tick-marks"),this.isRange=this.adapter.hasClass("mdc-slider--range");var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("min",this.isRange?vA.START:vA.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",vA.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,vA.END),a9),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,vA.START),a9):t;this.validateProperties({min:t,max:n,value:i,valueStart:o}),this.min=t,this.max=n,this.value=i,this.valueStart=o,this.valueBeforeDownEvent=i,this.valueStartBeforeDownEvent=o;var r=this.adapter.getInputAttribute(se,vA.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,se)),this.step<=0)throw Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){e.handleInputChange(vA.START)},this.inputEndChangeListener=function(){e.handleInputChange(vA.END)},this.inputStartFocusListener=function(){e.handleInputFocus(vA.START)},this.inputEndFocusListener=function(){e.handleInputFocus(vA.END)},this.inputStartBlurListener=function(){e.handleInputBlur(vA.START)},this.inputEndBlurListener=function(){e.handleInputBlur(vA.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart)throw Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(e,vA.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value)throw Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+")");this.updateValue(e,vA.START)},t.prototype.getStep=function(){return this.step},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(a1),this.isRange&&this.adapter.setInputAttribute(a7,"",vA.START),this.adapter.setInputAttribute(a7,"",vA.END)):(this.adapter.removeClass(a1),this.isRange&&this.adapter.removeInputAttribute(a7,vA.START),this.adapter.removeInputAttribute(a7,vA.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(vA.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(vA.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null===this.thumb||(this.handleDragStart(e,n,this.thumb),this.isRange&&n>=this.valueStart&&n<=this.value||this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var i=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var e=this.thumb===vA.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===vA.START?this.valueStart:this.value;e!==t&&this.adapter.emitChangeEvent(t,this.thumb),this.adapter.emitDragEndEvent(t,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(a4,vA.START),this.adapter.addThumbClass(a4,vA.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(vA.START)||this.adapter.isInputFocused(vA.END)||(this.adapter.removeThumbClass(a4,vA.START),this.adapter.removeThumbClass(a4,vA.END))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var i=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",i),t.adapter.deregisterEventHandler("touchend",i)};this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(e)},t.prototype.handlePointerdown=function(e){this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e)},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===vA.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a4,e),this.isRange)){var t=e===vA.START?vA.END:vA.START;this.adapter.addThumbClass(a4,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a4,e),this.isRange)){var t=e===vA.START?vA.END:vA.START;this.adapter.removeThumbClass(a4,t)}},t.prototype.handleDragStart=function(e,t,n){this.adapter.focusInput(n),e.preventDefault(),this.adapter.emitDragStartEvent(t,n)},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return vA.END;var n=this.adapter.getThumbBoundingClientRect(vA.START),i=this.adapter.getThumbBoundingClientRect(vA.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?vA.START:r?vA.END:t<this.valueStart?vA.START:t>this.value?vA.END:null},t.prototype.getThumbFromMoveEvent=function(e){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw Error("`downEventClientX` is null after move event.");return 5>Math.abs(this.downEventClientX-e)?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?vA.END:vA.START:this.adapter.isRTL()?vA.START:vA.END},t.prototype.updateUI=function(e){this.updateThumbAndInputAttributes(e),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===vA.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(a9,n,e),this.isRange&&e===vA.START?this.adapter.setInputAttribute("min",n,vA.END):this.isRange&&e===vA.END&&this.adapter.setInputAttribute("max",n,vA.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var i=this.adapter.getValueToAriaValueTextFn();i&&this.adapter.setInputAttribute("aria-valuetext",i(t),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===vA.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===vA.START?vA.START:vA.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,vA.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(vC.INACTIVE),o=Array.from({length:t}).fill(vC.ACTIVE),r=Array.from({length:n}).fill(vC.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(r))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:this.quantize(n)},t.prototype.updateValue=function(e,t,n){var i=void 0===n?{}:n,o=i.emitInputEvent,r=i.emitChangeEvent;if(e=this.clampValue(e,t),this.isRange&&t===vA.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),o&&this.adapter.emitInputEvent(t===vA.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===vA.START?this.valueStart:this.value,t)},t.prototype.quantize=function(e){return Math.round(e/this.step)*this.step},t.prototype.clampValue=function(e,t){return(e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===vA.START&&e>this.value)?this.value:this.isRange&&t===vA.END&&e<this.valueStart?this.valueStart:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,i=this.min,o=(this.value-this.valueStart)/(n-i),r=o*this.rect.width,a=this.adapter.isRTL(),s=st?a$(window,"transform"):"transform";if(this.isRange){var l=this.adapter.isRTL()?(n-this.value)/(n-i)*this.rect.width:(this.valueStart-i)/(n-i)*this.rect.width,c=l+r;requestAnimationFrame(function(){!a&&e===vA.START||a&&e!==vA.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","unset"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-c+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","unset"),t.adapter.setTrackActiveStyleProperty("left",l+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")");var n=a?c:l,i=t.adapter.isRTL()?l:c;e!==vA.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",vA.START),e!==vA.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",vA.END),t.removeInitialStyles(a),t.updateOverlappingThumbsUI(n,i,e)})}else requestAnimationFrame(function(){var e=a?t.rect.width-r:r;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",vA.END),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")"),t.removeInitialStyles(a)})},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,vA.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,vA.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=st?a$(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,vA.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,vA.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,vA.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,vA.START)})}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var i=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;i=t+this.endThumbKnobWidth/2>=o}else i=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2;i?(this.adapter.addThumbClass(a5,n||vA.END),this.adapter.removeThumbClass(a5,n===vA.START?vA.END:vA.START)):(this.adapter.removeThumbClass(a5,vA.START),this.adapter.removeThumbClass(a5,vA.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,i=e.value,o=e.valueStart;if(t>=n)throw Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+t+", max: ")+n+"]");if(this.isRange){if(i<t||i>n||o<t||o>n)throw Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+o+", end value: ")+i+"]");if(o>i)throw Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+o+", end value: ")+i+"]")}else if(i<t||i>n)throw Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+i)},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(vA.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(vA.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(vA.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(vA.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(vA.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(vA.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(vA.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(vA.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(vA.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(vA.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(vA.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(vA.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(vA.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(vA.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(vA.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(vA.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(vA.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(vA.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(vA.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(vA.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=st&&!!window.PointerEvent,t}(r$),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return aZ(t,e),t.attachTo=function(e,n){return void 0===n&&(n={}),new t(e,void 0,n)},t.prototype.getDefaultFoundation=function(){var e=this;return new sn({hasClass:function(t){return e.root.classList.contains(t)},addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},addThumbClass:function(t,n){e.getThumbEl(n).classList.add(t)},removeThumbClass:function(t,n){e.getThumbEl(n).classList.remove(t)},getAttribute:function(t){return e.root.getAttribute(t)},getInputValue:function(t){return e.getInput(t).value},setInputValue:function(t,n){e.getInput(n).value=t},getInputAttribute:function(t,n){return e.getInput(n).getAttribute(t)},setInputAttribute:function(t,n,i){e.getInput(i).setAttribute(t,n)},removeInputAttribute:function(t,n){e.getInput(n).removeAttribute(t)},focusInput:function(t){e.getInput(t).focus()},isInputFocused:function(t){return e.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return e.getThumbEl(t).querySelector(".mdc-slider__thumb-knob").getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return e.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return e.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(e.root).direction},setThumbStyleProperty:function(t,n,i){e.getThumbEl(i).style.setProperty(t,n)},removeThumbStyleProperty:function(t,n){e.getThumbEl(n).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,n){e.trackActive.style.setProperty(t,n)},removeTrackActiveStyleProperty:function(t){e.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,n){e.getThumbEl(n).querySelector(".mdc-slider__value-indicator-text").textContent=String(t)},getValueToAriaValueTextFn:function(){return e.valueToAriaValueTextFn},updateTickMarks:function(t){var n=e.root.querySelector("."+a3);n||((n=document.createElement("div")).classList.add(a3),e.root.querySelector(".mdc-slider__track").appendChild(n)),t.length!==n.children.length?(n.innerHTML="",e.addTickMarks(n,t)):e.updateTickMarks(n,t)},setPointerCapture:function(t){e.root.setPointerCapture(t)},emitChangeEvent:function(t,n){e.emit("MDCSlider:change",{value:t,thumb:n})},emitInputEvent:function(t,n){e.emit("MDCSlider:input",{value:t,thumb:n})},emitDragStartEvent:function(t,n){e.getRipple(n).activate()},emitDragEndEvent:function(t,n){e.getRipple(n).deactivate()},registerEventHandler:function(t,n){e.listen(t,n)},deregisterEventHandler:function(t,n){e.unlisten(t,n)},registerThumbEventHandler:function(t,n,i){e.getThumbEl(t).addEventListener(n,i)},deregisterThumbEventHandler:function(t,n,i){e.getThumbEl(t).removeEventListener(n,i)},registerInputEventHandler:function(t,n,i){e.getInput(t).addEventListener(n,i)},deregisterInputEventHandler:function(t,n,i){e.getInput(t).removeEventListener(n,i)},registerBodyEventHandler:function(e,t){document.body.addEventListener(e,t)},deregisterBodyEventHandler:function(e,t){document.body.removeEventListener(e,t)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)}})},t.prototype.initialize=function(e){var t=(void 0===e?{}:e).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll(".mdc-slider__input")),this.thumbs=[].slice.call(this.root.querySelectorAll("."+a2)),this.trackActive=this.root.querySelector(".mdc-slider__track--active_fill"),this.ripples=this.createRipples(),t&&(this.skipInitialUIUpdate=!0)},t.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getValueStart=function(){return this.foundation.getValueStart()},t.prototype.setValueStart=function(e){this.foundation.setValueStart(e)},t.prototype.getValue=function(){return this.foundation.getValue()},t.prototype.setValue=function(e){this.foundation.setValue(e)},t.prototype.getDisabled=function(){return this.foundation.getDisabled()},t.prototype.setDisabled=function(e){this.foundation.setDisabled(e)},t.prototype.setValueToAriaValueTextFn=function(e){this.valueToAriaValueTextFn=e},t.prototype.getThumbEl=function(e){return e===vA.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===vA.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===vA.END?this.ripples[this.ripples.length-1]:this.ripples[0]},t.prototype.addTickMarks=function(e,t){for(var n=document.createDocumentFragment(),i=0;i<t.length;i++){var o=document.createElement("div"),r=t[i]===vC.ACTIVE?a6:a8;o.classList.add(r),n.appendChild(o)}e.appendChild(n)},t.prototype.updateTickMarks=function(e,t){for(var n=Array.from(e.children),i=0;i<n.length;i++)t[i]===vC.ACTIVE?(n[i].classList.add(a6),n[i].classList.remove(a8)):(n[i].classList.add(a8),n[i].classList.remove(a6))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a2)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a0(a0({},as.createAdapter(n)),{addClass:function(e){o.classList.add(e)},computeBoundingRect:function(){return o.getBoundingClientRect()},deregisterInteractionHandler:function(e,t){r.removeEventListener(e,t)},isSurfaceActive:function(){return rY(r,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(e,t){r.addEventListener(e,t)},removeClass:function(e){o.classList.remove(e)},updateCssVariable:function(e,t){o.style.setProperty(e,t)}}),s=new as(o,new aa(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rN),so=function(e,t){return(so=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sr(e,t){function n(){this.constructor=e}so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sa=function(){return(sa=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ss={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},sl={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:'button:not(:disabled), [href]:not([aria-disabled="true"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'},sc={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(_p=vT||(vT={}))[_p.BOTTOM=1]="BOTTOM",_p[_p.CENTER=2]="CENTER",_p[_p.RIGHT=4]="RIGHT",_p[_p.FLIP_RTL=8]="FLIP_RTL",(_g=vS||(vS={}))[_g.TOP_LEFT=0]="TOP_LEFT",_g[_g.TOP_RIGHT=4]="TOP_RIGHT",_g[_g.BOTTOM_LEFT=1]="BOTTOM_LEFT",_g[_g.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",_g[_g.TOP_START=8]="TOP_START",_g[_g.TOP_END=12]="TOP_END",_g[_g.BOTTOM_START=9]="BOTTOM_START",_g[_g.BOTTOM_END=13]="BOTTOM_END";var sd=function(e,t){return(sd=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function su(e,t){function n(){this.constructor=e}sd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sm=function(){return(sm=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sh=function(e,t){return(sh=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sf(e,t){function n(){this.constructor=e}sh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sp=function(){return(sp=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sg={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},sb={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+sg.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sg.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+sg.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sg.LIST_ITEM_CLASS+" a,\n ."+sg.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+sg.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},s_={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sv="Backspace",sy="Enter",sw="Spacebar",sx="PageUp",sF="PageDown",sk="Home",sE="ArrowLeft",sC="ArrowUp",sA="ArrowRight",sT="ArrowDown",sS="Delete",sM="Escape",sL=new Set;sL.add(sv),sL.add(sy),sL.add(sw),sL.add(sx),sL.add(sF),sL.add("End"),sL.add(sk),sL.add(sE),sL.add(sC),sL.add(sA),sL.add(sT),sL.add(sS),sL.add(sM);var sD=new Map;sD.set(8,sv),sD.set(13,sy),sD.set(32,sw),sD.set(33,sx),sD.set(34,sF),sD.set(35,"End"),sD.set(36,sk),sD.set(37,sE),sD.set(38,sC),sD.set(39,sA),sD.set(40,sT),sD.set(46,sS),sD.set(27,sM);var sI=new Set;function sO(e){var t=e.key;if(sL.has(t))return t;var n=sD.get(e.keyCode);return n||"Unknown"}sI.add(sx),sI.add(sF),sI.add("End"),sI.add(sk),sI.add(sE),sI.add(sC),sI.add(sA),sI.add(sT);var sR=["input","button","textarea","select"],s$=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sR.indexOf(n)&&e.preventDefault()}};function sN(e,t){var n,i=e.nextChar,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.focusedItemIndex,s=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){sB(t)},s_.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var o,r=i.typeaheadBuffer[0],a=e.get(r);if(!a)return -1;if(r===i.currentFirstChar&&a[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%a.length;var s=a[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var l=-1;for(o=0;o<a.length;o++)if(!n(a[o].index)){l=o;break}for(;o<a.length;o++)if(a[o].index>t&&!n(a[o].index)){l=o;break}return -1!==l?(i.sortedIndexCursor=l,a[i.sortedIndexCursor].index):-1}(r,a,l,t):function(e,t,n){var i=n.typeaheadBuffer[0],o=e.get(i);if(!o)return -1;var r=o[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;for(var a=(n.sortedIndexCursor+1)%o.length,s=-1;a!==n.sortedIndexCursor;){var l=o[a],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(l.index);if(c&&d){s=a;break}a=(a+1)%o.length}return -1!==s?(n.sortedIndexCursor=s,o[n.sortedIndexCursor].index):-1}(r,l,t))||s||o(n),n}function sP(e){return e.typeaheadBuffer.length>0}function sB(e){e.typeaheadBuffer=""}function sY(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===sO(n),c="ArrowUp"===sO(n),d="ArrowRight"===sO(n),u="ArrowDown"===sO(n),m="Home"===sO(n),h="End"===sO(n),f="Enter"===sO(n),p="Spacebar"===sO(n);if(l||c||d||u||m||h||f)return -1;if(!p&&1===n.key.length){s$(n);var g={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(g,t)}if(!p)return -1;if(i&&s$(n),i&&sP(t)){var g={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(g,t)}return -1}var sj=function(e){function t(n){var i=e.call(this,sp(sp({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=s_.UNSET_INDEX,i.focusedItemIndex=s_.UNSET_INDEX,i.useActivatedClass_=!1,i.useSelectedAttr_=!1,i.ariaCurrentAttrValue_=null,i.isCheckboxList_=!1,i.isRadioList_=!1,i.hasTypeahead=!1,i.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},i.sortedIndexByFirstChar=new Map,i}return sf(t,e),Object.defineProperty(t,"strings",{get:function(){return sb},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return sg},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.setWrapFocus=function(e){this.wrapFocus_=e},t.prototype.setVerticalOrientation=function(e){this.isVertical_=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},t.prototype.maybeInitializeSingleSelection=function(){for(var e=0;e<this.adapter.getListItemCount();e++){var t=this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_ACTIVATED_CLASS);if(t||n){n&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=e;return}}},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&sP(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr_=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex_},t.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},t.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},t.prototype.handleFocusOut=function(e,t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.handleKeydown=function(e,t,n){var i=this,o="ArrowLeft"===sO(e),r="ArrowUp"===sO(e),a="ArrowRight"===sO(e),s="ArrowDown"===sO(e),l="Home"===sO(e),c="End"===sO(e),d="Enter"===sO(e),u="Spacebar"===sO(e),m="A"===e.key||"a"===e.key;if(this.adapter.isRootFocused()){if(r||c?(e.preventDefault(),this.focusLastElement()):(s||l)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var h={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}};sY(h,this.typeaheadState)}return}var f=this.adapter.getFocusedElementIndex();if(-1!==f||!((f=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)s$(e),this.focusNextElement(f);else if(this.isVertical_&&r||!this.isVertical_&&o)s$(e),this.focusPrevElement(f);else if(l)s$(e),this.focusFirstElement();else if(c)s$(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===s_.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(s$(e),this.adapter.listItemAtIndexHasClass(f,sg.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(f),this.adapter.notifyAction(f))}if(this.hasTypeahead){var h={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}};sY(h,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===s_.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e+1;if(n>=t)if(!this.wrapFocus_)return e;else n=0;return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0)if(!this.wrapFocus_)return e;else t=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sb.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sb.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=sg.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=sg.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==s_.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===s_.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sb.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sb.ARIA_CURRENT:sb.ARIA_SELECTED;if(this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==s_.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sb.ARIA_SELECTED:sb.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex_=e},t.prototype.setCheckboxAtIndex_=function(e){for(var t=this.getSelectionAttribute(),n=0;n<this.adapter.getListItemCount();n++){var i=!1;e.indexOf(n)>=0&&(i=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,i),this.adapter.setAttributeForElementIndex(n,t,i?"true":"false")}this.selectedIndex_=e},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===s_.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===e||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==s_.UNSET_INDEX?e=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce(function(e,t){return Math.min(e,t)}))),e},t.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return t.isIndexInRange_(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===s_.UNSET_INDEX},t.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction_=function(e,t){void 0===t&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex_=function(e,t){var n=this.getSelectionAttribute(),i=this.adapter.isCheckboxCheckedAtIndex(e);t&&(i=!i,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,i)),this.adapter.setAttributeForElementIndex(e,n,i?"true":"false");var o=this.selectedIndex_===s_.UNSET_INDEX?[]:this.selectedIndex_.slice();i?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex_=o},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount();if(e.length===t)this.setCheckboxAtIndex_([]);else{for(var n=[],i=0;i<t;i++)(!this.adapter.listItemAtIndexHasClass(i,sg.LIST_ITEM_DISABLED_CLASS)||e.indexOf(i)>-1)&&n.push(i);this.setCheckboxAtIndex_(n)}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),sN({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,i=0;i<e;i++){var o=t(i).trim();if(o){var r=o[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:o.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){sB(this.typeaheadState)},t}(r$),sH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sf(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+sg.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!0,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},t.prototype.layout=function(){var e=this.root.getAttribute(sb.ARIA_ORIENTATION);this.vertical=e!==sb.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(e){e.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(sb.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+sg.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+sg.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sb.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sb.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sb.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(i,function(t){return e.listElements.indexOf(t)})}else n&&(this.selectedIndex=this.listElements.indexOf(n))},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this;return new sj({addClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.add(n)},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(sb.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sb.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sb.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(n)},notifyAction:function(t){e.emit(sb.ACTION_EVENT,{index:t},!0)},removeClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.remove(n)},setAttributeForElementIndex:function(t,n,i){var o=e.listElements[t];o&&o.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var i=e.listElements[t].querySelector(sb.CHECKBOX_RADIO_SELECTOR);i.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var i=e.listElements[t];[].slice.call(i.querySelectorAll(sb.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rB(e.target,"."+sg.LIST_ITEM_CLASS+", ."+sg.ROOT);return t&&rY(t,"."+sg.LIST_ITEM_CLASS)?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusIn(e,t)},t.prototype.handleFocusOutEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusOut(e,t)},t.prototype.handleKeydownEvent_=function(e){var t=this.getListItemIndex_(e),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(sg.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rY(e.target,sb.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rN),sz=function(e,t){return(sz=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sU(e,t){function n(){this.constructor=e}sz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sW=function(){return(sW=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sV=function(e){function t(n){var i=e.call(this,sW(sW({},t.defaultAdapter),n))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=vS.TOP_START,i.originCorner=vS.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ss},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sl},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return vS},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^vT.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.adapter.addClass(t.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},sc.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;void 0===e&&(e=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},sc.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()))},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){this.measurements=this.getAutoLayoutmeasurements();var e,n=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,vT.BOTTOM)?"bottom":"top",r=this.hasBit(n,vT.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),l=this.measurements,c=l.anchorSize,d=l.surfaceSize,u=((e={})[r]=a,e[o]=s,e);c.width/d.width>sc.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(u),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(u),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,vT.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function(){var e,n,i,o,r=this.originCorner,a=this.measurements,s=a.viewportDistance,l=a.anchorSize,c=a.surfaceSize,d=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,vT.BOTTOM)?(e=s.top-d+l.height+this.anchorMargin.bottom,n=s.bottom-d-this.anchorMargin.bottom):(e=s.top-d+this.anchorMargin.top,n=s.bottom-d+l.height-this.anchorMargin.top),!(n-c.height>0)&&e>=n&&(r=this.setBit(r,vT.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,vT.FLIP_RTL),h=this.hasBit(this.anchorCorner,vT.RIGHT)||this.hasBit(r,vT.RIGHT),f=!1;(f=u&&m?!h:h)?(i=s.left+l.width+this.anchorMargin.right,o=s.right-this.anchorMargin.right):(i=s.left+this.anchorMargin.left,o=s.right+l.width-this.anchorMargin.left);var p=i-c.width>0,g=o-c.width>0,b=this.hasBit(r,vT.FLIP_RTL)&&this.hasBit(r,vT.RIGHT);return g&&b&&u||!p&&b?r=this.unsetBit(r,vT.RIGHT):(p&&f&&u||p&&!f&&h||!g&&i>=o)&&(r=this.setBit(r,vT.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,vT.BOTTOM),r=this.hasBit(this.anchorCorner,vT.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return o?(i=n.top+this.anchorMargin.top-a,r||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,r&&(i-=this.measurements.anchorSize.height)),i},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,vT.RIGHT),i=this.hasBit(this.anchorCorner,vT.RIGHT);if(n){var o=i?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return i?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,vT.BOTTOM),i=this.hasBit(this.anchorCorner,vT.BOTTOM);return n?i?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,a=Object.keys(e);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=s.next();!l.done;l=s.next()){var c=l.value,d=e[c]||0;d+=r[c],this.isFixedPosition||("top"===c?d+=o.y:"bottom"===c?d-=o.y:"left"===c?d+=o.x:d-=o.x),e[c]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},t.prototype.hasBit=function(e,t){return!!(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(r$),sG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sU(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(ss.ANCHOR)?t:null,this.root.classList.contains(ss.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(sl.OPENED_EVENT,this.registerBodyClickListener),this.listen(sl.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sl.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sl.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!0,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(ss.FIXED):this.root.classList.remove(ss.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new sV({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(sV.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sV.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n,i,o=(n=window,void 0===i&&(i=!1),(void 0===vM||i)&&(vM="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),vM+"-origin");e.root.style.setProperty(o,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}})},t}(rN),sq={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sK={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sX={FOCUS_ROOT_INDEX:-1};(_b=vL||(vL={}))[_b.NONE=0]="NONE",_b[_b.LIST_ROOT=1]="LIST_ROOT",_b[_b.FIRST_ITEM=2]="FIRST_ITEM",_b[_b.LAST_ITEM=3]="LAST_ITEM";var sJ=function(e){function t(n){var i=e.call(this,sm(sm({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=vL.LIST_ROOT,i}return su(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sq},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return -1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return -1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);n<0||(this.adapter.notifySelected({index:n}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},sV.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case vL.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case vL.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case vL.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,sK.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sq.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sq.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw Error("MDCMenuFoundation: No list item at specified index.")},t}(r$),sQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sG(e)}),void 0===t&&(t=function(e){return new sH(e)}),this.menuSurfaceFactory_=e,this.listFactory_=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface_=this.menuSurfaceFactory_(this.root);var t=this.root.querySelector(sK.LIST_SELECTOR);t?(this.list_=this.listFactory_(t),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(t){return e.foundation.handleKeydown(t)},this.handleItemAction_=function(t){return e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened_=function(){return e.foundation.handleMenuSurfaceOpened()},this.menuSurface_.listen(sV.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sj.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sV.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sj.strings.ACTION_EVENT,this.handleItemAction_),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(e){e?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list_&&this.list_.wrapFocus},set:function(e){this.list_&&(this.list_.wrapFocus=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list_&&(this.list_.hasTypeahead=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list_&&this.list_.typeaheadInProgress},enumerable:!0,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list_?this.list_.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list_&&this.list_.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list_&&(this.list_.singleSelection=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list_?this.list_.selectedIndex:s_.UNSET_INDEX},set:function(e){this.list_&&(this.list_.selectedIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface_.quickOpen=e},enumerable:!0,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface_.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface_.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list_&&this.list_.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface_.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface_.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface_.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface_.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this;return new sJ({addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,i){e.items[t].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){return e.menuSurface_.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(sK.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){return e.items[t].focus()},focusListRoot:function(){return e.root.querySelector(sK.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rB(e.items[t],"."+sq.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rB(e.items[t],"."+sq.MENU_SELECTION_GROUP).querySelector("."+sq.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rN),sZ={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},s0={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},s1={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s2=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s1.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sZ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return -1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return -1}}},enumerable:!0,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===s1.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==s1.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(sZ.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(sZ.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(sZ.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(sZ.FOCUSED),n=e||t,i=this.adapter.hasClass(sZ.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(e>=0?e:0)}},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(sZ.ACTIVATED),this.isMenuOpen=!1,this.adapter.setSelectAnchorAttr("aria-expanded","false"),this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(sZ.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){if(!this.disabled&&!this.recentlyClicked){if(this.setClickDebounceTimeout(),this.isMenuOpen)return void this.adapter.closeMenu();this.adapter.setRippleCenter(e),this.openMenu()}},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(sZ.FOCUSED)){var t=sO(e)===sy,n=sO(e)===sw,i=sO(e)===sC,o=sO(e)===sT;if(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress()){var r=n?" ":e.key,a=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());a>=0&&this.setSelectedIndex(a),e.preventDefault();return}(t||n||i||o)&&(i&&this.getSelectedIndex()>0?this.setSelectedIndex(this.getSelectedIndex()-1):o&&this.getSelectedIndex()<this.adapter.getMenuItemCount()-1&&this.setSelectedIndex(this.getSelectedIndex()+1),this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(sZ.FOCUSED);if(e){var n=s1.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(sZ.INVALID),this.adapter.removeMenuClass(sZ.MENU_INVALID)):(this.adapter.addClass(sZ.INVALID),this.adapter.addMenuClass(sZ.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(sZ.REQUIRED)&&!this.adapter.hasClass(sZ.DISABLED)?this.getSelectedIndex()!==s1.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(sZ.REQUIRED):this.adapter.removeClass(sZ.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(vS.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(sZ.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(sZ.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(sZ.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(s0.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s0.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s1.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(r$),s5={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s4={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s3=function(e){function t(n){return e.call(this,sa(sa({},t.defaultAdapter),n))||this}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(s5.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s5.ROLE):this.adapter.setAttr(s5.ROLE,"alert");return}this.adapter.removeAttr(s5.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s5.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s5.ARIA_HIDDEN,"true")},t}(r$),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),s8={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},s7=["click","keydown"],s9=function(e){function t(n){var i=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return sr(t,e),Object.defineProperty(t,"strings",{get:function(){return s8},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),s7.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;s7.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",s8.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(r$),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s9({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(s9.strings.ICON_EVENT,{},!0)}})},t}(rN),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r){if(void 0===e&&(e=function(e){return new rV(e)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new r6(e)}),void 0===i&&(i=function(e){return new sQ(e)}),void 0===o&&(o=function(e){return new le(e)}),void 0===r&&(r=function(e){return new s6(e)}),this.selectAnchor=this.root.querySelector(s0.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s0.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s0.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s0.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s0.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s0.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s0.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s0.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s0.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s0.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(sZ.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sK.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value){this.foundation.setValue(this.hiddenInput.value,!0),this.foundation.layout();return}this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sK.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s2(sa(sa(sa(sa({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s0.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sa(sa({},as.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new as(this.selectAnchor,new aa(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(s0.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){var n=e.selectedIndex;e.emit(s0.CHANGE_EVENT,{value:t,index:n},!0),e.hiddenInput&&(e.hiddenInput.value=t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return!!e.outline},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return!!e.touches},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(rN),ln=function(e,t){return(ln=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function li(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lo=function(){return(lo=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lr={ROOT:"mdc-form-field"},la={LABEL_SELECTOR:".mdc-form-field > label"},ls=function(e){function t(n){var i=e.call(this,lo(lo({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return li(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lr},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return la},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(r$),ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=ls.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new ls({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var i=e.labelEl();i&&i.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var i=e.labelEl();i&&i.addEventListener(t,n)}})},t}(rN),lc=function(e,t){return(lc=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ld(e,t){function n(){this.constructor=e}lc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lu=function(){return(lu=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lm={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lh={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},lf=function(e){function t(n){var i=e.call(this,lu(lu({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return ld(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lm},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lh},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(lh.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lh.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lh.ARIA_PRESSED))throw Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(lh.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(lm.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lm.ICON_BUTTON_ON):this.adapter.removeClass(lm.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lh.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lh.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lh.ARIA_LABEL,t||"")}else this.adapter.setAttr(lh.ARIA_PRESSED,""+e)},t}(r$),lp=lf.strings,lg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return ld(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new lf({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lp.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple=function(){var e=new as(this.root);return e.unbounded=!0,e},t}(rN);n(44532),(__=vD||(vD={})).CREATE="CREATE",__.UPDATE="UPDATE",__.DELETE="DELETE",__.DELETE_FINISHED="DELETE_FINISHED",(_v=vI||(vI={})).LOW="LOW",_v.MEDIUM="MEDIUM",_v.HIGH="HIGH",(_y=vO||(vO={})).MANUAL="MANUAL",_y.CLIENT="CLIENT",_y.GLOBAL_RULESET="GLOBAL_RULESET",_y.REALM_RULESET="REALM_RULESET",_y.ASSET_RULESET="ASSET_RULESET",_y.AGENT="AGENT",(_w=vR||(vR={})).OPEN="OPEN",_w.ACKNOWLEDGED="ACKNOWLEDGED",_w.IN_PROGRESS="IN_PROGRESS",_w.RESOLVED="RESOLVED",_w.CLOSED="CLOSED",(_x=v$||(v$={})).BOTTOM_LEFT="BOTTOM_LEFT",_x.BOTTOM_RIGHT="BOTTOM_RIGHT",_x.TOP_LEFT="TOP_LEFT",_x.TOP_RIGHT="TOP_RIGHT",(_F=vN||(vN={})).CREATE="CREATE",_F.READ="READ",_F.UPDATE="UPDATE",_F.DELETE="DELETE",(_k=vP||(vP={})).NONE="NONE",_k.FORECAST="FORECAST",_k.SETPOINT="SETPOINT",(_E=vB||(vB={})).DISCONNECTED="DISCONNECTED",_E.CONNECTING="CONNECTING",_E.DISCONNECTING="DISCONNECTING",_E.CONNECTED="CONNECTED",_E.DISABLED="DISABLED",_E.WAITING="WAITING",_E.ERROR="ERROR",_E.STOPPED="STOPPED",(_C=vY||(vY={})).REQUEST_START="REQUEST_START",_C.REQUEST_REPEATING="REQUEST_REPEATING",_C.REQUEST_CANCEL="REQUEST_CANCEL",_C.READY="READY",_C.COMPLETED="COMPLETED",_C.RUNNING="RUNNING",_C.CANCELLED="CANCELLED",(_A=vj||(vj={})).TOGGLE="TOGGLE",_A.INCREMENT="INCREMENT",_A.DECREMENT="DECREMENT",_A.NEGATE="NEGATE",(_T=vH||(vH={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",_T.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",_T.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",_T.INVALID_VALUE="INVALID_VALUE",_T.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",_T.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",_T.CANNOT_PROCESS="CANNOT_PROCESS",_T.QUEUE_FULL="QUEUE_FULL",_T.UNKNOWN="UNKNOWN",_T.ASSET_ID_MISSING="ASSET_ID_MISSING",_T.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(_S=vz||(vz={})).PUBLIC="PUBLIC",_S.SHARED="SHARED",_S.PRIVATE="PRIVATE",(_M=vU||(vU={})).OFF="OFF",_M.ONE_MIN="ONE_MIN",_M.FIVE_MIN="FIVE_MIN",_M.QUARTER="QUARTER",_M.ONE_HOUR="ONE_HOUR",(_L=vW||(vW={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",_L.KEEP_LAYOUT="KEEP_LAYOUT",_L.REDIRECT="REDIRECT",_L.BLOCK_DEVICE="BLOCK_DEVICE",(_D=vV||(vV={})).CSV="CSV",_D.CSV_CROSSTAB="CSV_CROSSTAB",_D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(_I=vG||(vG={})).MINUTE="MINUTE",_I.HOUR="HOUR",_I.DAY="DAY",_I.WEEK="WEEK",_I.MONTH="MONTH",_I.YEAR="YEAR",(_O=vq||(vq={})).MIN="MIN",_O.AVG="AVG",_O.MAX="MAX",_O.DIFFERENCE="DIFFERENCE",_O.COUNT="COUNT",_O.SUM="SUM",_O.MODE="MODE",_O.MEDIAN="MEDIAN",(_R=vK||(vK={})).TERMINATING="TERMINATING",_R.DISABLED="DISABLED",_R.ALREADY_CONNECTED="ALREADY_CONNECTED",_R.UNRECOGNISED="UNRECOGNISED",_R.PERMANENT_ERROR="PERMANENT_ERROR",_R.SYNC_ERROR="SYNC_ERROR",(_$=vX||(vX={})).HTTPS="HTTPS",_$.HTTP="HTTP",_$.TCP="TCP",(_N=vJ||(vJ={})).GET="GET",_N.POST="POST",_N.PUT="PUT",_N.DELETE="DELETE",_N.OPTIONS="OPTIONS",_N.PATCH="PATCH",(_P=vQ||(vQ={})).KEYCLOAK="KEYCLOAK",_P.NONE="NONE",(_B=vZ||(vZ={})).WEBSOCKET="WEBSOCKET",_B.POLLING="POLLING",(_Y=v0||(v0={})).INTERNAL="INTERNAL",_Y.CLIENT="CLIENT",_Y.GLOBAL_RULESET="GLOBAL_RULESET",_Y.REALM_RULESET="REALM_RULESET",_Y.ASSET_RULESET="ASSET_RULESET",(_j=v1||(v1={})).REALM="REALM",_j.USER="USER",_j.ASSET="ASSET",_j.CUSTOM="CUSTOM",(_H=v2||(v2={})).NORMAL="NORMAL",_H.HIGH="HIGH",(_z=v5||(v5={})).DEVICE="DEVICE",_z.TOPIC="TOPIC",_z.CONDITION="CONDITION",(_U=v4||(v4={})).ALWAYS="ALWAYS",_U.ONCE="ONCE",_U.HOURLY="HOURLY",_U.DAILY="DAILY",_U.WEEKLY="WEEKLY",_U.MONTHLY="MONTHLY",_U.ANNUALLY="ANNUALLY",(_W=v3||(v3={})).TITLE="TITLE",_W.SOURCE="SOURCE",_W.STATUS="STATUS",_W.SENT_ON="SENT_ON",_W.DELIVERED_ON="DELIVERED_ON",(_V=v6||(v6={})).MESSAGE_INVALID="MESSAGE_INVALID",_V.CERTIFICATE_INVALID="CERTIFICATE_INVALID",_V.UNAUTHORIZED="UNAUTHORIZED",_V.FORBIDDEN="FORBIDDEN",_V.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",_V.CONFIG_DISABLED="CONFIG_DISABLED",_V.USER_DISABLED="USER_DISABLED",_V.SERVER_ERROR="SERVER_ERROR",_V.ASSET_ERROR="ASSET_ERROR",_V.SERVER_BUSY="SERVER_BUSY",(_G=v8||(v8={})).PRIVATE="PRIVATE",_G.PROTECTED="PROTECTED",_G.PUBLIC="PUBLIC",(_q=v7||(v7={})).EXACT="EXACT",_q.BEGIN="BEGIN",_q.END="END",_q.CONTAINS="CONTAINS",(_K=v9||(v9={})).EQUALS="EQUALS",_K.GREATER_THAN="GREATER_THAN",_K.GREATER_EQUALS="GREATER_EQUALS",_K.LESS_THAN="LESS_THAN",_K.LESS_EQUALS="LESS_EQUALS",_K.BETWEEN="BETWEEN",(_X=ye||(ye={})).CREATED_ON="CREATED_ON",_X.NAME="NAME",_X.ASSET_TYPE="ASSET_TYPE",_X.PARENT_ID="PARENT_ID",_X.REALM="REALM",(_J=yt||(yt={})).RESTRICTED="RESTRICTED",_J.LINKED="LINKED",_J.REALM="REALM",(_Q=yn||(yn={})).AT_LEAST_ONE="AT_LEAST_ONE",_Q.ALL="ALL",_Q.NONE="NONE",(_Z=yi||(yi={})).AND="AND",_Z.OR="OR",(_0=yo||(yo={})).CREATED_ON="CREATED_ON",_0.FIRST_NAME="FIRST_NAME",_0.LAST_NAME="LAST_NAME",_0.USERNAME="USERNAME",_0.EMAIL="EMAIL",(_1=yr||(yr={})).STOPPED="STOPPED",_1.RUNNING="RUNNING",_1.ERROR="ERROR",(_2=ya||(ya={})).JAVASCRIPT="JAVASCRIPT",_2.GROOVY="GROOVY",_2.JSON="JSON",_2.FLOW="FLOW",(_5=ys||(ys={})).READY="READY",_5.DEPLOYED="DEPLOYED",_5.COMPILATION_ERROR="COMPILATION_ERROR",_5.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",_5.EXECUTION_ERROR="EXECUTION_ERROR",_5.LOOP_ERROR="LOOP_ERROR",_5.DISABLED="DISABLED",_5.PAUSED="PAUSED",_5.EXPIRED="EXPIRED",_5.REMOVED="REMOVED",_5.EMPTY="EMPTY",(_4=yl||(yl={})).SUNRISE="SUNRISE",_4.SUNSET="SUNSET",_4.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",_4.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",_4.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",_4.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",_4.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",_4.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",_4.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",_4.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",_4.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",_4.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",_4.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",_4.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",_4.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",_4.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",_4.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",_4.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",_4.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",_4.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(_3=yc||(yc={})).NUMBER="NUMBER",_3.NUMBER_ARRAY="NUMBER_ARRAY",_3.STRING="STRING",_3.BOOLEAN="BOOLEAN",_3.TRIGGER="TRIGGER",_3.COLOR="COLOR",_3.ANY="ANY",(_6=yd||(yd={})).NEW_LINE="NEW_LINE",_6.SPACER="SPACER",(_8=yu||(yu={})).INPUT="INPUT",_8.PROCESSOR="PROCESSOR",_8.OUTPUT="OUTPUT",_8.THEN="THEN",(_7=ym||(ym={})).TEXT="TEXT",_7.MULTILINE="MULTILINE",_7.NUMBER="NUMBER",_7.DROPDOWN="DROPDOWN",_7.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",_7.CHECKBOX="CHECKBOX",_7.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",_7.COLOR="COLOR",_7.DATE="DATE",(_9=yh||(yh={})).ADD="ADD",_9.ADD_OR_REPLACE="ADD_OR_REPLACE",_9.REPLACE="REPLACE",_9.DELETE="DELETE",_9.CLEAR="CLEAR",(ve=yf||(yf={})).PER_ASSET="PER_ASSET",ve.GLOBAL="GLOBAL",(vt=yp||(yp={})).READ_ADMIN="read:admin",vt.READ_LOGS="read:logs",vt.READ_USERS="read:users",vt.READ_MAP="read:map",vt.READ_ASSETS="read:assets",vt.READ_RULES="read:rules",vt.READ_INSIGHTS="read:insights",vt.READ_ALARMS="read:alarms",vt.READ_NOTIFICATIONS="read:notifications",vt.READ_SERVICES="read:services",vt.READ_TUNNELS="read:tunnels",vt.WRITE_SERVICES="write:services",vt.WRITE_USER="write:user",vt.WRITE_ADMIN="write:admin",vt.WRITE_LOGS="write:logs",vt.WRITE_ASSETS="write:assets",vt.WRITE_ATTRIBUTES="write:attributes",vt.WRITE_RULES="write:rules",vt.WRITE_INSIGHTS="write:insights",vt.WRITE_ALARMS="write:alarms",vt.WRITE_NOTIFICATIONS="write:notifications",vt.WRITE_TUNNELS="write:tunnels",vt.READ="read",vt.WRITE="write",(vn=yg||(yg={})).REGISTER="REGISTER",vn.UPDATE="UPDATE",vn.DEREGISTER="DEREGISTER",(vi=yb||(yb={})).AVAILABLE="AVAILABLE",vi.UNAVAILABLE="UNAVAILABLE",(vo=y_||(y_={})).ASSET="ASSET",vo.AGENT="AGENT",vo.NOTIFICATION="NOTIFICATION",vo.ALARM="ALARM",vo.RULES="RULES",vo.PROTOCOL="PROTOCOL",vo.GATEWAY="GATEWAY",vo.MODEL_AND_VALUES="MODEL_AND_VALUES",vo.API="API",vo.DATA="DATA",(vr=yv||(yv={})).INFO="INFO",vr.WARN="WARN",vr.ERROR="ERROR",(va=yy||(yy={})).NUMERIC="numeric",va.DIGIT_2="2-digit",va.FULL="full",va.LONG="long",va.MEDIUM="medium",va.SHORT="short",va.NARROW="narrow",(vs=yw||(yw={})).SECONDLY="SECONDLY",vs.MINUTELY="MINUTELY",vs.HOURLY="HOURLY",vs.DAILY="DAILY",vs.WEEKLY="WEEKLY",vs.MONTHLY="MONTHLY",vs.YEARLY="YEARLY",(vl=yx||(yx={})).OMIT="OMIT",vl.BACKWARD="BACKWARD",vl.FORWARD="FORWARD",(vc=yF||(yF={})).JAPANESE="JAPANESE",vc.BUDDHIST="BUDDHIST",vc.ROC="ROC",vc.ISLAMIC="ISLAMIC",vc.ISO8601="ISO8601",vc.CHINESE="CHINESE",vc.ETHIOPIC="ETHIOPIC",vc.HEBREW="HEBREW",vc.GREGORIAN="GREGORIAN",(vd=yk||(yk={})).SU="SU",vd.MO="MO",vd.TU="TU",vd.WE="WE",vd.TH="TH",vd.FR="FR",vd.SA="SA",(vu=yE||(yE={})).PEOPLECOUNTERASSET="PeopleCounterAsset",vu.MAILAGENT="MailAgent",vu.UDPAGENT="UDPAgent",vu.ROOMASSET="RoomAsset",vu.CITYASSET="CityAsset",vu.VENTILATIONASSET="VentilationAsset",vu.TRADFRILIGHTASSET="TradfriLightAsset",vu.CONSOLEASSET="ConsoleAsset",vu.PRESENCESENSORASSET="PresenceSensorAsset",vu.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",vu.LIGHTASSET="LightAsset",vu.KNXAGENT="KNXAgent",vu.THETHINGSSTACKAGENT="TheThingsStackAgent",vu.PLUGASSET="PlugAsset",vu.CHIRPSTACKAGENT="ChirpStackAgent",vu.WEATHERASSET="WeatherAsset",vu.THINGASSET="ThingAsset",vu.WEBSOCKETAGENT="WebsocketAgent",vu.TCPAGENT="TCPAgent",vu.GATEWAYASSET="GatewayAsset",vu.SERIALAGENT="SerialAgent",vu.BLUETOOTHMESHAGENT="BluetoothMeshAgent",vu.PARKINGASSET="ParkingAsset",vu.TRADFRIPLUGASSET="TradfriPlugAsset",vu.SIMULATORAGENT="SimulatorAgent",vu.SNMPAGENT="SNMPAgent",vu.GROUPASSET="GroupAsset",vu.BUILDINGASSET="BuildingAsset",vu.MODBUSSERIALAGENT="ModbusSerialAgent",vu.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",vu.MQTTAGENT="MQTTAgent",vu.VELBUSTCPAGENT="VelbusTCPAgent",vu.ARTNETLIGHTASSET="ArtnetLightAsset",vu.VELBUSSERIALAGENT="VelbusSerialAgent",vu.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",vu.MICROPHONEASSET="MicrophoneAsset",vu.MODBUSTCPAGENT="ModbusTcpAgent",vu.ZWAVEAGENT="ZWaveAgent",vu.HTTPAGENT="HTTPAgent",vu.DOORASSET="DoorAsset",vu.THERMOSTATASSET="ThermostatAsset",vu.SHIPASSET="ShipAsset",(vm=yC||(yC={})).COLOURRGB="colourRGB",vm.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",vm.PRICEHOURLY="priceHourly",vm.MQTTPORT="MQTTPort",vm.PINGDISABLED="pingDisabled",vm.FLOW="flow",vm.CHILDASSETTYPE="childAssetType",vm.LASTACCESS="lastAccess",vm.POSITION="position",vm.NETWORKKEY="networkKey",vm.UNIVERSE="universe",vm.ROUTINGMODE="routingMode",vm.MSSINUMBER="MSSINumber",vm.LASTWILLRETAIN="lastWillRetain",vm.LASTWILLTOPIC="lastWillTopic",vm.SERIALBAUDRATE="serialBaudrate",vm.SUBSCRIBEQOS="subscribeQos",vm.LEDCOUNT="lEDCount",vm.LOCKED="locked",vm.CLOUDCOVERAGE="cloudCoverage",vm.BASEURL="baseURL",vm.PROTOCOL="protocol",vm.REQUIREDVALUES="requiredValues",vm.REGION="region",vm.CONSOLEPLATFORM="consolePlatform",vm.GATEWAYSTATUS="gatewayStatus",vm.NO2LEVEL="NO2Level",vm.ATMOSPHERICPRESSURE="atmosphericPressure",vm.SERIALPORT="serialPort",vm.APPLICATIONID="applicationId",vm.TAGS="tags",vm.UNLOCK="unlock",vm.CHECKINTERVALSECONDS="checkIntervalSeconds",vm.LOCATION="location",vm.CLIENTSECRET="clientSecret",vm.WINDDIRECTION="windDirection",vm.WINDSPEED="windSpeed",vm.PARTICLESPM10="particlesPM10",vm.APPLICATIONKEY="applicationKey",vm.LENGTH="length",vm.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",vm.USERNAMEPASSWORD="usernamePassword",vm.WATERLEVEL="waterLevel",vm.CONNECTHEADERS="connectHeaders",vm.CONSOLENAME="consoleName",vm.WEBSOCKETQUERY="websocketQuery",vm.PREFERHTML="preferHTML",vm.PARITY="parity",vm.COOLING="cooling",vm.POLLINGMILLIS="pollingMillis",vm.SOILTEMPERATURE="soilTemperature",vm.SUNIRRADIANCE="sunIrradiance",vm.MESSAGEMAXLENGTH="messageMaxLength",vm.WINDGUSTSPEED="windGustSpeed",vm.LIGHTID="lightId",vm.PROXYADDRESS="proxyAddress",vm.REQUESTQUERYPARAMETERS="requestQueryParameters",vm.MQTTHOST="MQTTHost",vm.SECUREGRPC="secureGRPC",vm.MODEL="model",vm.STREET="street",vm.MANUFACTURER="manufacturer",vm.DELETEPROCESSEDMAIL="deleteProcessedMail",vm.RESUMESESSION="resumeSession",vm.ONOFF="onOff",vm.APIKEY="ApiKey",vm.CITY="city",vm.PRESENCE="presence",vm.SPACESOCCUPIED="spacesOccupied",vm.STARTTLS="startTLS",vm.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",vm.WEBSOCKETPATH="websocketPath",vm.AGENTSTATUS="agentStatus",vm.PRICEDAILY="priceDaily",vm.COUNTGROWTHMINUTE="countGrowthMinute",vm.IMONUMBER="IMONumber",vm.ATTRIBUTION="Attribution",vm.TENANTID="tenantId",vm.REQUESTHEADERS="requestHeaders",vm.HOST="host",vm.COUNTOUTMINUTE="countOutMinute",vm.MESSAGECHARSET="messageCharset",vm.CERTIFICATEALIAS="certificateAlias",vm.EMAIL="email",vm.BINDPORT="bindPort",vm.CONSOLEVERSION="consoleVersion",vm.PARTICLESPM1="particlesPM1",vm.MTU="mtu",vm.SPEED="speed",vm.MESSAGESTRIPDELIMITER="messageStripDelimiter",vm.AREA="area",vm.COUNTRY="country",vm.SHIPTYPE="shipType",vm.CONNECTSUBSCRIPTIONS="connectSubscriptions",vm.RELATIVEHUMIDITY="relativeHumidity",vm.SOURCEADDRESS="sourceAddress",vm.RAINFALL="rainfall",vm.OAUTHGRANT="oAuthGrant",vm.OZONELEVEL="ozoneLevel",vm.SEQUENCENUMBER="sequenceNumber",vm.COUNTINMINUTE="countInMinute",vm.PORT="port",vm.SUNALTITUDE="sunAltitude",vm.COUNTOUT="countOut",vm.ROOMNUMBER="roomNumber",vm.TUNNELINGSUPPORTED="tunnelingSupported",vm.ENINUMBER="ENINumber",vm.PARTICLESPM2_5="particlesPM2_5",vm.AGENTDISABLED="agentDisabled",vm.DISABLED="disabled",vm.COUNTIN="countIn",vm.MESSAGESOURCEADDRESS="messageSourceAddress",vm.PROVISIONWEATHERASSET="ProvisionWeatherAsset",vm.TIMEINJECTIONINTERVAL="timeInjectionInterval",vm.TEMPERATURESETPOINT="temperatureSetpoint",vm.CONSOLEPROVIDERS="consoleProviders",vm.COUNTTOTAL="countTotal",vm.SPACESBUFFER="spacesBuffer",vm.DEVICECONFIG="deviceConfig",vm.SPACESTOTAL="spacesTotal",vm.BINDHOST="bindHost",vm.FANSPEED="fanSpeed",vm.MESSAGECONVERTBINARY="messageConvertBinary",vm.NOTES="notes",vm.MAILFOLDERNAME="mailFolderName",vm.MESSAGEDELIMITERS="messageDelimiters",vm.TEMPERATURE="temperature",vm.SUNZENITH="sunZenith",vm.SNMPVERSIONVALUE="SNMPVersionValue",vm.BRIGHTNESS="brightness",vm.POSTALCODE="postalCode",vm.SPACESOPEN="spacesOpen",vm.HUMIDITY="humidity",vm.SOUNDLEVEL="soundLevel",vm.SECUREMODE="secureMode",vm.DIRECTION="direction",vm.STOPBITS="stopbits",vm.UVINDEX="uVIndex",vm.CONNECTURL="connectURL",vm.CLIENTID="clientId",vm.NATMODE="NATMode",vm.UPDATEONWRITE="updateOnWrite",vm.LASTWILLPAYLOAD="lastWillPayload",vm.GROUPID="groupId",vm.FOLLOWREDIRECTS="followRedirects",vm.SUNAZIMUTH="sunAzimuth",vm.MESSAGECONVERTHEX="messageConvertHex",vm.WEBSOCKETMODE="websocketMode",vm.COLOURTEMPERATURE="colourTemperature",vm.PUBLISHQOS="publishQos",vm.DATABITS="dataBits",(vh=yA||(yA={})).FORMAT="format",vh.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",vh.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",vh.SECRET="secret",vh.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",vh.ATTRIBUTELINKS="attributeLinks",vh.RULERESETIMMEDIATE="ruleResetImmediate",vh.RULESTATE="ruleState",vh.AGENTLINKCONFIG="agentLinkConfig",vh.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",vh.FORECAST="forecast",vh.STOREDATAPOINTS="storeDataPoints",vh.LABEL="label",vh.CONSTRAINTS="constraints",vh.UNITS="units",vh.USERCONNECTED="userConnected",vh.SHOWONDASHBOARD="showOnDashboard",vh.READONLY="readOnly",vh.MULTILINE="multiline",vh.ACCESSPUBLICWRITE="accessPublicWrite",vh.MOMENTARY="momentary",vh.AGENTLINK="agentLink",vh.ACCESSRESTRICTEDREAD="accessRestrictedRead",vh.ACCESSPUBLICREAD="accessPublicRead",(vf=yT||(yT={})).ASSETQUERY="assetQuery",vf.WSURL="WS_URL",vf.COLOURRGB="colourRGB",vf.VALUEFORMAT="valueFormat",vf.TEXT="text",vf.BYTE="byte",vf.USERNAMEANDPASSWORD="usernameAndPassword",vf.HTTPURL="HTTP_URL",vf.ATTRIBUTELINK="attributeLink",vf.ASSETID="assetID",vf.NUMBERMAP="numberMap",vf.HTTPMETHOD="HTTPMethod",vf.ATTRIBUTESTATE="attributeState",vf.POSITIVENUMBER="positiveNumber",vf.POSITIVEINTEGER="positiveInteger",vf.EXECUTIONSTATUS="executionStatus",vf.BIGINTEGER="bigInteger",vf.VALUEDESCRIPTOR="valueDescriptor",vf.PERIODDURATIONISO8601="periodDurationISO8601",vf.LONG="long",vf.DATEANDTIME="dateAndTime",vf.BOOLEANMAP="booleanMap",vf.MQTTQOS="MQTTQos",vf.NEGATIVEINTEGER="negativeInteger",vf.TCPIPPORTNUMBER="TCP_IPPortNumber",vf.GEOJSONPOINT="GEO_JSONPoint",vf.SNMPVERSION="SNMPVersion",vf.ASSETTYPE="assetType",vf.JSONOBJECT="JSONObject",vf.INTEGERMAP="integerMap",vf.BIGNUMBER="bigNumber",vf.IPADDRESS="IPAddress",vf.EMAIL="email",vf.TIMESTAMP="timestamp",vf.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",vf.ATTRIBUTEREFERENCE="attributeReference",vf.UUID="UUID",vf.INTEGER="integer",vf.OAUTHGRANT="oAuthGrant",vf.NUMBER="number",vf.DEVICECONFIGMAP="DeviceConfigMap",vf.TEXTMAP="textMap",vf.WEBSOCKETSUBSCRIPTION="websocketSubscription",vf.BOOLEAN="boolean",vf.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",vf.FORECASTCONFIGURATION="forecastConfiguration",vf.TIMEDURATIONISO8601="timeDurationISO8601",vf.TIMESTAMPISO8601="timestampISO8601",vf.CONSOLEPROVIDERS="consoleProviders",vf.MULTIVALUEDTEXTMAP="multivaluedTextMap",vf.NEGATIVENUMBER="negativeNumber",vf.PARITYBIT="Paritybit",vf.JSON="JSON",vf.CRONEXPRESSION="CRONExpression",vf.INTEGERBYTE="integerByte",vf.AGENTLINK="agentLink",vf.DIRECTION="direction",vf.HOSTORIPADDRESS="hostOrIPAddress",vf.STOPBITS="Stopbits",vf.CALENDAREVENT="calendarEvent",vf.CONNECTIONSTATUS="connectionStatus",vf.VALUECONSTRAINT="valueConstraint",(vp=yS||(yS={})).MONTH="month",vp.MILE_SCANDINAVIAN="mile_scandinavian",vp.VAR="var",vp.OUNCE="ounce",vp.HECTARE="hectare",vp.YARD="yard",vp.YEAR="year",vp.GIGA="giga",vp.JOULE="joule",vp.VOLT="volt",vp.HERTZ="hertz",vp.MILE="mile",vp.DEGREE="degree",vp.KILO="kilo",vp.BTU="btu",vp.TERA="tera",vp.FOOT="foot",vp.MEGA="mega",vp.KELVIN="kelvin",vp.CARBON="carbon",vp.DECIBEL_ATTENUATED="decibel_attenuated",vp.INCH="inch",vp.SQUARED="squared",vp.PERCENTAGE="percentage",vp.IN_HG="inch_mercury",vp.CENTI="centi",vp.GRAM="gram",vp.CUBED="cubed",vp.DAY="day",vp.RADIAN="radian",vp.OHM="ohm",vp.MINUTE="minute",vp.PART_PER_MILLION="ppm",vp.AMP="amp",vp.MASS_POUND="pound",vp.KNOT="knot",vp.METRE="metre",vp.LITRE="litre",vp.FLUID_OUNCE="fluid_ounce",vp.HOUR="hour",vp.ACRE="acre",vp.CELSIUS="celsius",vp.RPM="rpm",vp.PASCAL="pascal",vp.DECIBEL="decibel",vp.LUMEN="lumen",vp.WEEK="week",vp.FAHRENHEIT="fahrenheit",vp.WATT="watt",vp.GALLON="gallon",vp.LUX="lux",vp.MILLI="milli",vp.BAR="bar",vp.HECTO="hecto",vp.PEAK="peak",vp.SECOND="second",vp.MICRO="micro",vp.PER="per",vp.STONE="stone",yM||(yM={});class lb{static getAssetDescriptors(){return lb._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=lb.getValueDescriptor(t)),n=t.jsonType?t:lb.getValueDescriptor(t.type)),!n&&e&&(n=lb.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 i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}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}}lb._assetTypeInfos=[],lb._metaItemDescriptors=[],lb._valueDescriptors=[];let l_=e=>"string"==typeof e,lv=()=>{let e,t,n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},ly=e=>null==e?"":String(e),lw=/###/g,lx=e=>e&&e.includes("###")?e.replace(lw,"."):e,lF=e=>!e||l_(e),lk=(e,t,n)=>{let i=l_(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(lF(e))return{};let t=lx(i[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return lF(e)?{}:{obj:e,k:lx(i[o])}},lE=(e,t,n)=>{let{obj:i,k:o}=lk(e,t,Object);if(void 0!==i||1===t.length){i[o]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=lk(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=lk(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},lC=(e,t)=>{let{obj:n,k:i}=lk(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},lA=(e,t,n)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(Object.prototype.hasOwnProperty.call(e,i)?l_(e[i])||e[i]instanceof String||l_(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):lA(e[i],t[i],n):e[i]=t[i]);return e},lT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},lS=e=>l_(e)?e.replace(/[&<>"'\/]/g,e=>lT[e]):e,lM=[" ",",","?","!",";"],lL=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),lD=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(n),o=e;for(let e=0;e<i.length;){let t;if(!o||"object"!=typeof o)return;let r="";for(let a=e;a<i.length;++a)if(a!==e&&(r+=n),r+=i[a],void 0!==(t=o[r])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},lI=e=>e?.replace(/_/g,"-"),lO={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var lR=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||lO,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:(e=e.map(e=>l_(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),l_(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class l${constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...i)=>{t(...i),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let i=0;i<n;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(e,...t)})}}class lN extends l${constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,i={}){let o,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l_(n)&&r?o.push(...n.split(r)):o.push(n)));let s=lC(this.data,o);return(!s&&!t&&!n&&e.includes(".")&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&l_(n))?lD(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,i,o={silent:!1}){let r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lE(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n,i={silent:!1}){for(let i in n)(l_(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);let s=lC(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?lA(s,n,o):s={...s,...n},lE(this.data,a,s),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var lP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,i,o)??t}),t}};let lB=Symbol("i18next/PATH_KEY");function lY(e,t){let n,i,o,{[lB]:r}=e((i=[],(o=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===lB)?i:(i.push(t),(n=Proxy.revocable(e,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(l?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let lj=e=>!l_(e)&&"boolean"!=typeof e&&"number"!=typeof e;class lH extends l${constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=lR.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let i=this.resolve(e,n);if(i?.res===void 0)return!1;let o=lj(i.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let i=lM.filter(e=>!t.includes(e)&&!n.includes(e));if(0===i.length)return!0;let o=lL.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),r=!o.test(e);if(!r){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(r=!0)}return r})(e,n,i);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l_(o)?[o]:o};let r=e.split(n);(n!==i||n===i&&this.options.ns.includes(r[0]))&&(o=r.shift()),e=r.join(i)}return{key:e,namespaces:l_(o)?[o]:o}}translate(e,t,n){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=lY(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?lY(e,{...this.options,...i}):String(e));let o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1],c=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?o?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${c}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;let m=this.resolve(e,i),h=m?.res,f=m?.usedKey||a,p=m?.exactUsedKey||a,g=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==i.count&&!l_(i.count),v=lH.hasDefaultValue(i),y=_?this.pluralResolver.getSuffix(d,i.count,i):"",w=i.ordinal&&_?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",x=_&&!i.ordinal&&0===i.count,F=x&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${y}`]||i[`defaultValue${w}`]||i.defaultValue,k=h;b&&!h&&v&&(k=F);let E=lj(k),C=Object.prototype.toString.apply(k);if(b&&k&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(C)&&!(l_(g)&&Array.isArray(k))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(m.res=e,m.usedParams=this.getUsedParamsDetails(i),m):e}if(r){let e=Array.isArray(k),t=e?[]:{},n=e?p:f;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let o=`${n}${r}${e}`;v&&!h?t[e]=this.translate(o,{...i,defaultValue:lj(F)?F[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(o,{...i,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=k[e])}h=t}}else if(b&&l_(g)&&Array.isArray(h))(h=h.join(g))&&(h=this.extendTranslation(h,e,i,n));else{let t=!1,o=!1;!this.isValidLookup(h)&&v&&(t=!0,h=F),this.isValidLookup(h)||(o=!0,h=a);let s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,u=v&&F!==h&&this.options.updateMissing;if(o||t||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,_&&!u?`${a}${this.pluralResolver.getSuffix(d,i.count,i)}`:a,u?F:h),r){let e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let o=v&&n!==h?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,u,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,u,i),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);x&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,i[`defaultValue${t}`]||F)})}):n(e,a,F))}h=this.extendTranslation(h,e,i,m,n),o&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,t?h:void 0,i))}return o?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(e,t,n,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=l_(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!l_(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||i.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let r=n.postProcess||this.options.postProcess,a=l_(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=lP.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,i,o,r,a;return l_(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?lY(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),l=s.key;i=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==t.count&&!l_(t.count),u=d&&!t.ordinal&&0===t.count,m=void 0!==t.context&&(l_(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${h[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(i=>{let a;if(this.isValidLookup(n))return;r=i;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,i,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(i,t.count,t));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&e.startsWith(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),s.push(l+e),u&&s.push(l+n)),m){let i=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(i),d&&(t.ordinal&&e.startsWith(o)&&s.push(i+e.replace(o,this.options.pluralSeparator)),s.push(i+e),u&&s.push(i+n))}}for(;a=s.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(i,e,a,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(e={}){let t=e.replace&&!l_(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class lz{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lR.create("languageUtils")}getScriptPartFromCode(e){if(!(e=lI(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=lI(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l_(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),l_(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return l_(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):l_(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{i.includes(e)||o(this.formatLanguageCode(e))}),i}}let lU={zero:0,one:1,two:2,few:3,many:4,other:5},lW={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lV{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=lR.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,i=lI("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:i,type:o});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(i,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lW;if(!e.match(/-|_/))return lW;let i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[r]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>lU[e]-lU[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let lG=(e,t,n,i=".",o=!0)=>{let r,a=void 0!==(r=lC(e,n))?r:lC(t,n);return!a&&o&&l_(n)&&void 0===(a=lD(e,n,i))&&(a=lD(t,n,i)),a},lq=e=>e.replace(/\$/g,"$$$$");class lK{constructor(e={}){this.logger=lR.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:m,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:p,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:lS,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,i){let o,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let o=lG(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...i,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),r=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(lG(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...i,...t,interpolationkey:r})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(r=l(n)))if("function"==typeof c){let t=c(e,o,i);r=l_(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))r="";else if(d){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else l_(r)||this.useRawValueToEscape||(r=ly(r));let s=t.safeValue(r);if(e=e.replace(o[0],lq(s)),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let i,o,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let i=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${i[1]}`;e=i[0];let a=(o=this.interpolate(o,r)).match(/'/g),s=o.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!l_(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let l=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),(o=t(a.call(this,i[1].trim(),r),r))&&i[0]===e&&!l_(o))return o;l_(o)||(o=ly(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}let lX=e=>{let t={};return(n,i,o)=>{let r=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(r={...r,[o.interpolationkey]:void 0});let a=i+JSON.stringify(r),s=t[a];return s||(s=e(lI(i),o),t[a]=s),s(n)}},lJ=e=>(t,n,i)=>e(lI(n),i)(t);class lQ{constructor(e={}){this.logger=lR.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?lX:lJ;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=lX(t)}format(e,t,n,i={}){if(!t||null==e)return e;let o=t.split(this.formatSeparator),r=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:o,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=o),"false"===o&&(n[r]=!1),"true"===o&&(n[r]=!0),isNaN(o)||(n[r]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{let a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||n;t=this.formats[o](e,s,{...r,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class lZ extends l${constructor(e,t,n,i={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=lR.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,t,n,i){let o={},r={},a={},s={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===r[a]&&(r[a]=!0):(this.state[a]=1,i=!1,void 0===r[a]&&(r[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),!t&&n&&this.store.addResourceBundle(o,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:i,k:o}=lk(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[o],r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,i=0,o=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:r});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,n,i+1,2*o,r)},o):r(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();l_(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l_(t)&&(t=[t]);let o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,i,o,r={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...r,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,n,i,s):l(e,t,n,i))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,i,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}let l0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),l_(e[1])&&(t.defaultValue=e[1]),l_(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),l1=e=>(l_(e.ns)&&(e.ns=[e.ns]),l_(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l_(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),l2=()=>{};class l5 extends l${constructor(e={},t){if(super(),this.options=l1(e),this.services={},this.logger=lR,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(l_(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=l0();this.options={...n,...this.options,...l1(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?lR.init(i(this.modules.logger),this.options):lR.init(null,this.options),e=this.modules.formatter?this.modules.formatter:lQ;let t=new lz(this.options);this.store=new lN(this.options.resources,this.options);let n=this.services;n.logger=lR,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new lV(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=i(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new lK(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new lZ(i(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=i(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=i(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new lH(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=l2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let o=lv(),r=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),o}loadResources(e,t=l2){let n=t,i=l_(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let i=lv();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=l2),this.services.backendConnector.reload(e,t,e=>{i.resolve(),n(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lP.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=lv();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,r)=>{r?this.isLanguageChangingTo===e&&(i(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=l_(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l_(t)?[t]:t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,n,i){let o=i?.scopeNs,r=(e,t,...i)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let l=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let c={...this.options,...a};Array.isArray(o)&&!l&&(c.ns=o),"function"==typeof a.keyPrefix&&(a.keyPrefix=lY(a.keyPrefix,c));let d=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=lY(e,c)),`${a.keyPrefix}${d}${e}`)):("function"==typeof e&&(e=lY(e,c)),s=a.keyPrefix?`${a.keyPrefix}${d}${e}`:e),this.t(s,a)};return l_(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!i||r(o,e)))}loadNamespaces(e,t){let n=lv();return this.options.ns?(l_(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=lv();l_(e)&&(e=[e]);let i=this.options.preload||[],o=e.filter(e=>!i.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=i.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new lz(l0());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new l5(e,t);return n.createInstance=l5.createInstance,n}cloneInstance(e={},t=l2){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},o=new l5(i);if((void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new lN(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,i)=>(n[i]={...e[t][i]},n),e[t]),e),{}),i),o.services.resourceStore=o.store),e.interpolation){let t={...l0().interpolation,...this.options.interpolation,...e.interpolation},n={...i,interpolation:t};o.services.interpolator=new lK(n)}return o.translator=new lH(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let l4=l5.createInstance();l4.createInstance,l4.dir,l4.init,l4.loadResources,l4.reloadResources,l4.use,l4.changeLanguage,l4.getFixedT,l4.t,l4.exists,l4.setDefaultNamespace,l4.hasLoadedNamespace,l4.loadNamespaces,l4.loadLanguages;var l3=n(14867),l6=n.n(l3);n(83472);class l8{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)}}function l7(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>l7(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>l7(e[n],t[n]))}return!1}function l9(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}class ce{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,r,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==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.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=>ce._evalValuePredicate(e.name,t)))&&(!this.attributes||ce._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!ce._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?ce._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}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,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||ce._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>ce._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>ce._evalGroup(e,t))];return!a.length||("OR"===r?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=>ce._collectNames(e))]}}ce._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ct=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let cn=n(74461);class ci{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 i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=ci._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},c)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let h=mJ.getAppName();h.length>0&&0>d.apps.indexOf(h)&&d.apps.push(h),this._registration=d,o&&(d.name=o),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}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 ct(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 ct(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 ct(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},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return ct(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 ct(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 i=new l8,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>ct(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 ct(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mJ.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&&ci._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 ct(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,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:cn.name,version:cn.version,platform:cn.os.toString(),apps:[],model:((cn.manufacturer?cn.manufacturer+" ":"")+(cn.product?cn.product:"")).trim()}}_initialiseProvider(e){return ct(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 co(e,t){return function(){return e.apply(t,arguments)}}let{toString:cr}=Object.prototype,{getPrototypeOf:ca}=Object,{iterator:cs,toStringTag:cl}=Symbol,cc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cd=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),cu=(e,t,n)=>e===Object.prototype||!n&&null===t,cm=(e,t)=>{let n=e,i=[];for(;null!=n&&-1===i.indexOf(n);){i.push(n);let o=ca(n);if(cu(n,o,n===e))break;if(cc(n,t))return!0;n=o}return!1},ch=(a=Object.create(null),e=>{let t=cr.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cf=e=>(e=e.toLowerCase(),t=>ch(t)===e),cp=e=>t=>typeof t===e,{isArray:cg}=Array,cb=cp("undefined");function c_(e){return null!==e&&!cb(e)&&null!==e.constructor&&!cb(e.constructor)&&cw(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cv=cf("ArrayBuffer"),cy=cp("string"),cw=cp("function"),cx=cp("number"),cF=e=>null!==e&&"object"==typeof e,ck=e=>{if(!cF(e))return!1;let t=ca(e);return(null===t||t===Object.prototype||null===ca(t))&&!cm(e,cl)&&!cm(e,cs)},cE=cf("Date"),cC=cf("File"),cA=cf("Blob"),cT=cf("FileList"),cS=cf("Set"),cM="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cL=void 0!==cM.FormData?cM.FormData:void 0,cD=cf("URLSearchParams"),[cI,cO,cR,c$]=["ReadableStream","Request","Response","Headers"].map(cf);function cN(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cg(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(c_(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function cP(e,t){let n;if(c_(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let cB="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,cY=e=>!cb(e)&&e!==cB,cj=(s="u">typeof Uint8Array&&ca(Uint8Array),e=>s&&e instanceof s),cH=cf("HTMLFormElement"),{propertyIsEnumerable:cz}=Object.prototype,cU=cf("RegExp"),cW=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};cN(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},cV=cf("AsyncFunction"),cG=(_a="function"==typeof setImmediate,_s=cw(cB.postMessage),_a?setImmediate:_s?(_l=`axios@${Math.random()}`,_c=[],cB.addEventListener("message",({source:e,data:t})=>{e===cB&&t===_l&&_c.length&&_c.shift()()},!1),e=>{_c.push(e),cB.postMessage(_l,"*")}):e=>setTimeout(e)),cq="u">typeof queueMicrotask?queueMicrotask.bind(cB):"u">typeof process&&process.nextTick||cG,cK=e=>null!=e&&cw(e[cs]),cX={isArray:cg,isArrayBuffer:cv,isBuffer:c_,isFormData:e=>{if(!e)return!1;if(cL&&e instanceof cL)return!0;let t=ca(e);if(!t||t===Object.prototype||!cw(e.append))return!1;let n=ch(e);return"formdata"===n||"object"===n&&cw(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cv(e.buffer)},isString:cy,isNumber:cx,isBoolean:e=>!0===e||!1===e,isObject:cF,isPlainObject:ck,isEmptyObject:e=>{if(!cF(e)||c_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cI,isRequest:cO,isResponse:cR,isHeaders:c$,isUndefined:cb,isDate:cE,isFile:cC,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cA,isRegExp:cU,isFunction:cw,isStream:e=>cF(e)&&cw(e.pipe),isURLSearchParams:cD,isTypedArray:cj,isFileList:cT,forEach:cN,merge:function e(...t){let{caseless:n,skipUndefined:i}=cY(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&cP(o,r)||r,s=cc(o,a)?o[a]:void 0;ck(s)&&ck(t)?o[a]=e(s,t):ck(t)?o[a]=e({},t):cg(t)?o[a]=t.slice():i&&cb(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||c_(n)||(cN(n,r),"object"!=typeof n||cg(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];cz.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(cN(t,(t,i)=>{n&&cw(t)?Object.defineProperty(e,i,{__proto__:null,value:co(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),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,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&ca(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ch,kindOfTest:cf,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(cg(e))return e;let t=e.length;if(!cx(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cs]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:cH,hasOwnProperty:cc,hasOwnProp:cc,hasOwnInPrototypeChain:cm,getSafeProp:(e,t)=>null!=e&&cm(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=ca(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(cd(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),i=Object.create(null),o=[],r=e;for(;null!=r&&-1===o.indexOf(r);){o.push(r);let a=r===e?t:ca(r);if(cu(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!cd(t)&&(cc(i,t)||(n[t]=e[t],i[t]=!0));r=a}return n},reduceDescriptors:cW,freezeMethods:e=>{cW(e,(t,n)=>{if(cw(e)&&["arguments","caller","callee"].includes(n))return!1;if(cw(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(cg(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:cP,global:cB,isContextDefined:cY,isSpecCompliantForm:function(e){return!!(e&&cw(e.append)&&"FormData"===e[cl]&&e[cs])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cF(e)){if(t.has(e))return;if(c_(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),cS(e))for(let t of(i=[],e)){let e=n(t);cb(e)||i.push(e)}else i=cg(e)?[]:{},cN(e,(e,t)=>{let o=n(e);cb(o)||(i[t]=o)});return t.delete(e),i}}return e};return n(e)},isAsyncFn:cV,isThenable:e=>e&&(cF(e)||cw(e))&&cw(e.then)&&cw(e.catch),setImmediate:cG,asap:cq,isIterable:cK,isSafeIterable:e=>null!=e&&cm(e,cs)&&cK(e)},cJ=cX.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"]),cQ=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),cZ=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function c0(e,t){return cX.isArray(e)?e.map(e=>c0(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 c1(e){let t=Object.create(null);return cX.forEach(e.toJSON(),(e,n)=>{t[n]=c0(e,cZ)}),t}let c2=Symbol("internals");function c5(e){return e&&String(e).trim().toLowerCase()}function c4(e){return!1===e||null==e?e:cX.isArray(e)?e.map(c4):c0(String(e),cQ)}let c3=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function c6(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function c8(e,t,n,i,o){if(cX.isFunction(i))return i.call(this,t,n);if(o&&(t=n),cX.isString(t)){if(cX.isString(i))return -1!==t.indexOf(i);if(cX.isRegExp(i))return i.test(t)}}class c7{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=c5(t);if(!o)return;let r=cX.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=c4(e))}let r=(e,t)=>cX.forEach(e,(e,n)=>o(e,n,t));if(cX.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(cX.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim();let t=cX.hasOwnProp(s,n);!n||t&&cX.hasOwnProp(cJ,n)||("set-cookie"===n?t?s[n].push(i):s[n]=[i]:s[n]=t?s[n]+", "+i:i)}),s),t)}else if(cX.isObject(e)&&cX.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!cX.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],cX.hasOwnProp(n,o)?(i=n[o],n[o]=cX.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=c5(e)){let n=cX.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(cX.isFunction(t))return t.call(this,e,n);if(cX.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=c5(e)){let n=cX.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||c8(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=c5(e)){let o=cX.findKey(n,e);o&&(!t||c8(n,n[o],o,t))&&(delete n[o],i=!0)}}return cX.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||c8(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return cX.forEach(this,(i,o)=>{let r=cX.findKey(n,o);if(r){t[r]=c4(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=c4(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return cX.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&cX.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return cX.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),i=0,o=!1,r=!1;function a(e){let o=c6(n.slice(i,e)),r=o.indexOf("=");if(r<1)return;let a=c6(o.slice(0,r));if(!c3.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=c6(o.slice(r+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let i=1;i<t;i++){let o=e.charCodeAt(i);if(34===o||92===o&&(i+=1)>=t)return e;n+=e[i]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);o?r?r=!1:92===t?r=!0:34===t&&(o=!1):34===t?o=!0:(44===t||59===t)&&(a(e),i=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[c2]=this[c2]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=c5(e);if(!t[i]){let o;o=cX.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return cX.isArray(e)?e.forEach(i):i(e),this}}c7.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cX.reduceDescriptors(c7.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),cX.freezeMethods(c7);let c9="[REDACTED ****]";function de(e){try{return String(e)}catch(e){return""}}class dt extends Error{static from(e,t,n,i,o,r){let a=e.message;!a&&cX.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?de(e.message):de(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new dt(a,t||e.code,n,i,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),r&&Object.assign(s,r),s}constructor(e,t,n,i,o){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),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&cX.hasOwnProp(i,"redact")?i.redact:void 0,r=cX.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||cX.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof c7&&(i=i.toJSON()),t.push(i),cX.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);cX.isUndefined(i)||(o[t]=i)});else{if(!cX.isPlainObject(i)&&function(e){if(cX.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(cX.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?c9:n(r);cX.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):cX.toJSONObject(i);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:r,code:this.code,status:this.status}}}dt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",dt.ERR_BAD_OPTION="ERR_BAD_OPTION",dt.ECONNABORTED="ECONNABORTED",dt.ETIMEDOUT="ETIMEDOUT",dt.ECONNREFUSED="ECONNREFUSED",dt.ERR_NETWORK="ERR_NETWORK",dt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",dt.ERR_DEPRECATED="ERR_DEPRECATED",dt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",dt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",dt.ERR_CANCELED="ERR_CANCELED",dt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",dt.ERR_INVALID_URL="ERR_INVALID_URL",dt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dn=dt;function di(e){return cX.isPlainObject(e)||cX.isArray(e)}function dr(e){return cX.endsWith(e,"[]")?e.slice(0,-2):e}function da(e,t,n){return e?e.concat(t).map(function(e,t){return e=dr(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ds=cX.toFlatObject(cX,{},null,function(e){return/^is[A-Z]/.test(e)}),dl=function(e,t,n){if(!cX.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(e,t)=>{let i=cX.getSafeProp(n,e);return cX.isUndefined(i)?t:i},o=i("metaTokens",!0),r=i("visitor")||f,a=i("dots",!1),s=i("indexes",!1),l=i("Blob")||"u">typeof Blob&&Blob,c=i("maxDepth",100),d=l&&cX.isSpecCompliantForm(t),u=[];if(!cX.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(cX.isDate(e))return e.toISOString();if(cX.isBoolean(e))return e.toString();if(!d&&cX.isBlob(e))throw new dn("Blob is not supported. Use a Buffer instead.");if(cX.isArrayBuffer(e)||cX.isTypedArray(e)){if(d&&"function"==typeof l)return new l([e]);throw new dn("Blob is not supported. Use a Buffer instead.",dn.ERR_NOT_SUPPORT)}return e}function h(e){if(e>c)throw new dn("Object is too deeply nested ("+e+" levels). Max depth: "+c,dn.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,i){let r=e;if(cX.isReactNative(t)&&cX.isReactNativeBlob(e))return t.append(da(i,n,a),m(e)),!1;if(e&&!i&&"object"==typeof e)if(cX.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!cX.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),h(1+t.length-1),n})}(e);else{var l;if(cX.isArray(e)&&(l=e,cX.isArray(l)&&!l.some(di))||(cX.isFileList(e)||cX.endsWith(n,"[]"))&&(r=cX.toArray(e)))return n=dr(n),r.forEach(function(e,i){cX.isUndefined(e)||null===e||t.append(!0===s?da([n],i,a):null===s?n:n+"[]",m(e))}),!1}return!!di(e)||(t.append(da(i,n,a),m(e)),!1)}let p=Object.assign(ds,{defaultVisitor:f,convertValue:m,isVisitable:di});if(!cX.isObject(e))throw TypeError("data must be an object");return!function e(n,i,o=0){if(!cX.isUndefined(n)){if(h(o),-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),cX.forEach(n,function(n,a){!0===(!(cX.isUndefined(n)||null===n)&&r.call(t,n,cX.isString(a)?a.trim():a,i,p))&&e(n,i?i.concat(a):[a],o+1)}),u.pop()}}(e),t};function dc(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dd(e,t){this._pairs=[],e&&dl(e,this,t)}let du=dd.prototype;function dm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dh(e,t,n){let i;if(!t)return e;e=e||"";let o=cX.isFunction(n)?{serialize:n}:n,r=cX.getSafeProp(o,"encode")||dm,a=cX.getSafeProp(o,"serialize");if(i=a?a(t,o):cX.isURLSearchParams(t)?t.toString():new dd(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}du.append=function(e,t){this._pairs.push([e,t])},du.toString=function(e){let t=e?t=>e.call(this,t,dc):dc;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let df=Symbol("internals");function dp(e){return e?e.length:0}function dg(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function db(e,t){let n=e.handlers,i=dp(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){n[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}let d_=class{constructor(){this.handlers=[],this[df]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let i={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[df];null==this.handlers&&(this.handlers=[]),db(this,o);let r=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(r,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,r}eject(e){let t=this[df];db(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(dg(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],db(this,this[df]))}forEach(e){let t=this[df];db(this,t),t.iterationDepth++;try{cX.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(db(this,t),dg(this.handlers),t.handlersLength=dp(this.handlers))}}},dv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dy="u">typeof URLSearchParams?URLSearchParams:dd,dw="u">typeof FormData?FormData:null,dx="u">typeof Blob?Blob:null,dF="u">typeof window&&"u">typeof document,dk="object"==typeof navigator&&navigator||void 0,dE=dF&&(!dk||0>["ReactNative","NativeScript","NS"].indexOf(dk.product)),dC="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dA=dF&&window.location.href||"http://localhost",dT={...d,isBrowser:!0,classes:{URLSearchParams:dy,FormData:dw,Blob:dx},protocols:["http","https","file","blob","url","data"]};function dS(e){if(e>100)throw new dn("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dn.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dM=function(e){if(cX.isFormData(e)&&cX.isFunction(e.entries)){let t={};return cX.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dS(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&cX.isArray(i)?i.length:r,s)?cX.hasOwnProp(i,r)?i[r]=cX.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(cX.hasOwnProp(i,r)&&cX.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&cX.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=i.exec(e));)dS(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dL=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dD=(e,t)=>null!=e&&cX.hasOwnProp(e,t)?e[t]:void 0,dI={transitional:dv,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=cX.isObject(e);if(r&&cX.isHTMLForm(e)&&(e=new FormData(e)),cX.isFormData(e))return o?JSON.stringify(dM(e)):e;if(cX.isArrayBuffer(e)||cX.isBuffer(e)||cX.isStream(e)||cX.isFile(e)||cX.isBlob(e)||cX.isReadableStream(e))return e;if(cX.isArrayBufferView(e))return e.buffer;if(cX.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dD(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return dl(e,new dT.classes.URLSearchParams,{visitor:function(e,t,n,i){return dT.isNode&&cX.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=cX.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dD(this,"env"),o=i&&i.FormData;return dl(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(cX.isString(a))try{return(0,JSON.parse)(a),cX.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dD(this,"transitional")||dI.transitional,n=t&&t.forcedJSONParsing,i=dD(this,"responseType"),o="json"===i;if(cX.isResponse(e)||cX.isReadableStream(e))return e;if(e&&cX.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dD(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dn.from(e,dn.ERR_BAD_RESPONSE,this,null,dD(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dT.classes.FormData,Blob:dT.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dO(e,t){let n=this||dI,i=t||n,o=c7.from(i.headers),r=i.data;return cX.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dR(e){return!!(e&&e.__CANCEL__)}cX.forEach(dL,e=>{dI.headers[e]={}});let d$=class extends dn{constructor(e,t,n){super(null==e?"canceled":e,dn.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dN(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dn("Request failed with status code "+n.status,n.status>=400&&n.status<500?dn.ERR_BAD_REQUEST:dn.ERR_BAD_RESPONSE,n.config,n.request,n))}let dP=/[\t\n\r]/g;function dB(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dP,"")}function dY(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let dj=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=o[a];n||(n=l),i[r]=s,o[r]=l;let d=a,u=0;for(;d!==r;)u+=i[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let m=c&&l-c;return m?Math.round(1e3*u/m):void 0}},dH=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},dz=(e,t,n=3)=>{let i=0,o=dj(50,250);return dH(n=>{if(!n||!cX.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),l=Math.max(0,s-i),c=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},dU=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dW=(e,t=cX.asap)=>(...n)=>t(()=>e(...n)),dV=dT.hasStandardBrowserEnv?(l=new URL(dT.origin),c=dT.navigator&&/(msie|trident)/i.test(dT.navigator.userAgent),e=>(e=new URL(e,dT.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,dG=dT.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];cX.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),cX.isString(i)&&s.push(`path=${i}`),cX.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),cX.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 i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},dq=/^https?:(?!\/\/)/i;function dK(e,t){if("string"==typeof e){let i=dB(e);if(dq.test(i)){var n;let e,o,r;throw new dn(`Invalid URL ${JSON.stringify((r=(-1===(o=(e=i.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${c9}@`)).indexOf("#"))?e:e.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${c9}`),-1===o?r:`${r}#${!(n=e.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${c9}`)}`))}: missing "//" after protocol`,dn.ERR_INVALID_URL,t)}}}function dX(e,t,n,i){dK(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(o||!1===n)){dK(e,i);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let dJ=e=>e instanceof c7?{...e}:e;function dQ(e,t){var n;e=e||{},t=t||{};let i=Object.create(null);function o(e,t,n,i){return cX.isPlainObject(e)&&cX.isPlainObject(t)?cX.merge.call({caseless:i},e,t):cX.isPlainObject(t)?cX.merge({},t):cX.isArray(t)?t.slice():t}function r(e,t,n,i){return cX.isUndefined(t)?cX.isUndefined(e)?void 0:o(void 0,e,n,i):o(e,t,n,i)}function a(e,t){if(!cX.isUndefined(t))return o(void 0,t)}function s(e,t){return cX.isUndefined(t)?cX.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,i,r){return cX.hasOwnProp(t,r)?o(n,i):cX.hasOwnProp(e,r)?o(void 0,n):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>r(dJ(e),dJ(t),n,!0)};return cX.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=cX.hasOwnProp(c,n)?c[n]:r,a=o(cX.hasOwnProp(e,n)?e[n]:void 0,cX.hasOwnProp(t,n)?t[n]:void 0,n);cX.isUndefined(a)&&o!==l||(i[n]=a)}),cX.hasOwnProp(t,"validateStatus")&&cX.isUndefined(t.validateStatus)&&!1===function(n){let i=cX.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!cX.isUndefined(i)){if(!cX.isPlainObject(i))return;else if(cX.hasOwnProp(i,n))return i[n]}let o=cX.hasOwnProp(e,"transitional")?e.transitional:void 0;if(cX.isPlainObject(o)&&cX.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(cX.hasOwnProp(e,"validateStatus")?i.validateStatus=o(void 0,e.validateStatus):delete i.validateStatus),i}let dZ=["content-type","content-length"],d0=function(e){let t=dQ({},e),n=e=>cX.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");if(t.headers=s=c7.from(s),t.url=dh(dX(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=cX.getSafeProp(l,"username")||"",n=cX.getSafeProp(l,"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 dn.from(t,dn.ERR_BAD_OPTION_VALUE,e)}}if(cX.isFormData(i)){let e=cX.getSafeProp(i,"getHeaders");if(dT.hasStandardBrowserEnv||dT.hasStandardBrowserWebWorkerEnv||cX.isReactNative(i))s.setContentType(void 0);else{var m,h;cX.isFunction(e)&&(m=s,h=e.call(i),"content-only"!==n("formDataHeaderPolicy")?m.set(h):Object.entries(h||{}).forEach(([e,t])=>{dZ.includes(e.toLowerCase())&&m.set(e,t)}))}}if(dT.hasStandardBrowserEnv&&(cX.isFunction(o)&&(o=o(t)),!0===o||null==o&&dV(t.url))){let e=r&&a&&dG.read(a);e&&s.set(r,e)}return t},d1="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let i,o,r,a,s,l,c=d0(e),d=c.data,u=c7.from(c.headers).normalize(),{responseType:m,onUploadProgress:h,onDownloadProgress:f}=c;function p(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function b(i){if(!g)return;if(0===g.status&&"file"!==(dY(dB(c.url))||dY(dT.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){n(new dn("Request aborted",dn.ECONNABORTED,e,g)),p(),g=null;return}try{i?l&&l(i):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let o=c7.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dN(function(e){t(e),p()},function(e){n(e),p()},{data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(b)},g.onabort=function(){g&&(n(new dn("Request aborted",dn.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){let i=new dn(t&&t.message?t.message:"Network Error",dn.ERR_NETWORK,e,g);i.event=t||null,n(i),p(),g=null},g.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",i=c.transitional||dv;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new dn(t,i.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,e,g)),p(),g=null},void 0===d&&u.setContentType(null),"setRequestHeader"in g&&cX.forEach(c1(u),function(e,t){g.setRequestHeader(t,e)}),cX.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),m&&"json"!==m&&(g.responseType=c.responseType),f&&([r,s,l]=dz(f,!0),g.addEventListener("progress",r)),h&&g.upload&&([o,a]=dz(h),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(i=t=>{g&&(n(!t||t.type?new d$(null,e,g):t),g.abort(),p(),g=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i)));let _=dY(c.url);if(_&&!dT.protocols.includes(_)){n(new dn("Unsupported protocol "+_+":",dn.ERR_BAD_REQUEST,e)),p();return}g.send(d||null)})},d2=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},d5=async function*(e,t){for await(let n of d4(e))yield*d2(n,t)},d4=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()}},d3=(e,t,n,i)=>{let o,r=d5(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},d6=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,d8=(e,t,n)=>t+2<n&&d6(e.charCodeAt(t+1))&&d6(e.charCodeAt(t+2)),d7=e=>e<=57?e-48:(223&e)-55,d9=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,ue=e=>9===e||10===e||12===e||13===e||32===e,ut=e=>{var t;let n,i,o=e.length,r=0,a=0,s=!1;for(let t=0;t<o;t++){let n=e.charCodeAt(t);if(37===n&&d8(e,t,o)&&(n=16*d7(e.charCodeAt(t+1))+d7(e.charCodeAt(t+2)),t+=2),!ue(n)){if(61===n){a++;continue}if(!d9(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=r)/4),3*n+(2==(i=t%4)?1:2*(3===i))},un={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ui}=cX,uo=e=>{if(!cX.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ur=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ua=e=>{let t,n=void 0!==cX.global&&null!==cX.global?cX.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=cX.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?ui(r):"function"==typeof fetch,c=ui(a),d=ui(s);if(!l)return!1;let u=l&&ui(i),m=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=c&&u&&ur(()=>{let e=!1,t=new a(dT.origin,{body:new i,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),f=d&&u&&ur(()=>cX.isReadableStream(new s("").body)),p={stream:f&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new dn(`Response type '${e}' is not supported`,dn.ERR_NOT_SUPPORT,n)})});let g=async e=>{if(null==e)return 0;if(cX.isBlob(e))return e.size;if(cX.isSpecCompliantForm(e)){let t=new a(dT.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return cX.isArrayBufferView(e)||cX.isArrayBuffer(e)?e.byteLength:(cX.isURLSearchParams(e)&&(e+=""),cX.isString(e))?(await m(e)).byteLength:void 0},b=async(e,t)=>{let n=cX.toFiniteNumber(e.getContentLength());return null==n?g(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:d,cancelToken:m,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:w,headers:x,withCredentials:F="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:C,maxRedirects:A}=d0(e),T=cX.isNumber(E)&&E>-1,S=cX.isNumber(C)&&C>-1,M=r||fetch;w=w?(w+"").toLowerCase():"text";let L=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dn?t:new d$(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dn(`timeout of ${t}ms exceeded`,dn.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{if(!i){if(e.aborted)return void o.call(e);e.addEventListener("abort",o,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>cX.asap(a),s})([d,m&&m.toAbortSignal()],_),D=null,I=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),O=null,R=()=>new dn("Request body larger than maxBodyLength limit",dn.ERR_BAD_REQUEST,e,D);try{var $,N;let r,d,m,_,P=(d="auth",cX.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=cX.getSafeProp(P,"username")||"",t=cX.getSafeProp(P,"password")||"";r={username:e,password:t}}if(m=($=n).indexOf("://"),_=$,-1!==m&&(_=_.slice(m+3)),_.includes("@")||_.includes(":")){let e=new URL(n,dT.origin);if(!r&&(e.username||e.password)){let t=uo(e.username),n=uo(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;x.delete("authorization"),x.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(T&&"string"==typeof n&&n.startsWith("data:")){let t;if(N=n,t="string"==typeof N?N.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let i=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(i))return t(o);let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&d8(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})(-1===t?N:N.slice(0,t),ut)>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}if(S&&"get"!==i&&"head"!==i){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw R()}let B=S&&(cX.isReadableStream(l)||cX.isStream(l)),Y=(e,t,n)=>d3(e,65536,e=>{if(S&&e>C)throw O=R();t&&t(e)},n);if(h&&"get"!==i&&"head"!==i&&(y||B)){if(t=null==t?await b(x,l):t,0!==t||B){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(cX.isFormData(l)&&(e=i.headers.get("content-type"))&&x.setContentType(e),i.body){let[e,n]=y&&dU(t,dz(dW(y)))||[];l=Y(i.body,e,n)}}}else if(B&&!c&&u&&"get"!==i&&"head"!==i)l=Y(l);else if(B&&c&&!h&&"get"!==i&&"head"!==i)throw new dn("Stream request bodies are not supported by the current fetch implementation",dn.ERR_NOT_SUPPORT,e,D);cX.isString(F)||(F=F?"include":"omit");let j=c&&"credentials"in a.prototype;if(cX.isFormData(l)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.20.0",!1);let H=null==k?k:Object.assign(Object.create(null),k);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let z=Object.assign(Object.create(null),H,{signal:L,method:i.toUpperCase(),headers:c1(x.normalize()),body:l,duplex:"half",credentials:j?F:void 0});c&&(cX.forEach(un,(e,t)=>{void 0===z[t]&&(z[t]=e)}),void 0===z.signal&&(z.signal=null),void 0===z.body&&(z.body=null)),0===A&&(z.redirect="manual",H&&(H.redirect="manual")),D=c&&new a(n,z);let U=await (c?M(D,H):M(n,z)),W=c7.from(U.headers);if(T){let t=cX.toFiniteNumber(W.getContentLength());if(null!=t&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}let V=f&&("stream"===w||"response"===w);if(f&&U.body&&(v||T||V&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=U[e]});let n=cX.toFiniteNumber(W.getContentLength()),[i,o]=v&&dU(n,dz(dW(v),!0))||[];U=new s(d3(U.body,65536,t=>{if(T&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D);i&&i(t)},()=>{o&&o(),I&&I()}),t)}w=w||"text";let G=await p[cX.findKey(p,w)||"text"](U,e);if(T&&!f&&!V){let t;if(null!=G&&("number"==typeof G.byteLength?t=G.byteLength:"number"==typeof G.size?t=G.size:"string"==typeof G&&(t="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof t&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}return!V&&I&&I(),await new Promise((t,n)=>{dN(t,n,{data:G,headers:c7.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:D})})}catch(t){if(I&&I(),L&&L.aborted&&L.reason instanceof dn){let n=L.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw D&&!O.request&&(O.request=D),O;if(t instanceof dn)throw D&&!t.request&&(t.request=D),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dn("Network Error",dn.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dn.from(t,t&&t.code,e,D,t&&t.response)}}},us=new Map,ul=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=us;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ua(t)),c=l;return l};ul();let uc={http:null,xhr:d1,fetch:{get:ul}};cX.forEach(uc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ud=e=>`- ${e}`,uu=e=>cX.isFunction(e)||null===e||!1===e,um=function(e,t){let n,i,{length:o}=e=cX.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!uu(n)&&void 0===(i=uc[(o=String(n)).toLowerCase()]))throw new dn(`Unknown adapter '${o}'`);if(i&&(cX.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dn("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(ud).join("\n"):" "+ud(e[0]):"as no adapter specified"),dn.ERR_NOT_SUPPORT)}return i};function uh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new d$(null,e)}function uf(e){let t=cX.toSafeFlatObject(e);return uh(t),t.headers=c7.from(cX.getSafeProp(t,"headers")),t.data=dO.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),um(t.adapter||dI.adapter,t)(t).then(function(e){uh(t),t.response=e;try{e.data=dO.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=c7.from(e.headers),e},function(e){if(!dR(e)&&(uh(t),e&&e.response)){t.response=e.response;try{e.response.data=dO.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=c7.from(e.response.headers)}return Promise.reject(e)})}let up={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{up[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ug={};up.transitional=function(e,t,n){function i(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dn(i(o," has been removed"+(t?" in "+t:"")),dn.ERR_DEPRECATED);return t&&!ug[o]&&(ug[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},up.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ub=function(e,t,n){if("object"!=typeof e||null===e)throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dn("option "+r+" must be "+n,dn.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dn("Unknown option "+r,dn.ERR_BAD_OPTION)}};class u_{constructor(e){this.defaults=e||{},this.interceptors={request:new d_,response:new d_}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,i="";if("string"==typeof n){let e=n.indexOf("\n");i=-1===e?"":n.slice(e+1)}if(e.stack){if(i){let t=i.indexOf("\n"),n=-1===t?-1:i.indexOf("\n",t+1),o=-1===n?"":i.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=dQ(this.defaults,t);void 0!==o&&ub(o,{silentJSONParsing:up.transitional(up.boolean),forcedJSONParsing:up.transitional(up.boolean),clarifyTimeoutError:up.transitional(up.boolean),legacyInterceptorReqResOrdering:up.transitional(up.boolean),advertiseZstdAcceptEncoding:up.transitional(up.boolean),validateStatusUndefinedResolves:up.transitional(up.boolean)},!1),null!=r&&(cX.isFunction(r)?t.paramsSerializer={serialize:r}:ub(r,{encode:up.function,serialize:up.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ub(t,{baseUrl:up.spelling("baseURL"),withXsrfToken:up.spelling("withXSRFToken")},!0),t.method=(cX.getSafeProp(t,"method")||cX.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&cX.merge(a.common,a[t.method]);a&&cX.forEach(dL.concat("common"),e=>{delete a[e]}),t.headers=c7.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||dv;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[uf.bind(this),void 0];for(e.unshift(...l),e.push(...d),i=e.length,n=Promise.resolve(t);u<i;)n=n.then(e[u++],e[u++]);return n}i=l.length;let m=t;for(;u<i;){let e=l[u++],t=l[u++];try{m=e?e(m):m}catch(e){if(!t){n=Promise.reject(e);break}try{let i=t.call(this,e);cX.isThenable(i)&&(n=Promise.resolve(i).then(()=>uf.call(this,m)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=uf.call(this,m)}catch(e){n=Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dh(dX((e=dQ(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}cX.forEach(["delete","get","head","options"],function(e){u_.prototype[e]=function(t,n){return this.request(dQ(n||{},{method:e,url:t,data:n&&cX.hasOwnProp(n,"data")?n.data:void 0}))}}),cX.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(dQ(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}u_.prototype[e]=t(),"query"!==e&&(u_.prototype[e+"Form"]=t(!0))});let uv=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new d$(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},uy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uy).forEach(([e,t])=>{void 0===uy[t]&&(uy[t]=e)});let uw=function e(t){let n=new u_(t),i=co(u_.prototype.request,n);return cX.extend(i,u_.prototype,n,{allOwnKeys:!0}),cX.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(dQ(t,n))},i}(dI);uw.Axios=u_,uw.CanceledError=d$,uw.CancelToken=uv,uw.isCancel=dR,uw.VERSION="1.20.0",uw.toFormData=dl,uw.AxiosError=dn,uw.Cancel=uw.CanceledError,uw.all=function(e){return Promise.all(e)},uw.spread=function(e){return function(t){return e.apply(null,t)}},uw.isAxiosError=function(e){return cX.isObject(e)&&!0===e.isAxiosError},uw.mergeConfig=dQ,uw.AxiosHeaders=c7,uw.formToJSON=e=>dM(cX.isHTMLForm(e)?new FormData(e):e),uw.getAdapter=um,uw.HttpStatusCode=uy,uw.default=uw;class ux{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uU`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uU`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uU`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uU`provisioning/${e}`,data:t,options:n})}}class uF{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uU`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uU`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uU`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uU`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uU`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uU`notification/${e}/delivered`,queryParams:t,options:n})}}class uk{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uU`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uU`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uU`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uU`dashboard/${e}/${t}`,options:n})}}class uE{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uU`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uC{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uU`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uU`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uA{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uU`console/register`,data:e,options:t})}}class uT{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uU`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uU`info`,options:e})}}class uS{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uU`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uU`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uM{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uU`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uU`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uU`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uU`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uU`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uU`service/${e}/${t}`,options:n})}}class uL{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uU`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uU`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uU`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uU`configuration/manager/image/${e}`,options:t})}}class uD{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`asset/predicted/${e}/${t}`,data:n,options:i})}}class uI{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uU`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uU`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uU`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/valueDescriptors`,queryParams:e,options:t})}}class uO{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uU`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uU`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uU`apps/info`,options:e})}}class uR{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uU`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uU`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/status/${e}`,options:t})}}class u${constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uU`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uU`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uU`flow/${e}`,options:t})}}class uN{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uU`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uU`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uU`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uU`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`realm/${e}`,data:t,options:n})}}class uP{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uU`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uU`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uU`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uU`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uU`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uU`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uU`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/${e}`,data:t,options:n})}}class uB{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uU`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uU`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uU`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uU`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uU`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uU`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uU`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uU`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uU`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uU`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uU`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/${t}`,options:n})}}class uY{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uU`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uU`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uU`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uU`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uU`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uU`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uU`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uU`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uU`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uU`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uU`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uU`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uU`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uU`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/child`,queryParams:t,options:n})}}class uj{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uU`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uU`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uU`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uU`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uU`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uU`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uU`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uU`alarm/${e}/assets`,queryParams:t,options:n})}}class uH{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uU`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uU`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uU`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uU`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uU`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uU`map/upload`,queryParams:e,options:t})}}class uz{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uU`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uU`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uU`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uU`syslog/event`,queryParams:e,options:t})}}function uU(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class uW{constructor(e,t=uw.create()){this._provisioningResource=new uG(e,t),this._notificationResource=new uq(e,t),this._dashboardResource=new uK(e,t),this._gatewayServiceResource=new uX(e,t),this._assetDatapointResource=new uJ(e,t),this._consoleResource=new uQ(e,t),this._statusResource=new uZ(e,t),this._agentResource=new u0(e,t),this._externalServiceResource=new u1(e,t),this._configurationResource=new u2(e,t),this._assetPredictedDatapointResource=new u5(e,t),this._assetModelResource=new u4(e,t),this._appResource=new u3(e,t),this._gatewayClientResource=new u6(e,t),this._flowResource=new u8(e,t),this._realmResource=new u7(e,t),this._rulesResource=new u9(e,t),this._userResource=new me(e,t),this._assetResource=new mt(e,t),this._alarmResource=new mn(e,t),this._mapResource=new mi(e,t),this._syslogResource=new mo(e,t),this._assetResource=new mt(e,t)}get ProvisioningResource(){return this._provisioningResource}get NotificationResource(){return this._notificationResource}get DashboardResource(){return this._dashboardResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetDatapointResource(){return this._assetDatapointResource}get ConsoleResource(){return this._consoleResource}get StatusResource(){return this._statusResource}get AgentResource(){return this._agentResource}get ExternalServiceResource(){return this._externalServiceResource}get ConfigurationResource(){return this._configurationResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get AssetModelResource(){return this._assetModelResource}get AppResource(){return this._appResource}get GatewayClientResource(){return this._gatewayClientResource}get FlowResource(){return this._flowResource}get RealmResource(){return this._realmResource}get RulesResource(){return this._rulesResource}get UserResource(){return this._userResource}get AssetResource(){return this._assetResource}get AlarmResource(){return this._alarmResource}get MapResource(){return this._mapResource}get SyslogResource(){return this._syslogResource}}class uV{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 uG extends ux{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uq extends uF{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uK extends uk{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uX extends uE{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uJ extends uC{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uQ extends uA{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uZ extends uT{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u0 extends uS{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u1 extends uM{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u2 extends uL{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u5 extends uD{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u4 extends uI{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u3 extends uO{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u6 extends uR{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u8 extends u${constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u7 extends uN{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u9 extends uP{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class me extends uB{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mt extends uY{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mn extends uj{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mi extends uH{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mo extends uz{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}var mr=n(88183),ma=n.n(mr);uw.isAxiosError;let ms=new class{get api(){return this._client}constructor(){this._axiosInstance=uw.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ma().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 uW(e,this._axiosInstance)}};var ml=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(vg=yL||(yL={})).DISCONNECTED="DISCONNECTED",vg.CONNECTED="CONNECTED",vg.CONNECTING="CONNECTING";let mc="SUBSCRIBED:",md="UNAUTHORIZED:",mu="TRIGGERED:",mm="EVENT:";class mh{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mf.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=yL.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===yL.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(yL.CONNECTING),this._connectingDeferred=new l8,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mf.MIN_RECONNECT_DELAY,this._onStatusChanged(yL.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!==yL.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new l8};return null!=this._pendingSubscription||this._status!==yL.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 ml(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===yL.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==yL.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mh._subscriptionCounter++;if(!this._assetEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===mJ.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&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),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+mh._subscriptionCounter++;if(!this._attributeEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===mJ.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.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===yL.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===yL.CONNECTED&&this._onStatusChanged(yL.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(yL.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<mf.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mf.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mh.MIN_RECONNECT_DELAY=0,mh.MAX_RECONNECT_DELAY=3e4,mh._subscriptionCounter=0;class mf extends mh{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="+mJ.config.realm;return this._connectDeferred=new l8,(mJ.authenticated?mJ.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(mc)){let e=JSON.parse(t.substring(mc.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(md)){let e=JSON.parse(t.substring(md.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(mu)){let e=JSON.parse(t.substring(mu.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.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 l8,e.subscriptionId||(e.subscriptionId=mf._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=mm+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 l8;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mm+JSON.stringify(e)),t.promise}}mf._subscriptionCounter=1;let mp=["__proto__","constructor","prototype"];function mg(e){return!("string"!=typeof e||0===e.length||e.length>128||mp.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mb(e){return!(!mg(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let m_={lng:mb,ns:function(e){return!(!mg(e)||e.indexOf("//")>-1)}};function mv(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function my(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mw=/\{\{(.+?)\}\}/g;function mx(e,t){let n=!1,i=e.replace(mw,(e,i)=>{let o=i.trim();if(mp.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=m_[o]||mb,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mF="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mF&&"function"==typeof mF.fetch&&(e=mF.fetch);let mk=my()&&mF?mF.XMLHttpRequest:void 0,mE="function"==typeof ActiveXObject&&mF?mF.ActiveXObject:void 0,mC=["__proto__","constructor","prototype"],mA=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mC.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mT=(t,n,i,o)=>{let r=e=>{if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then(t=>{i(null,{status:e.status,data:t})}).catch(i)};if(o){let e=o(t,n);if(e instanceof Promise)return void e.then(r).catch(i)}"function"==typeof fetch?fetch(t,n).then(r).catch(i):e(t,n).then(r).catch(i)},mS=(t,n,i,o)=>{if("function"==typeof i&&(o=i,i=void 0),o=o||(()=>{}),e&&0!==n.indexOf("file:")){var r=n,a=i,s=o;t.queryStringParams&&(r=mA(r,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 l="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:l},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{mT(r,c,s,d)}catch(e){if(!l||0===Object.keys(l).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(l).forEach(e=>{delete c[e]}),mT(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(my()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mA("",c).slice(1)),t.queryStringParams&&(l=mA(l,t.queryStringParams));try{let e=mk?new mk:new mE("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",l,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))mC.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var mM=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:mS,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,i,o){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return o(null,{});let a=mx(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(mv).join(", ")+"] namespaces=["+n.map(mv).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=mv(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,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+mv(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let c=mx(i,{lng:n,ns:t});if(null==c){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,c,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};mM.type="backend";class mL extends rv{constructor(e){if(super(e),this.it=en,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===en||null==e)return this._t=void 0,this.it=e;if(e===et)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:[]}}}mL.directiveName="unsafeHTML",mL.resultType=1,r_(mL);class mD extends mL{}mD.directiveName="unsafeSVG",mD.resultType=2;let mI=r_(mD),mO={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 mR=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class m$ extends CustomEvent{constructor(){super(m$.NAME,{bubbles:!0,composed:!0})}}m$.NAME="or-iconset-added";let mN=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new m$)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ee``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ee``}},mP=class extends ex{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[b`
16
+ `;class ex extends ev{static finalizeStyles(e){return[ew,...super.finalizeStyles(e)]}}let eF=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ek={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:L};function eE(e){return(t,n)=>{let i;return"object"==typeof n?((e=ek,t,n)=>{let{kind:i,metadata:o}=n,r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(n.name,e),"accessor"===i){let{name:i}=n;return{set(n){let o=t.get.call(this);t.set.call(this,n),this.requestUpdate(i,o,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){let{name:i}=n;return function(n){let o=this[i];t.call(this,n),this.requestUpdate(i,o,e)}}throw Error("Unsupported decorator location: "+i)})(e,t,n):(i=t.hasOwnProperty(n),t.constructor.createProperty(n,e),i?Object.getOwnPropertyDescriptor(t,n):void 0)}}function eC(e){return eE({...e,state:!0,attribute:!1})}let eA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eT(e,t){return(n,i,o)=>{let r=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof i?n:o??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return eA(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eA(n,i,{get(){return r(this)}})}}var eS=n(55359),eM=n.n(eS),eL=n(71770),eD=n.n(eL),eI=n(38420),eO=n.n(eI),eR=n(95355),e$=n.n(eR),eN=n(29650),eP=n.n(eN),eB=n(59974),eY=n.n(eB),ej=n(29475),eH=n.n(ej),ez=n(64383),eU=n.n(ez),eW=n(22485),eV=n.n(eW),eG=n(18508),eq=n.n(eG),eK=n(16372),eX=n.n(eK),eJ=n(58466),eQ=n.n(eJ),eZ=n(78434),e0=n.n(eZ),e1=n(51582),e2=n.n(e1),e5=n(81285),e4=n.n(e5),e3=n(26461),e6=n.n(e3),e8=n(97564),e7=n.n(e8),e9=n(94360),te=n.n(e9),tt=n(20469),tn=n.n(tt),ti=n(96672),to=n.n(ti),tr=n(6994),ta=n.n(tr),ts=n(19804),tl=n.n(ts),tc=n(81370),td=n.n(tc),tu=n(86520),tm=n.n(tu),th=n(55482),tf=n.n(th);let tp="additionalProperties",tg="required";class tb{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tp)},i=this.findOption(t)(tg);return i.length>0&&(n.required=i),n},this.properties=e=>Object.keys(e).reduce((t,n)=>(t[n]=this.property(e[n]),t),{}),this.property=e=>{switch(typeof e){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(e))return{type:"integer"};return{type:"number"};case"object":if(null==e)return{type:"null"};return this.schemaObjectOrArray(e);default:return{}}},this.schemaObjectOrArray=e=>e instanceof Array?this.schemaArray(e):this.schemaObject(e),this.schemaArray=e=>{if(!(e.length>0))return{type:"array",items:{}};{var t,n;let i,o=(t=e.map(this.property),n=e=>JSON.stringify(e),i={},t.filter(e=>{let t=n(e);return!Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let t_=(e,t={})=>new tb(e=>n=>{switch(n){case tp:if(Object.prototype.hasOwnProperty.call(t,tp))return t[tp];return!0;case tg:if(Object.prototype.hasOwnProperty.call(t,tg))return t[tg](e);return Object.keys(e);default:return}}).schemaObject(e),tv=new Set,ty=(e,t)=>t<=1?e:e+t.toString(),tw=(e,t)=>{let n=ty(e,t);return!tv.has(n)},tx=e=>{void 0===e&&(e="undefined");let t=0;for(;!tw(e,t);)t++;let n=ty(e,t);return tv.add(n),n},tF=e=>tv.delete(e),tk=()=>tv.clear(),tE=(e,t)=>{let n=e;return(eM()(e)||eM()(t)||t.startsWith("[")||(n=e+"."),eM()(n))?t:eM()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tS),n="#"===t[0]||""===t[0];return e$()(n?2:1,t.length,2).map(e=>t[e])},tA=e=>tC(e).join("."),tT=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tS=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tM=e=>`/properties/${e.split(".").map(e=>tT(e)).join("/properties/")}`,tL=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tS(t.substr(t.lastIndexOf("/")+1));return eD()(n)}return""},tD=e=>eD()(e.replace("_"," ")),tI=(e,t)=>{let n=e.label;return"boolean"==typeof n?tO(tL(e,t),n):"string"==typeof n?tO(n,!0):"object"==typeof n?tO("string"==typeof n.text?n.text:tL(e,t),"boolean"!=typeof n.show||n.show):tO(tL(e,t),!0)},tO=(e,t)=>({text:e,show:t}),tR=(e,t)=>eM()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),t$=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>t$(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>t$(e,t)):t$(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>t$(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tN=(e,t,n)=>tP(e,t?.split("/").map(tS),n),tP=(e,t,n)=>{if(eM()(e))return;if("string"==typeof e.$ref&&(e=tN(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tP(e,o,n);let r=tP(eP()(e,i),o,n);if(r)return r;if("properties"===i||"items"===i){let t;for(let r of[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]))if(t=tP(r,[i,...o],n))break;return t}},tB={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};(_d=vx||(vx={})).HIDE="HIDE",_d.SHOW="SHOW",_d.ENABLE="ENABLE",_d.DISABLE="DISABLE";let tY=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tj=e=>{tz(e,tY(!0))},tH=e=>{tz(e,tY(!1))},tz=(e,t)=>{if(!eM()(e)){if(tq(e))return void e.elements.forEach(e=>tz(e,t));t(e)}},tU=(e,t)=>{if(tZ(e)){if(tX(e)&&e.scope.endsWith(tM(t)))return e;else if(e.options?.detail)return tU(e.options.detail,t)}if(tq(e))for(let n of e.elements){let e=tU(n,t);if(void 0!==e)return e}},tW=(e,t)=>{if(!tX(e))return t??"";let n=tC(e.scope);return eM()(n)?t??"":tE(t,n.join("."))},tV=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tG=e=>"Group"===e.type,tq=e=>void 0!==e.elements,tK=e=>!!e&&"object"==typeof e,tX=e=>tK(e)&&"string"==typeof e.scope,tJ=e=>!!e&&"object"==typeof e,tQ=e=>tJ(e)&&["string","boolean"].includes(typeof e.label),tZ=e=>"Control"===e.type,t0=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t0(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t0(e,o,n,i),!1);if("LEAF"===t.type)return tR(e,tW(t,n))===t.expectedValue;if(!eY()(t,"schema"))return!0;{let o=tR(e,tW(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t1=(e,t,n,i)=>t0(t,e.rule.condition,n,i),t2=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case vx.HIDE:return!o;case vx.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case vx.DISABLE:return!o;case vx.ENABLE:return o;default:return!0}},t4=e=>!!e.rule&&(e.rule.effect===vx.SHOW||e.rule.effect===vx.HIDE),t3=e=>!!e.rule&&(e.rule.effect===vx.ENABLE||e.rule.effect===vx.DISABLE),t6=(e,t,n,i)=>!e.rule||t2(e,t,n,i),t8=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t7=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return eH()(Object.keys(e.properties),t=>{let n=e.properties[t];return n&&"object"==typeof n&&"type"in n&&("string"===n.type||"number"===n.type||"integer"===n.type)})},t9=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),ne=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nt=(e,t)=>{let n=e.toISOString();if("date-time"===t);else if("date"===t)return n.split("T")[0];else if("time"===t)return n.split("T")[1].split(".")[0];return n},nn=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),ni=(e,t)=>eV()(no(e),t),no=e=>{if(eM()(e))return[];if(!eM()(e.type)&&"string"==typeof e.type)return[e.type];if(eU()(e.type))return e.type;if(!eM()(e.properties)||!eM()(e.additionalProperties))return["object"];if(!eM()(e.items))return["array"];if(!eM()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):no(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eM()(e.allOf)){let t=eH()(e.allOf,e=>0!==no(e).length);if(t)return no(t)}return[]},nr={schema:tN,data:tR},na={compose:tE,fromScoped:e=>tC(e.scope).join(".")},ns={isEnabled:(e,t,n)=>t8(e,t,void 0,n),isVisible:(e,t,n)=>t6(e,t,void 0,n)},nl=e=>{let t=new(eq())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eX()(t),t},nc=(e,t)=>void 0===e||e(t)?[]:e.errors,nd="YYYY-MM-DD",nu="HH:mm:ss",nm="YYYY-MM-DDTHH:mm:ss.sssZ",nh=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");let n=(e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}})(e);return void 0===n||t.endsWith(n)||(t=`${t}.${n}`),t=tS(t=t.replace(/^./,""))},nf=(e,t,n)=>i=>{let o=eQ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nh(e));return eQ()(i,i=>{if(-1!==ng.indexOf(i.keyword)&&!t9(i.parentSchema))return!1;let r=n(nh(i)),a=i.parentSchema;return!r||np(a)||t9(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e0()(a,t)),r})},np=e=>e?.type==="object"||!!e?.properties,ng=["additionalProperties","allOf","anyOf","oneOf"],nb=e=>null==e?"":e.join("\n"),n_={createLabelDescriptionFrom:tI,convertToValidClassName:nn},nv=e=>({type:e,elements:[]}),ny=e=>({type:"Control",scope:e}),nw=(e,t,n,i,o,r)=>{if(!eM()(e)&&void 0!==e.$ref)return nw(tN(r,e.$ref,r),t,n,i,o,r);if(!eM()(e)&&(!eM()(e.oneOf)||!eM()(e.anyOf)||!eM()(e.allOf))){let e=ny(n);return t.push(e),e}let a=no(e);if(0===a.length)return null;if(a.length>1){let e=ny(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=nv(o);if(t.push(a),e.properties&&eO()(e.properties).length>1&&((e,t)=>{if(!eM()(t)){let n=eD()(t);tG(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eM()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tT(n)}`;void 0!==i.$ref&&(i=tN(r,i.$ref,r)),nw(i,a.elements,s,n,o,r)})}return a}switch(a[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let e=ny(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nx=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eM()(e)&&!tq(e)){let n=nv(t);return n.elements.push(e),n}return e})(nw(e,[],n,"",t,i),t),nF={jsonSchema:t_,uiSchema:nx,controlElement:ny},nk="jsonforms/INIT",nE="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nA="jsonforms/UPDATE",nT="jsonforms/UPDATE_ERRORS",nS="jsonforms/VALIDATE",nM="jsonforms/ADD_RENDERER",nL="jsonforms/REMOVE_RENDERER",nD="jsonforms/ADD_CELL",nI="jsonforms/REMOVE_CELL",nO="jsonforms/SET_CONFIG",nR="jsonforms/ADD_UI_SCHEMA",n$="jsonforms/REMOVE_UI_SCHEMA",nN="jsonforms/SET_SCHEMA",nP="jsonforms/SET_UISCHEMA",nB="jsonforms/SET_VALIDATION_MODE",nY="jsonforms/SET_LOCALE",nj="jsonforms/SET_TRANSLATOR",nH="jsonforms/UPDATE_I18N",nz="jsonforms/ADD_DEFAULT_DATA",nU="jsonforms/REMOVE_DEFAULT_DATA",nW=e=>{if(!("type"in e)||"string"!=typeof e.type)return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(e=>"number"==typeof e);case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(e=>"object"==typeof e&&null!==e&&"from"in e&&"to"in e&&"number"==typeof e.from&&"number"==typeof e.to);default:return!1}},nV=(e,t=t_(e),n,i)=>({type:nk,data:e,schema:t,uischema:"object"==typeof n?n:nx(t),options:i}),nG=(e,t,n,i)=>({type:nE,data:e,schema:t,uischema:n,options:i}),nq=(e,t)=>({type:nz,schemaPath:e,data:t}),nK=e=>({type:nU,schemaPath:e}),nX=e=>({type:nC,ajv:e}),nJ=(e,t,n)=>({type:nA,path:e,updater:t,context:n}),nQ=e=>({type:nT,errors:e}),nZ=(e,t)=>({type:nM,tester:e,renderer:t}),n0=(e,t)=>({type:nD,tester:e,cell:t}),n1=(e,t)=>({type:nI,tester:e,cell:t}),n2=(e,t)=>({type:nL,tester:e,renderer:t}),n5=e=>({type:nO,config:e}),n4=e=>({type:nB,validationMode:e}),n3=(e,t)=>({type:nR,tester:e,uischema:t}),n6=e=>({type:n$,tester:e}),n8=e=>({type:nY,locale:e}),n7=e=>({type:nN,schema:e}),n9=(e,t)=>({type:nj,translator:e,errorTranslator:t}),ie=(e,t,n)=>({type:nH,locale:e,translator:t,errorTranslator:n}),it=e=>({type:nP,uischema:e});var ii=Object.freeze({__proto__:null,INIT:nk,UPDATE_CORE:nE,SET_AJV:nC,UPDATE_DATA:nA,UPDATE_ERRORS:nT,VALIDATE:nS,ADD_RENDERER:nM,REMOVE_RENDERER:nL,ADD_CELL:nD,REMOVE_CELL:nI,SET_CONFIG:nO,ADD_UI_SCHEMA:nR,REMOVE_UI_SCHEMA:n$,SET_SCHEMA:nN,SET_UISCHEMA:nP,SET_VALIDATION_MODE:nB,SET_LOCALE:nY,SET_TRANSLATOR:nj,UPDATE_I18N:nH,ADD_DEFAULT_DATA:nz,REMOVE_DEFAULT_DATA:nU,isUpdateArrayContext:nW,init:nV,updateCore:nG,registerDefaultData:nq,unregisterDefaultData:nK,setAjv:nX,update:nJ,updateErrors:nQ,registerRenderer:nZ,registerCell:n0,unregisterCell:n1,unregisterRenderer:n2,setConfig:n5,setValidationMode:n4,registerUISchema:n3,unregisterUISchema:n6,setLocale:n8,setSchema:n7,setTranslator:n9,updateI18n:ie,setUISchema:it});let io=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nD:return e.concat([{tester:n,cell:i}]);case nI:return e.filter(e=>e.tester!==n);default:return e}},ir={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},ia=(e={})=>e2()({},ir,e),is=(e=ia(),t)=>t.type===nO?ia(t.config):e,il={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ic=(e,t)=>t&&id(t.options)?t.options.validationMode:e.validationMode,id=e=>!!e&&void 0!==e.validationMode,iu=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},im=(e,t)=>{if(t){if(ih(t.options))return t.options.ajv;else if(void 0!==t.options&&te()(t.options.compile))return t.options}return e.ajv?e.ajv:nl()},ih=e=>!!e&&void 0!==e.ajv,ip=(e=il,t)=>{switch(t.type){case nk:{let n=im(e,t),i=ic(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nc(o,t.data),a=iu(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nE:{let n=im(e,t),i=ic(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nc(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nc(o,t.data));let a=iu(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==r||e.validator!==o||e.validationMode!==i||e.additionalErrors!==a?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:e0()(r,e.errors)?e.errors:r,validator:o,validationMode:i,additionalErrors:a}:e}case nC:{let n=t.ajv,i="NoValidation"===e.validationMode?void 0:n.compile(e.schema),o=nc(i,e.data);return{...e,validator:i,errors:o}}case nN:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nc(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nP:return{...e,uischema:t.uischema};case nA:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e4()(e.data)),i=nc(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eP()(e.data,t.path),o=t.updater(e4()(i));n=void 0!==o?e6()(t.path,o,void 0===e.data?{}:e.data):e7()(t.path,void 0===e.data?{}:e.data);let r=nc(e.validator,n);return{...e,data:n,errors:r}}case nT:return{...e,errors:t.errors};case nB:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nc(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nc(n,e.data);return{...e,validator:n,errors:i,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode};default:return e}},ig=(e=[],t)=>{switch(t.type){case nz:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nU:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},ib=e=>i_(eP()(e,"jsonforms.defaultData")),i_=e=>e;(_u=vF||(vF={})).addTooltip="addTooltip",_u.addAriaLabel="addAriaLabel",_u.removeTooltip="removeTooltip",_u.upAriaLabel="upAriaLabel",_u.downAriaLabel="downAriaLabel",_u.noSelection="noSelection",_u.removeAriaLabel="removeAriaLabel",_u.noDataMessage="noDataMessage",_u.deleteDialogTitle="deleteDialogTitle",_u.deleteDialogMessage="deleteDialogMessage",_u.deleteDialogAccept="deleteDialogAccept",_u.deleteDialogDecline="deleteDialogDecline",_u.up="up",_u.down="down";let iv=[{key:vF.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:vF.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:vF.removeTooltip,default:()=>"Delete"},{key:vF.removeAriaLabel,default:()=>"Delete button"},{key:vF.upAriaLabel,default:()=>"Move item up"},{key:vF.up,default:()=>"Up"},{key:vF.down,default:()=>"Down"},{key:vF.downAriaLabel,default:()=>"Move item down"},{key:vF.noDataMessage,default:()=>"No data"},{key:vF.noSelection,default:()=>"No selection"},{key:vF.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:vF.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:vF.deleteDialogAccept,default:()=>"Yes"},{key:vF.deleteDialogDecline,default:()=>"No"}];(_m=vk||(vk={})).clearDialogTitle="clearDialogTitle",_m.clearDialogMessage="clearDialogMessage",_m.clearDialogAccept="clearDialogAccept",_m.clearDialogDecline="clearDialogDecline";let iy=[{key:vk.clearDialogTitle,default:()=>"Clear form?"},{key:vk.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:vk.clearDialogAccept,default:()=>"Yes"},{key:vk.clearDialogDecline,default:()=>"No"}],iw=(e,t)=>tV(t)?t.i18n:e?.i18n??void 0,ix=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",iF=(e,t,n)=>iw(e,t)??ix(n),ik=(e,t,n,i)=>`${iF(e,t,n)}.${i}`,iE=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iA=(e,t,n)=>{let i=t(ik(e.parentSchema,n,nh(e),`error.${e.keyword}`),void 0,{error:e});if(void 0!==i)return i;let o=t(`error.${e.keyword}`,void 0,{error:e});if(void 0!==o)return o;let r=t(e.message,void 0,{error:e});return void 0!==r?r:"required"===e.keyword&&e.message?.startsWith("must have required property")?t("is a required property","is a required property",{error:e}):e.message},iT=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(ik(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return nb(e.map(e=>t(e,n,o)))},iS=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tV(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iw(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iM=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iL=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iD=e=>{if(void 0!==e)return e.locale},iI=e=>void 0===e?iC:e.translate,iO=e=>void 0===e?iA:e.translateError,iR=e=>iD(eP()(e,"jsonforms.i18n")),i$=()=>e=>iI(eP()(e,"jsonforms.i18n")),iN=()=>e=>iO(eP()(e,"jsonforms.i18n")),iP={locale:"en",translate:iC,translateError:iA},iB=(e=iP,t)=>{switch(t.type){case nH:{let n=t.locale??iP.locale,i=t.translator??iP.translate,o=t.errorTranslator??iP.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nj:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iA};case nY:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},iY=(e=[],t)=>{switch(t.type){case nM:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nL:return e.filter(e=>e.tester!==t.tester);default:return e}},ij=e=>!eM()(e)&&void 0!==e.scope,iH=e=>(t,n,i)=>{if(eM()(t)||!ij(t)||eM()(n))return!1;let o=t.scope;if(eM()(o))return!1;let r=n;return ni(n,"object")&&(r=tN(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iz=(e,t)=>(n,i,o)=>{if(eM()(n)||!ij(n))return!1;let r=n.scope,a=i;return ni(i,"object")&&(a=tN(i,r,o?.rootSchema)),void 0!==(a=eP()(a,e))&&t(a,o?.rootSchema)},iU=e=>iH(t=>!eM()(t)&&ni(t,e)),iW=e=>iH(t=>!eM()(t)&&t.format===e&&ni(t,"string")),iV=e=>t=>!eM()(t)&&t.type===e,iG=(e,t)=>n=>{if(eM()(n))return!1;let i=n.options;return!eM()(i)&&i[e]===t},iq=e=>t=>{if(eM()(t))return!1;let n=t.options;return!eM()(n)&&!tf()(n[e])},iK=e=>t=>!eM()(e)&&!!ij(t)&&ta()(t.scope,e),iX=e=>t=>{if(eM()(e)||!ij(t))return!1;let n=t.scope;return!eM()(n)&&tl()(n.split("/"))===e},iJ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),iQ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),iZ=(e,t)=>(n,i,o)=>t(n,i,o)?e:-1,i0=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return -1===r?-1:r+e},i1=iJ(iV("Control"),iU("boolean")),i2=iJ(iV("Control"),iU("object")),i5=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i4=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i3=iJ(iV("Control"),iH(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i6=iJ(iV("Control"),iH(e=>ne(e))),i8=iJ(iV("Control"),iH(e=>t9(e))),i7=iJ(iV("Control"),iU("integer")),i9=iJ(iV("Control"),iU("number")),oe=iJ(iV("Control"),iU("string")),ot=iJ(iV("Control"),iG("multi",!0)),on=iJ(iV("Control"),iQ(iW("date"),iG("format","date"))),oi=iJ(iV("Control"),iQ(iW("time"),iG("format","time"))),oo=iJ(iV("Control"),iQ(iW("date-time"),iG("format","date-time"))),or=iJ(iH((e,t)=>ni(e,"array")&&!Array.isArray(tN(e,"items",t))),iz("items",(e,t)=>ni(e.$ref?tN(t,e.$ref,t):e,"object"))),oa=iJ(iV("Control"),or),os=(e,t,n)=>{if(eU()(e))return td()(e,(e,i)=>e||os(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tN(n,e.$ref,n);if(i&&!i.$ref)return os(i,t,n)}return e.items?os(e.items,t,n):!!e.properties&&td()(tm()(e.properties),(e,[i,o])=>e||os(o,t,n),!1)},ol=(e,t,n)=>{if(!iV("Control")(e,t,n))return!1;let i=tN(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(os(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!t9(e)||ni(e,"object")&&2==++o)||!!ni(e,"array")),n?.rootSchema))return!0;if(e.options&&e.options.detail){if("string"==typeof e.options.detail)return"DEFAULT"!==e.options.detail.toUpperCase();else if("object"==typeof e.options.detail&&e.options.detail.type)return!0}}return!1},oc=oa,od=iJ(iV("Control"),iH((e,t)=>0!==no(e).length&&!Array.isArray(tN(e,"items",t))),iz("items",(e,t)=>{let n=no(e.$ref?tN(t,e.$ref,t):e);return 1===n.length&&eV()(["integer","number","boolean","string"],n[0])})),ou=iJ(iV("Control"),iQ(iU("number"),iU("integer")),iH(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iG("slider",!0)),om=iJ(iV("Control"),iU("integer"),iG("format",!0)),oh=e=>"Categorization"===e.type,of=e=>"Category"===e.type,op=e=>!eM()(e.elements)&&e.elements.map(e=>oh(e)?op(e):of(e)).reduce((e,t)=>e&&t,!0),og=e=>op(e),ob=e=>(t,n,i)=>!e(t,n,i);var o_=Object.freeze({__proto__:null,NOT_APPLICABLE:-1,isControl:ij,schemaMatches:iH,schemaSubPathMatches:iz,schemaTypeIs:iU,formatIs:iW,uiTypeIs:iV,optionIs:iG,hasOption:iq,scopeEndsWith:iK,scopeEndIs:iX,and:iJ,or:iQ,rankWith:iZ,withIncreasedRank:i0,isBooleanControl:i1,isObjectControl:i2,isAllOfControl:i5,isAnyOfControl:i4,isOneOfControl:i3,isEnumControl:i6,isOneOfEnumControl:i8,isIntegerControl:i7,isNumberControl:i9,isStringControl:oe,isMultiLineControl:ot,isDateControl:on,isTimeControl:oi,isDateTimeControl:oo,isObjectArray:or,isObjectArrayControl:oa,isObjectArrayWithNesting:ol,isArrayObjectControl:oc,isPrimitiveArrayControl:od,isRangeControl:ou,isNumberFormatControl:om,isCategorization:oh,isCategory:of,hasCategory:op,categorizationHasCategory:og,not:ob});let ov=(e=[],t)=>{switch(t.type){case nR:return e.slice().concat({tester:t.tester,uischema:t.uischema});case n$:{let n=e.slice();return to()(n,e=>e.tester===t.tester),n}default:return e}},oy=e=>(t,n,i)=>{let o=tn()(e,e=>e.tester(t,n,i));if(void 0!==o&&-1!==o.tester(t,n,i))return o.uischema},ow={core:ip,renderers:iY,cells:io,config:is,uischemas:ov,defaultData:ig,i18n:iB},ox=(e,t,n,i,o="VerticalLayout",r,a)=>{if(r&&r.options&&r.options.detail){if("string"==typeof r.options.detail){if("GENERATE"===r.options.detail.toUpperCase())return"function"==typeof o?o():nF.uiSchema(t,o,void 0,a)}else if("object"==typeof r.options.detail&&r.options.detail.type&&"string"==typeof r.options.detail.type)return r.options.detail}let s=oy(e)(t,n,i);return void 0===s?"function"==typeof o?o():nF.uiSchema(t,o,"#",a):s},oF=(e,t,n)=>n(e,t),ok=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return nf(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oE=(e,t)=>ok(e,t,t=>t===e),oC=(e,t)=>ok(e,t,t=>t.startsWith(e+".")),oA=(e,t)=>n=>oE(e,t)(n.jsonforms.core),oT=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oS=e=>o$(eP()(e,"jsonforms.core")),oM=e=>oN(eP()(e,"jsonforms.core")),oL=e=>oP(eP()(e,"jsonforms.core")),oD=e=>oB(eP()(e,"jsonforms.core")),oI=e=>eP()(e,"jsonforms.renderers"),oO=e=>eP()(e,"jsonforms.cells"),oR=e=>eP()(e,"jsonforms.uischemas"),o$=e=>eP()(e,"data"),oN=e=>eP()(e,"schema"),oP=e=>eP()(e,"uischema"),oB=e=>eP()(e,"ajv"),oY=e=>e.jsonforms.config,oj=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t3(n)?t8(n,o,t?.path,oD(e)):"boolean"==typeof n?.options?.readonly?!n.options.readonly:"boolean"==typeof n?.options?.readOnly?!n.options.readOnly:"boolean"==typeof r?.readonly?!r.readonly:"boolean"==typeof r?.readOnly?!r.readOnly:i?.readOnly!==!0&&("boolean"!=typeof t?.enabled||t.enabled)),oH=(e,t,n)=>{let i=t+n;if(i<0||i>=e.length)return;let o=[t,i].sort((e,t)=>e-t);e.splice(o[0],2,e[o[1]],e[o[0]])},oz=(e,t)=>{oH(e,t,-1)},oU=(e,t)=>{oH(e,t,1)},oW=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oV=(e,t)=>e&&!t,oG=(e,t)=>{let n=oq(e,t);return void 0===n?{}:n},oq=(e,t)=>{let n="string"==typeof e.$ref?nr.schema(t,e.$ref,t):e;if(void 0!==n.default)return oX(n,t);if(ni(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nt(new Date,n.format):"";if(ni(n,"integer")||ni(n,"number"))return 0;if(ni(n,"boolean"))return!1;if(ni(n,"array"))return[];if(ni(n,"object"))return oX(n,t);if(ni(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oK(e[n],t);if(void 0!==i)return i}},oK=(e,t)=>{if(e.length>0)for(let n of e){let e=oq(n,t);if(void 0!==e)return e}},oX=(e,t)=>{if(ni(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(e=>{if(e&&e.properties)for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}}),n}return e4()(e.default)},oJ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,oQ=(e,t,n)=>{let i="string"==typeof e?e:JSON.stringify(e);return t&&(i=t(n?`${n}.${i}`:i,i)),{label:i,value:e}},oZ=(e,t,n)=>{let i=e.title??("string"==typeof e.const?e.const:JSON.stringify(e.const));return t&&(i=e.i18n?t(e.i18n,i):t(n?`${n}.${i}`:i,i)),{label:i,value:e.const}},o0=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oS(e),d=tW(l,t.path),u=void 0===t.visible||t4(l)?t6(l,c,t.path,oD(e)):t.visible,m=t.id,h=oM(e),f=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tS((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=nr.schema(n,a,h))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=nr.schema(t.schema||h,l.scope,h),g=oA(d,p)(e),b=void 0!==p?p.description:"",_=nr.data(c,d),v=tI(l,p),y=v.show?v.text:"",w=oY(e),x=oj(e,t,l,p||h,c,w),F=p??h,k=i$()(e),E=iN()(e),C=iF(F,l,d),A=k(ik(F,l,d,"label"),y,{schema:F,uischema:l,path:d,errors:g});return{data:_,description:k(ik(F,l,d,"description"),b,{schema:F,uischema:l,path:d,errors:g}),errors:iT(g,E,k,F,l,d),label:A,visible:u,enabled:x,id:m,path:d,required:f,uischema:l,schema:F,config:oY(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:C}},o1=e=>({handleChange(t,n){e(nJ(t,()=>n))}}),o2=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,i$()(e),iF(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,i$()(e),iF(n.schema,n.uischema,n.path))];return{...n,options:i}},o5=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,i$()(e),iF(n.schema,n.uischema,n.path)));return{...n,options:i}},o4=(e,t)=>{let n=o0(e,t),i=n.schema.items;i=i&&i.$ref?tN(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>oZ(t,e.jsonforms.i18n?.translate,iF(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>oQ(t,e.jsonforms.i18n?.translate,iF(n.schema,n.uischema,n.path)));return{...n,options:o}},o3=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tE(i,`${a}`),l=rd(oS(e),s,r,n,oM(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o6=(e,t)=>{let{...n}=o0(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o8=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o6(e,t),s=nr.schema(i,"items",a.rootSchema),l=oT(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oI(e),cells:t.cells||oO(e)}},o7=e=>({addItem:(t,n)=>()=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nJ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nJ(t,e=>(oz(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nJ(t,e=>(oU(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),o9=e=>({addItem:(t,n)=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nJ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),re={visible:!0,enabled:!0,path:"",direction:"column"},rt=(e,t)=>{let n=oS(e),{uischema:i}=t,o=void 0===t.visible||t4(i)?t6(t.uischema,n,t.path,oD(e)):t.visible,r=nr.data(n,t.path),a=oY(e),s=oj(e,t,i,void 0,n,a),l=i$()(e),c=tJ(i)?iS(i,l):void 0;return{...re,renderers:t.renderers||oI(e),cells:t.cells||oO(e),visible:o,enabled:s,path:t.path,data:r,uischema:t.uischema,schema:t.schema,direction:t.direction??("HorizontalLayout"===i.type?"row":"VerticalLayout"===i.type?"column":re.direction),config:a,label:c}},rn=(e,t)=>({renderers:t.renderers||eP()(e.jsonforms,"renderers"),cells:t.cells||eP()(e.jsonforms,"cells"),schema:t.schema||oM(e),rootSchema:oM(e),uischema:t.uischema||oL(e),path:t.path,enabled:t.enabled,config:oY(e)}),ri={...re,errors:[]},ro=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o0(e,t),d=e.jsonforms.core.ajv,u=["required","additionalProperties","type","enum","const"],m=e=>!e||0===e.length||!e.find(e=>-1!==u.indexOf(e.keyword));for(let e=0;e<r[n]?.length;e++)try{let t=r[n][e];t.$ref&&(t=nr.schema(a,t.$ref,a));let s=d.compile(t);if(s(o),m(s.errors)){i=e;break}}catch(e){console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:o,schema:r,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:i,uischemas:oR(e)}},rr=(e,t)=>ro(e,t,"allOf"),ra=(e,t)=>ro(e,t,"anyOf"),rs=(e,t)=>ro(e,t,"oneOf"),rl=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o6(e,t),l=nr.schema(i,"items",s.rootSchema),c=i$()(e),d=iT(oT(n,l)(e),iN()(e),c,void 0,void 0,void 0),u=r+(r.length>0&&d.length>0?"\n":"")+d;return{...s,label:a,path:n,uischema:o,schema:l,arraySchema:i,data:s.data?s.data.length:0,errors:u,minItems:i.minItems}},rc=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t4(n)?t6(t.uischema,oS(e),t.path,oD(e)):t.visible,o=n.text,r=i$()(e),a=iw(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oY(e),renderers:t.renderers||oI(e),cells:t.cells||oO(e),uischema:n}},rd=(e,t,n,i,o,r,a)=>{let s,l=nr.data(e,t);if(n||(n=t7(i)),!n)return"";let c=eP()(l,n);if(void 0===c)return"";let d=nr.schema(i,"#"+tM(n),o);if(ne(d))s=oQ(c,r,iF(d,tU(a,n),t+"."+n));else if(t9(d)){let e=d.oneOf.find(e=>e0()(e.const,c));e&&(s=oZ(e,r,iF(e,void 0,t+"."+n)))}return s?s.label:c},ru=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oS(e),d=void 0!==t.visible?t.visible:t6(a,c,void 0,oD(e)),u=oM(e),m=oY(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oj(e,t,a,o||u,c,m));let h=i$()(e),f=iN()(e),p=iT(oA(r,o)(e),f,h,o,a,r),g=eM()(p);return{data:nr.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:g,schema:o,uischema:a,config:oY(e),rootSchema:u,renderers:s,cells:l}},rm=(e,t)=>{let n=ru(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rh=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,i$()(e),iF(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,i$()(e),iF(n.schema,n.uischema,n.path))];return{...n,options:i}},rf=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,i$()(e),iF(n.schema,n.uischema,n.path)));return{...n,options:i}},rp=o1,rg=(e,t)=>{let{handleChange:n}=rp(e);return{handleChange:t.handleChange||n}},rb=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&nr.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:ox(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),r_=e=>(...t)=>({_$litDirective$:e,values:t});class rv{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)}}let ry=r_(class extends rv{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let n in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return et}}),{I:rw}={M:N,P:P,A:B,C:1,L:ea,R:ec,D:W,V:el,I:ed,H:eu,N:eh,U:ef,B:em,F:ep},rx=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rx(e,t);return!0},rF=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rk=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rA(t)}};function rE(e){void 0!==this._$AN?(rF(this),this._$AM=e,rk(this)):this._$AM=e}function rC(e,t=!1,n=0){let i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)rx(i[e],!1),rF(i[e]);else null!=i&&(rx(i,!1),rF(i));else rx(this,e)}let rA=e=>{2==e.type&&(e._$AP??=rC,e._$AQ??=rE)};class rT extends rv{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rk(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rx(this,e),rF(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class rS{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rM{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let rL=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rD=r_(class extends rT{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rS(this),this._$CX=new rM}render(...e){return e.find(e=>!rL(e))??et}update(e,t){let n=this._$Cbt,i=n.length;this._$Cbt=t;let o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let a=t[e];if(!rL(a))return this._$Cwt=e,a;e<i&&a===n[e]||(this._$Cwt=0x3fffffff,i=0,Promise.resolve(a).then(async e=>{for(;r.get();)await r.get();let t=o.deref();if(void 0!==t){let n=t._$Cbt.indexOf(a);n>-1&&n<t._$Cwt&&(t._$Cwt=n,t.setValue(e))}}))}return et}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rI=function(e,t){return(rI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rO(e,t){function n(){this.constructor=e}rI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rR=function(){return(rR=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r$=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),rN=function(){function e(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n)),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new r$({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(e,{bubbles:n,detail:t}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(i)},e}();function rP(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},i=function(){};e.document.addEventListener("test",i,n),e.document.removeEventListener("test",i,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}function rB(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rY(n,t))return n;n=n.parentElement}return null}function rY(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var rj=function(e,t){return(rj=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rH(e,t){function n(){this.constructor=e}rj(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rz=function(){return(rz=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rU={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rW=function(e){function t(n){var i=e.call(this,rz(rz({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rH(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rU},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,i=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(r$),rV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rH(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this;return new rW({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){var t=e.root;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rG=function(e,t){return(rG=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rq(e,t){function n(){this.constructor=e}rG(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rK=function(){return(rK=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rX={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rJ=function(e){function t(n){var i=e.call(this,rK(rK({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rq(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rX.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rX.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rX.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rX.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING))},t}(r$),rQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rq(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new rJ({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rZ=function(e,t){return(rZ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r0(e,t){function n(){this.constructor=e}rZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r1=function(){return(r1=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r2={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r5={NOTCH_ELEMENT_PADDING:8},r4={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r3=function(e){function t(n){return e.call(this,r1(r1({},t.defaultAdapter),n))||this}return r0(t,e),Object.defineProperty(t,"strings",{get:function(){return r2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=r5.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(r$),r6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r0(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r2.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rW.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r4.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r4.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this;return new r3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){return e.notchElement_.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){return e.notchElement_.style.removeProperty("width")}})},t}(rN),r8=function(e,t){return(r8=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r7(e,t){function n(){this.constructor=e}r8(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r9=function(){return(r9=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},at={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},an={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ai=["touchstart","pointerdown","mousedown","keydown"],ao=["touchend","pointerup","mouseup","contextmenu"],ar=[],aa=function(e){function t(n){var i=e.call(this,r9(r9({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(e){return i.activate_(e)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return r7(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ae},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return at},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=t.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal_())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(i),e.adapter.removeClass(o),e.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(ai.forEach(function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):ao.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ai.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),ao.forEach(function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)})},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==e&&i.type!==e.type)){if(n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),void 0!==e&&ar.length>0&&ar.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(ar.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){ar=[],!n.wasElementMadeActive&&void 0!==e&&(" "===e.key||32===e.keyCode)&&(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})}}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates_(),m=u.startPoint,h=u.endPoint;c=m.x+"px, "+m.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout(function(){return e.activationTimerCallback_()},l)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var i,o,r=t.x,a=t.y,s=r+n.left,l=a+n.top;return"touchstart"===e.type?(i=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-l):(i=e.pageX-s,o=e.pageY-l),{x:i,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState_,o=i.hasDeactivationUXRun,r=i.isActivated;(o||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter.removeClass(n)},an.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=r9({},t);t.isProgrammatic?(requestAnimationFrame(function(){return e.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()}))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+t.numbers.PADDING;var n=Math.floor(e*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,o=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords_.top+"px"))},t}(r$),as=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return r7(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var i=new t(e);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n=e.CSS,i=vE;if("boolean"==typeof vE&&!t)return vE;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,t||(vE=i),i}(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,rP())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rP())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rY(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rP())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rP())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return!!this.unbounded_},set:function(e){this.unbounded_=!!e,this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new aa(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation.setUnbounded(!!this.unbounded_)},t}(rN),al={ROOT:"mdc-text-field-character-counter"},ac={ROOT_SELECTOR:"."+al.ROOT},ad=function(e){function t(n){return e.call(this,rR(rR({},t.defaultAdapter),n))||this}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return al},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ac},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(r$),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ad({setContent:function(t){e.root.textContent=t}})},t}(rN),am={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},ah={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},af={LABEL_SCALE:.75},ap=["pattern","min","max","required","step","minlength","maxlength"],ag=["color","date","datetime-local","month","range","time","week"],ab=["mousedown","touchstart"],a_=["click","keydown"],av=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rR(rR({},t.defaultAdapter),n))||this;return o.isFocused_=!1,o.receivedUserInput_=!1,o.isValid_=!0,o.useNativeValidation_=!0,o.validateOnValueChange_=!0,o.helperText_=i.helperText,o.characterCounter_=i.characterCounter,o.leadingIcon_=i.leadingIcon,o.trailingIcon_=i.trailingIcon,o.inputFocusHandler_=function(){return o.activateFocus()},o.inputBlurHandler_=function(){return o.deactivateFocus()},o.inputInputHandler_=function(){return o.handleInput()},o.setPointerXOffset_=function(e){return o.setTransformOrigin(e)},o.textFieldInteractionHandler_=function(){return o.handleTextFieldInteraction()},o.validationAttributeChangeHandler_=function(e){return o.handleValidationAttributeChange(e)},o}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ah},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return am},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return ag.indexOf(e)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),ab.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),a_.forEach(function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),ab.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),a_.forEach(function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return ap.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)}),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*af.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText_&&(this.helperText_.isPersistent()||!this.helperText_.isValidation()||!this.isValid_)&&this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!(this.isDisabled()||this.adapter.hasOutline())){var t=e.touches,n=t?t[0]:e,i=n.target.getBoundingClientRect(),o=n.clientX-i.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var i=this.helperText_.isVisible(),o=this.helperText_.getId();i&&o?this.adapter.setInputAttr(am.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(am.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,i=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(o)):this.adapter.removeClass(i),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(r$),ay={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},aw={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+ay.ROOT},ax=function(e){function t(n){return e.call(this,rR(rR({},t.defaultAdapter),n))||this}return rO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ay},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aw},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(aw.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(ay.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(ay.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(ay.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(ay.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(ay.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(ay.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(aw.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(ay.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(ay.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(aw.ROLE,"alert")):this.adapter.removeAttr(aw.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(aw.ARIA_HIDDEN,"true")},t}(r$),aF=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ax({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),ak={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aE={ROOT:"mdc-text-field__icon"},aC=["click","keydown"],aA=function(e){function t(n){var i=e.call(this,rR(rR({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return rO(t,e),Object.defineProperty(t,"strings",{get:function(){return ak},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aE},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),aC.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aC.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",ak.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(r$),aT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aA({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(aA.strings.ICON_EVENT,{},!0)}})},t}(rN),aS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rO(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r,a){void 0===e&&(e=function(e,t){return new as(e,t)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new aF(e)}),void 0===i&&(i=function(e){return new au(e)}),void 0===o&&(o=function(e){return new aT(e)}),void 0===r&&(r=function(e){return new rV(e)}),void 0===a&&(a=function(e){return new r6(e)}),this.input_=this.root.querySelector(am.INPUT_SELECTOR);var s=this.root.querySelector(am.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(am.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(am.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=ax.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(ah.HELPER_LINE),h=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=h?n(h):null;var f=ad.strings,p=this.root.querySelector(f.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(f.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var g=this.root.querySelector(am.LEADING_ICON_SELECTOR);this.leadingIcon_=g?o(g):null;var b=this.root.querySelector(am.TRAILING_ICON_SELECTOR);this.trailingIcon_=b?o(b):null,this.prefix_=this.root.querySelector(am.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(am.SUFFIX_SELECTOR),this.ripple=this.createRipple_(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.characterCounter_&&this.characterCounter_.destroy(),this.leadingIcon_&&this.leadingIcon_.destroy(),this.trailingIcon_&&this.trailingIcon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input_.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input_.required},set:function(e){this.input_.required=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input_.pattern},set:function(e){this.input_.pattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input_.minLength},set:function(e){this.input_.minLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input_.maxLength},set:function(e){e<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input_.min},set:function(e){this.input_.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input_.max},set:function(e){this.input_.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input_.step},set:function(e){this.input_.step=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix_?this.prefix_.textContent:null},set:function(e){this.prefix_&&(this.prefix_.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix_?this.suffix_.textContent:null},set:function(e){this.suffix_&&(this.suffix_.textContent=e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input_.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){return new av(rR(rR(rR(rR(rR({},this.getRootAdapterMethods_()),this.getInputAdapterMethods_()),this.getLabelAdapterMethods_()),this.getLineRippleAdapterMethods_()),this.getOutlineAdapterMethods_()),this.getFoundationMap_())},t.prototype.getRootAdapterMethods_=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(e.map(function(e){return e.attributeName}).filter(function(e){return e}))});return n.observe(e.input_,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods_=function(){var e=this;return{getNativeInput:function(){return e.input_},setInputAttr:function(t,n){e.input_.setAttribute(t,n)},removeInputAttr:function(t){e.input_.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input_},registerInputInteractionHandler:function(t,n){e.input_.addEventListener(t,n,rP())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rP())}}},t.prototype.getLabelAdapterMethods_=function(){var e=this;return{floatLabel:function(t){return e.label_&&e.label_.float(t)},getLabelWidth:function(){return e.label_?e.label_.getWidth():0},hasLabel:function(){return!!e.label_},shakeLabel:function(t){return e.label_&&e.label_.shake(t)},setLabelRequired:function(t){return e.label_&&e.label_.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods_=function(){var e=this;return{activateLineRipple:function(){e.lineRipple_&&e.lineRipple_.activate()},deactivateLineRipple:function(){e.lineRipple_&&e.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple_&&e.lineRipple_.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods_=function(){var e=this;return{closeOutline:function(){return e.outline_&&e.outline_.closeNotch()},hasOutline:function(){return!!e.outline_},notchOutline:function(t){return e.outline_&&e.outline_.notch(t)}}},t.prototype.getFoundationMap_=function(){return{characterCounter:this.characterCounter_?this.characterCounter_.foundationForTextField:void 0,helperText:this.helperText_?this.helperText_.foundationForTextField:void 0,leadingIcon:this.leadingIcon_?this.leadingIcon_.foundationForTextField:void 0,trailingIcon:this.trailingIcon_?this.trailingIcon_.foundationForTextField:void 0}},t.prototype.createRipple_=function(e){var t=this,n=this.root.classList.contains(ah.TEXTAREA),i=this.root.classList.contains(ah.OUTLINED);if(n||i)return null;var o=rR(rR({},as.createAdapter(this)),{isSurfaceActive:function(){return rY(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rP())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rP())}});return e(this.root,new aa(o))},t}(rN),aM=function(e,t){return(aM=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aL(e,t){function n(){this.constructor=e}aM(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aD=function(){return(aD=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aI={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},aO={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function aR(e){return!!e.document&&"function"==typeof e.document.createElement}function a$(e,t){if(aR(e)&&t in aI){var n=e.document.createElement("div"),i=aI[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aN(e,t){if(aR(e)&&t in aO){var n=e.document.createElement("div"),i=aO[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aP={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},aB={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},aY={ANIM_END_LATCH_MS:250},aj=function(e){function t(n){var i=e.call(this,aD(aD({},t.defaultAdapter),n))||this;return i.currentCheckState_=aB.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aL(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aP},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(aP.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aP.DISABLED):this.adapter.removeClass(aP.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1},aY.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=aB.TRANSITION_STATE_UNCHECKED,i=aP.SELECTED;t===n?this.adapter.removeClass(i):this.adapter.addClass(i),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=aB.TRANSITION_STATE_INDETERMINATE,t=aB.TRANSITION_STATE_CHECKED,n=aB.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aB.TRANSITION_STATE_INIT,o=aB.TRANSITION_STATE_CHECKED,r=aB.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,u=a.ANIM_INDETERMINATE_CHECKED,m=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:if(n===r)return"";return n===o?u:m;case r:return n===o?s:l;case o:return n===r?c:d;default:return n===o?u:m}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(aB.ARIA_CHECKED_ATTR,aB.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aB.ARIA_CHECKED_ATTR)},t}(r$),aH=["checked","indeterminate"],az=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aL(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){var e=aB.DATA_INDETERMINATE_ATTR;this.nativeControl_.indeterminate="true"===this.nativeControl_.getAttribute(e),this.nativeControl_.removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation.handleChange()},this.handleAnimationEnd_=function(){return e.foundation.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(aN(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aN(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new aj({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return!!e.root.parentNode},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=aD(aD({},as.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rP())},isSurfaceActive:function(){return rY(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rP())}});return new as(this.root,new aa(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aH.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aU(o)){var r=o.get,a={configurable:o.configurable,enumerable:o.enumerable,get:r,set:function(n){o.set.call(t,n),e.foundation.handleChange()}};Object.defineProperty(t,i,a)}})},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);aH.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aU(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aB.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(rN);function aU(e){return!!e&&"function"==typeof e.set}var aW=function(e,t){return(aW=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aV(e,t){function n(){this.constructor=e}aW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aG=function(){return(aG=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aq={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aK={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aX=function(e){function t(n){return e.call(this,aG(aG({},t.defaultAdapter),n))||this}return aV(t,e),Object.defineProperty(t,"strings",{get:function(){return aK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aq},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked_(e),this.updateCheckedStyling_(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aq.DISABLED):this.adapter.removeClass(aq.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked_(t.checked),this.updateCheckedStyling_(t.checked)},t.prototype.updateCheckedStyling_=function(e){e?this.adapter.addClass(aq.CHECKED):this.adapter.removeClass(aq.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aK.ARIA_CHECKED_ATTR,""+!!e)},t}(r$),aJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aV(t,e),t.attachTo=function(e){return new t(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.changeHandler_)},t.prototype.initialSyncWithDOM=function(){var e=this;this.changeHandler_=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(t=e.foundation).handleChange.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n))},this.nativeControl_.addEventListener("change",this.changeHandler_),this.checked=this.checked},t.prototype.getDefaultFoundation=function(){var e=this;return new aX({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlChecked:function(t){return e.nativeControl_.checked=t},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple_=function(){var e=this,t=aX.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aG(aG({},as.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rP())},isSurfaceActive:function(){return rY(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rP())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new as(this.root,new aa(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aX.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rN),aQ=function(e,t){return(aQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aZ(e,t){function n(){this.constructor=e}aQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a0=function(){return(a0=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a1="mdc-slider--disabled",a2="mdc-slider__thumb",a5="mdc-slider__thumb--top",a4="mdc-slider__thumb--with-indicator",a3="mdc-slider__tick-marks",a6="mdc-slider__tick-mark--active",a8="mdc-slider__tick-mark--inactive",a7="disabled",a9="value",se="step";(_h=vC||(vC={}))[_h.ACTIVE=0]="ACTIVE",_h[_h.INACTIVE=1]="INACTIVE",(_f=vA||(vA={}))[_f.START=1]="START",_f[_f.END=2]="END";var st="u">typeof window,sn=function(e){function t(n){var i=e.call(this,a0(a0({},t.defaultAdapter),n))||this;return i.initialStylesRemoved=!1,i.isDisabled=!1,i.isDiscrete=!1,i.step=1,i.hasTickMarks=!1,i.isRange=!1,i.thumb=null,i.downEventClientX=null,i.startThumbKnobWidth=0,i.endThumbKnobWidth=0,i}return aZ(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(a1),this.isDiscrete=this.adapter.hasClass("mdc-slider--discrete"),this.hasTickMarks=this.adapter.hasClass("mdc-slider--tick-marks"),this.isRange=this.adapter.hasClass("mdc-slider--range");var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("min",this.isRange?vA.START:vA.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",vA.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,vA.END),a9),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,vA.START),a9):t;this.validateProperties({min:t,max:n,value:i,valueStart:o}),this.min=t,this.max=n,this.value=i,this.valueStart=o,this.valueBeforeDownEvent=i,this.valueStartBeforeDownEvent=o;var r=this.adapter.getInputAttribute(se,vA.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,se)),this.step<=0)throw Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){e.handleInputChange(vA.START)},this.inputEndChangeListener=function(){e.handleInputChange(vA.END)},this.inputStartFocusListener=function(){e.handleInputFocus(vA.START)},this.inputEndFocusListener=function(){e.handleInputFocus(vA.END)},this.inputStartBlurListener=function(){e.handleInputBlur(vA.START)},this.inputEndBlurListener=function(){e.handleInputBlur(vA.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart)throw Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(e,vA.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value)throw Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+")");this.updateValue(e,vA.START)},t.prototype.getStep=function(){return this.step},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(a1),this.isRange&&this.adapter.setInputAttribute(a7,"",vA.START),this.adapter.setInputAttribute(a7,"",vA.END)):(this.adapter.removeClass(a1),this.isRange&&this.adapter.removeInputAttribute(a7,vA.START),this.adapter.removeInputAttribute(a7,vA.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(vA.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(vA.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null===this.thumb||(this.handleDragStart(e,n,this.thumb),this.isRange&&n>=this.valueStart&&n<=this.value||this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var i=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var e=this.thumb===vA.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===vA.START?this.valueStart:this.value;e!==t&&this.adapter.emitChangeEvent(t,this.thumb),this.adapter.emitDragEndEvent(t,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(a4,vA.START),this.adapter.addThumbClass(a4,vA.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(vA.START)||this.adapter.isInputFocused(vA.END)||(this.adapter.removeThumbClass(a4,vA.START),this.adapter.removeThumbClass(a4,vA.END))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var i=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",i),t.adapter.deregisterEventHandler("touchend",i)};this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(e)},t.prototype.handlePointerdown=function(e){this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e)},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===vA.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a4,e),this.isRange)){var t=e===vA.START?vA.END:vA.START;this.adapter.addThumbClass(a4,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a4,e),this.isRange)){var t=e===vA.START?vA.END:vA.START;this.adapter.removeThumbClass(a4,t)}},t.prototype.handleDragStart=function(e,t,n){this.adapter.focusInput(n),e.preventDefault(),this.adapter.emitDragStartEvent(t,n)},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return vA.END;var n=this.adapter.getThumbBoundingClientRect(vA.START),i=this.adapter.getThumbBoundingClientRect(vA.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?vA.START:r?vA.END:t<this.valueStart?vA.START:t>this.value?vA.END:null},t.prototype.getThumbFromMoveEvent=function(e){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw Error("`downEventClientX` is null after move event.");return 5>Math.abs(this.downEventClientX-e)?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?vA.END:vA.START:this.adapter.isRTL()?vA.START:vA.END},t.prototype.updateUI=function(e){this.updateThumbAndInputAttributes(e),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===vA.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(a9,n,e),this.isRange&&e===vA.START?this.adapter.setInputAttribute("min",n,vA.END):this.isRange&&e===vA.END&&this.adapter.setInputAttribute("max",n,vA.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var i=this.adapter.getValueToAriaValueTextFn();i&&this.adapter.setInputAttribute("aria-valuetext",i(t),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===vA.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===vA.START?vA.START:vA.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,vA.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(vC.INACTIVE),o=Array.from({length:t}).fill(vC.ACTIVE),r=Array.from({length:n}).fill(vC.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(r))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:this.quantize(n)},t.prototype.updateValue=function(e,t,n){var i=void 0===n?{}:n,o=i.emitInputEvent,r=i.emitChangeEvent;if(e=this.clampValue(e,t),this.isRange&&t===vA.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),o&&this.adapter.emitInputEvent(t===vA.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===vA.START?this.valueStart:this.value,t)},t.prototype.quantize=function(e){return Math.round(e/this.step)*this.step},t.prototype.clampValue=function(e,t){return(e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===vA.START&&e>this.value)?this.value:this.isRange&&t===vA.END&&e<this.valueStart?this.valueStart:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,i=this.min,o=(this.value-this.valueStart)/(n-i),r=o*this.rect.width,a=this.adapter.isRTL(),s=st?a$(window,"transform"):"transform";if(this.isRange){var l=this.adapter.isRTL()?(n-this.value)/(n-i)*this.rect.width:(this.valueStart-i)/(n-i)*this.rect.width,c=l+r;requestAnimationFrame(function(){!a&&e===vA.START||a&&e!==vA.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","unset"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-c+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","unset"),t.adapter.setTrackActiveStyleProperty("left",l+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")");var n=a?c:l,i=t.adapter.isRTL()?l:c;e!==vA.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",vA.START),e!==vA.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",vA.END),t.removeInitialStyles(a),t.updateOverlappingThumbsUI(n,i,e)})}else requestAnimationFrame(function(){var e=a?t.rect.width-r:r;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",vA.END),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")"),t.removeInitialStyles(a)})},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,vA.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,vA.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=st?a$(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,vA.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,vA.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,vA.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,vA.START)})}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var i=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;i=t+this.endThumbKnobWidth/2>=o}else i=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2;i?(this.adapter.addThumbClass(a5,n||vA.END),this.adapter.removeThumbClass(a5,n===vA.START?vA.END:vA.START)):(this.adapter.removeThumbClass(a5,vA.START),this.adapter.removeThumbClass(a5,vA.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,i=e.value,o=e.valueStart;if(t>=n)throw Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+t+", max: ")+n+"]");if(this.isRange){if(i<t||i>n||o<t||o>n)throw Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+o+", end value: ")+i+"]");if(o>i)throw Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+o+", end value: ")+i+"]")}else if(i<t||i>n)throw Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+i)},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(vA.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(vA.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(vA.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(vA.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(vA.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(vA.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(vA.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(vA.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(vA.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(vA.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(vA.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(vA.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(vA.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(vA.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(vA.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(vA.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(vA.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(vA.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(vA.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(vA.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=st&&!!window.PointerEvent,t}(r$),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return aZ(t,e),t.attachTo=function(e,n){return void 0===n&&(n={}),new t(e,void 0,n)},t.prototype.getDefaultFoundation=function(){var e=this;return new sn({hasClass:function(t){return e.root.classList.contains(t)},addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},addThumbClass:function(t,n){e.getThumbEl(n).classList.add(t)},removeThumbClass:function(t,n){e.getThumbEl(n).classList.remove(t)},getAttribute:function(t){return e.root.getAttribute(t)},getInputValue:function(t){return e.getInput(t).value},setInputValue:function(t,n){e.getInput(n).value=t},getInputAttribute:function(t,n){return e.getInput(n).getAttribute(t)},setInputAttribute:function(t,n,i){e.getInput(i).setAttribute(t,n)},removeInputAttribute:function(t,n){e.getInput(n).removeAttribute(t)},focusInput:function(t){e.getInput(t).focus()},isInputFocused:function(t){return e.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return e.getThumbEl(t).querySelector(".mdc-slider__thumb-knob").getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return e.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return e.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(e.root).direction},setThumbStyleProperty:function(t,n,i){e.getThumbEl(i).style.setProperty(t,n)},removeThumbStyleProperty:function(t,n){e.getThumbEl(n).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,n){e.trackActive.style.setProperty(t,n)},removeTrackActiveStyleProperty:function(t){e.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,n){e.getThumbEl(n).querySelector(".mdc-slider__value-indicator-text").textContent=String(t)},getValueToAriaValueTextFn:function(){return e.valueToAriaValueTextFn},updateTickMarks:function(t){var n=e.root.querySelector("."+a3);n||((n=document.createElement("div")).classList.add(a3),e.root.querySelector(".mdc-slider__track").appendChild(n)),t.length!==n.children.length?(n.innerHTML="",e.addTickMarks(n,t)):e.updateTickMarks(n,t)},setPointerCapture:function(t){e.root.setPointerCapture(t)},emitChangeEvent:function(t,n){e.emit("MDCSlider:change",{value:t,thumb:n})},emitInputEvent:function(t,n){e.emit("MDCSlider:input",{value:t,thumb:n})},emitDragStartEvent:function(t,n){e.getRipple(n).activate()},emitDragEndEvent:function(t,n){e.getRipple(n).deactivate()},registerEventHandler:function(t,n){e.listen(t,n)},deregisterEventHandler:function(t,n){e.unlisten(t,n)},registerThumbEventHandler:function(t,n,i){e.getThumbEl(t).addEventListener(n,i)},deregisterThumbEventHandler:function(t,n,i){e.getThumbEl(t).removeEventListener(n,i)},registerInputEventHandler:function(t,n,i){e.getInput(t).addEventListener(n,i)},deregisterInputEventHandler:function(t,n,i){e.getInput(t).removeEventListener(n,i)},registerBodyEventHandler:function(e,t){document.body.addEventListener(e,t)},deregisterBodyEventHandler:function(e,t){document.body.removeEventListener(e,t)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)}})},t.prototype.initialize=function(e){var t=(void 0===e?{}:e).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll(".mdc-slider__input")),this.thumbs=[].slice.call(this.root.querySelectorAll("."+a2)),this.trackActive=this.root.querySelector(".mdc-slider__track--active_fill"),this.ripples=this.createRipples(),t&&(this.skipInitialUIUpdate=!0)},t.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getValueStart=function(){return this.foundation.getValueStart()},t.prototype.setValueStart=function(e){this.foundation.setValueStart(e)},t.prototype.getValue=function(){return this.foundation.getValue()},t.prototype.setValue=function(e){this.foundation.setValue(e)},t.prototype.getDisabled=function(){return this.foundation.getDisabled()},t.prototype.setDisabled=function(e){this.foundation.setDisabled(e)},t.prototype.setValueToAriaValueTextFn=function(e){this.valueToAriaValueTextFn=e},t.prototype.getThumbEl=function(e){return e===vA.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===vA.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===vA.END?this.ripples[this.ripples.length-1]:this.ripples[0]},t.prototype.addTickMarks=function(e,t){for(var n=document.createDocumentFragment(),i=0;i<t.length;i++){var o=document.createElement("div"),r=t[i]===vC.ACTIVE?a6:a8;o.classList.add(r),n.appendChild(o)}e.appendChild(n)},t.prototype.updateTickMarks=function(e,t){for(var n=Array.from(e.children),i=0;i<n.length;i++)t[i]===vC.ACTIVE?(n[i].classList.add(a6),n[i].classList.remove(a8)):(n[i].classList.add(a8),n[i].classList.remove(a6))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a2)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a0(a0({},as.createAdapter(n)),{addClass:function(e){o.classList.add(e)},computeBoundingRect:function(){return o.getBoundingClientRect()},deregisterInteractionHandler:function(e,t){r.removeEventListener(e,t)},isSurfaceActive:function(){return rY(r,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(e,t){r.addEventListener(e,t)},removeClass:function(e){o.classList.remove(e)},updateCssVariable:function(e,t){o.style.setProperty(e,t)}}),s=new as(o,new aa(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rN),so=function(e,t){return(so=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sr(e,t){function n(){this.constructor=e}so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sa=function(){return(sa=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ss={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},sl={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:'button:not(:disabled), [href]:not([aria-disabled="true"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'},sc={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(_p=vT||(vT={}))[_p.BOTTOM=1]="BOTTOM",_p[_p.CENTER=2]="CENTER",_p[_p.RIGHT=4]="RIGHT",_p[_p.FLIP_RTL=8]="FLIP_RTL",(_g=vS||(vS={}))[_g.TOP_LEFT=0]="TOP_LEFT",_g[_g.TOP_RIGHT=4]="TOP_RIGHT",_g[_g.BOTTOM_LEFT=1]="BOTTOM_LEFT",_g[_g.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",_g[_g.TOP_START=8]="TOP_START",_g[_g.TOP_END=12]="TOP_END",_g[_g.BOTTOM_START=9]="BOTTOM_START",_g[_g.BOTTOM_END=13]="BOTTOM_END";var sd=function(e,t){return(sd=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function su(e,t){function n(){this.constructor=e}sd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sm=function(){return(sm=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sh=function(e,t){return(sh=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sf(e,t){function n(){this.constructor=e}sh(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sp=function(){return(sp=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sg={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},sb={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+sg.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sg.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+sg.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sg.LIST_ITEM_CLASS+" a,\n ."+sg.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+sg.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},s_={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sv="Backspace",sy="Enter",sw="Spacebar",sx="PageUp",sF="PageDown",sk="Home",sE="ArrowLeft",sC="ArrowUp",sA="ArrowRight",sT="ArrowDown",sS="Delete",sM="Escape",sL=new Set;sL.add(sv),sL.add(sy),sL.add(sw),sL.add(sx),sL.add(sF),sL.add("End"),sL.add(sk),sL.add(sE),sL.add(sC),sL.add(sA),sL.add(sT),sL.add(sS),sL.add(sM);var sD=new Map;sD.set(8,sv),sD.set(13,sy),sD.set(32,sw),sD.set(33,sx),sD.set(34,sF),sD.set(35,"End"),sD.set(36,sk),sD.set(37,sE),sD.set(38,sC),sD.set(39,sA),sD.set(40,sT),sD.set(46,sS),sD.set(27,sM);var sI=new Set;function sO(e){var t=e.key;if(sL.has(t))return t;var n=sD.get(e.keyCode);return n||"Unknown"}sI.add(sx),sI.add(sF),sI.add("End"),sI.add(sk),sI.add(sE),sI.add(sC),sI.add(sA),sI.add(sT);var sR=["input","button","textarea","select"],s$=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sR.indexOf(n)&&e.preventDefault()}};function sN(e,t){var n,i=e.nextChar,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.focusedItemIndex,s=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){sB(t)},s_.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var o,r=i.typeaheadBuffer[0],a=e.get(r);if(!a)return -1;if(r===i.currentFirstChar&&a[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%a.length;var s=a[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var l=-1;for(o=0;o<a.length;o++)if(!n(a[o].index)){l=o;break}for(;o<a.length;o++)if(a[o].index>t&&!n(a[o].index)){l=o;break}return -1!==l?(i.sortedIndexCursor=l,a[i.sortedIndexCursor].index):-1}(r,a,l,t):function(e,t,n){var i=n.typeaheadBuffer[0],o=e.get(i);if(!o)return -1;var r=o[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;for(var a=(n.sortedIndexCursor+1)%o.length,s=-1;a!==n.sortedIndexCursor;){var l=o[a],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(l.index);if(c&&d){s=a;break}a=(a+1)%o.length}return -1!==s?(n.sortedIndexCursor=s,o[n.sortedIndexCursor].index):-1}(r,l,t))||s||o(n),n}function sP(e){return e.typeaheadBuffer.length>0}function sB(e){e.typeaheadBuffer=""}function sY(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===sO(n),c="ArrowUp"===sO(n),d="ArrowRight"===sO(n),u="ArrowDown"===sO(n),m="Home"===sO(n),h="End"===sO(n),f="Enter"===sO(n),p="Spacebar"===sO(n);if(l||c||d||u||m||h||f)return -1;if(!p&&1===n.key.length){s$(n);var g={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(g,t)}if(!p)return -1;if(i&&s$(n),i&&sP(t)){var g={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(g,t)}return -1}var sj=function(e){function t(n){var i=e.call(this,sp(sp({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=s_.UNSET_INDEX,i.focusedItemIndex=s_.UNSET_INDEX,i.useActivatedClass_=!1,i.useSelectedAttr_=!1,i.ariaCurrentAttrValue_=null,i.isCheckboxList_=!1,i.isRadioList_=!1,i.hasTypeahead=!1,i.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},i.sortedIndexByFirstChar=new Map,i}return sf(t,e),Object.defineProperty(t,"strings",{get:function(){return sb},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return sg},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.setWrapFocus=function(e){this.wrapFocus_=e},t.prototype.setVerticalOrientation=function(e){this.isVertical_=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},t.prototype.maybeInitializeSingleSelection=function(){for(var e=0;e<this.adapter.getListItemCount();e++){var t=this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_ACTIVATED_CLASS);if(t||n){n&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=e;return}}},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&sP(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr_=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex_},t.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},t.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},t.prototype.handleFocusOut=function(e,t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.handleKeydown=function(e,t,n){var i=this,o="ArrowLeft"===sO(e),r="ArrowUp"===sO(e),a="ArrowRight"===sO(e),s="ArrowDown"===sO(e),l="Home"===sO(e),c="End"===sO(e),d="Enter"===sO(e),u="Spacebar"===sO(e),m="A"===e.key||"a"===e.key;if(this.adapter.isRootFocused()){if(r||c?(e.preventDefault(),this.focusLastElement()):(s||l)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var h={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}};sY(h,this.typeaheadState)}return}var f=this.adapter.getFocusedElementIndex();if(-1!==f||!((f=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)s$(e),this.focusNextElement(f);else if(this.isVertical_&&r||!this.isVertical_&&o)s$(e),this.focusPrevElement(f);else if(l)s$(e),this.focusFirstElement();else if(c)s$(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===s_.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(s$(e),this.adapter.listItemAtIndexHasClass(f,sg.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(f),this.adapter.notifyAction(f))}if(this.hasTypeahead){var h={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}};sY(h,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===s_.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e+1;if(n>=t)if(!this.wrapFocus_)return e;else n=0;return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0)if(!this.wrapFocus_)return e;else t=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sb.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sb.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=sg.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=sg.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==s_.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===s_.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sb.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sb.ARIA_CURRENT:sb.ARIA_SELECTED;if(this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==s_.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sb.ARIA_SELECTED:sb.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex_=e},t.prototype.setCheckboxAtIndex_=function(e){for(var t=this.getSelectionAttribute(),n=0;n<this.adapter.getListItemCount();n++){var i=!1;e.indexOf(n)>=0&&(i=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,i),this.adapter.setAttributeForElementIndex(n,t,i?"true":"false")}this.selectedIndex_=e},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===s_.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===e||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==s_.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==s_.UNSET_INDEX?e=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce(function(e,t){return Math.min(e,t)}))),e},t.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return t.isIndexInRange_(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===s_.UNSET_INDEX},t.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction_=function(e,t){void 0===t&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex_=function(e,t){var n=this.getSelectionAttribute(),i=this.adapter.isCheckboxCheckedAtIndex(e);t&&(i=!i,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,i)),this.adapter.setAttributeForElementIndex(e,n,i?"true":"false");var o=this.selectedIndex_===s_.UNSET_INDEX?[]:this.selectedIndex_.slice();i?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex_=o},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount();if(e.length===t)this.setCheckboxAtIndex_([]);else{for(var n=[],i=0;i<t;i++)(!this.adapter.listItemAtIndexHasClass(i,sg.LIST_ITEM_DISABLED_CLASS)||e.indexOf(i)>-1)&&n.push(i);this.setCheckboxAtIndex_(n)}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),sN({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sg.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,i=0;i<e;i++){var o=t(i).trim();if(o){var r=o[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:o.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){sB(this.typeaheadState)},t}(r$),sH=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sf(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+sg.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!0,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},t.prototype.layout=function(){var e=this.root.getAttribute(sb.ARIA_ORIENTATION);this.vertical=e!==sb.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(e){e.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(sb.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+sg.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+sg.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sb.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sb.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sb.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(i,function(t){return e.listElements.indexOf(t)})}else n&&(this.selectedIndex=this.listElements.indexOf(n))},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this;return new sj({addClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.add(n)},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(sb.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sb.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sb.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(n)},notifyAction:function(t){e.emit(sb.ACTION_EVENT,{index:t},!0)},removeClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.remove(n)},setAttributeForElementIndex:function(t,n,i){var o=e.listElements[t];o&&o.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var i=e.listElements[t].querySelector(sb.CHECKBOX_RADIO_SELECTOR);i.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var i=e.listElements[t];[].slice.call(i.querySelectorAll(sb.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rB(e.target,"."+sg.LIST_ITEM_CLASS+", ."+sg.ROOT);return t&&rY(t,"."+sg.LIST_ITEM_CLASS)?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusIn(e,t)},t.prototype.handleFocusOutEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusOut(e,t)},t.prototype.handleKeydownEvent_=function(e){var t=this.getListItemIndex_(e),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(sg.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rY(e.target,sb.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rN),sz=function(e,t){return(sz=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sU(e,t){function n(){this.constructor=e}sz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sW=function(){return(sW=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sV=function(e){function t(n){var i=e.call(this,sW(sW({},t.defaultAdapter),n))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=vS.TOP_START,i.originCorner=vS.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ss},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sl},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return vS},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^vT.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.adapter.addClass(t.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},sc.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;void 0===e&&(e=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},sc.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()))},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){this.measurements=this.getAutoLayoutmeasurements();var e,n=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,vT.BOTTOM)?"bottom":"top",r=this.hasBit(n,vT.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),l=this.measurements,c=l.anchorSize,d=l.surfaceSize,u=((e={})[r]=a,e[o]=s,e);c.width/d.width>sc.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(u),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(u),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,vT.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function(){var e,n,i,o,r=this.originCorner,a=this.measurements,s=a.viewportDistance,l=a.anchorSize,c=a.surfaceSize,d=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,vT.BOTTOM)?(e=s.top-d+l.height+this.anchorMargin.bottom,n=s.bottom-d-this.anchorMargin.bottom):(e=s.top-d+this.anchorMargin.top,n=s.bottom-d+l.height-this.anchorMargin.top),!(n-c.height>0)&&e>=n&&(r=this.setBit(r,vT.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,vT.FLIP_RTL),h=this.hasBit(this.anchorCorner,vT.RIGHT)||this.hasBit(r,vT.RIGHT),f=!1;(f=u&&m?!h:h)?(i=s.left+l.width+this.anchorMargin.right,o=s.right-this.anchorMargin.right):(i=s.left+this.anchorMargin.left,o=s.right+l.width-this.anchorMargin.left);var p=i-c.width>0,g=o-c.width>0,b=this.hasBit(r,vT.FLIP_RTL)&&this.hasBit(r,vT.RIGHT);return g&&b&&u||!p&&b?r=this.unsetBit(r,vT.RIGHT):(p&&f&&u||p&&!f&&h||!g&&i>=o)&&(r=this.setBit(r,vT.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,vT.BOTTOM),r=this.hasBit(this.anchorCorner,vT.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return o?(i=n.top+this.anchorMargin.top-a,r||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,r&&(i-=this.measurements.anchorSize.height)),i},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,vT.RIGHT),i=this.hasBit(this.anchorCorner,vT.RIGHT);if(n){var o=i?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return i?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,vT.BOTTOM),i=this.hasBit(this.anchorCorner,vT.BOTTOM);return n?i?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,a=Object.keys(e);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=s.next();!l.done;l=s.next()){var c=l.value,d=e[c]||0;d+=r[c],this.isFixedPosition||("top"===c?d+=o.y:"bottom"===c?d-=o.y:"left"===c?d+=o.x:d-=o.x),e[c]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},t.prototype.hasBit=function(e,t){return!!(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(r$),sG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sU(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(ss.ANCHOR)?t:null,this.root.classList.contains(ss.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(sl.OPENED_EVENT,this.registerBodyClickListener),this.listen(sl.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sl.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sl.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!0,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(ss.FIXED):this.root.classList.remove(ss.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new sV({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(sV.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sV.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n,i,o=(n=window,void 0===i&&(i=!1),(void 0===vM||i)&&(vM="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),vM+"-origin");e.root.style.setProperty(o,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}})},t}(rN),sq={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sK={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sX={FOCUS_ROOT_INDEX:-1};(_b=vL||(vL={}))[_b.NONE=0]="NONE",_b[_b.LIST_ROOT=1]="LIST_ROOT",_b[_b.FIRST_ITEM=2]="FIRST_ITEM",_b[_b.LAST_ITEM=3]="LAST_ITEM";var sJ=function(e){function t(n){var i=e.call(this,sm(sm({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=vL.LIST_ROOT,i}return su(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sq},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return -1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return -1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);n<0||(this.adapter.notifySelected({index:n}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},sV.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case vL.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case vL.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case vL.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,sK.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sq.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sq.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,sg.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw Error("MDCMenuFoundation: No list item at specified index.")},t}(r$),sQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sG(e)}),void 0===t&&(t=function(e){return new sH(e)}),this.menuSurfaceFactory_=e,this.listFactory_=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface_=this.menuSurfaceFactory_(this.root);var t=this.root.querySelector(sK.LIST_SELECTOR);t?(this.list_=this.listFactory_(t),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(t){return e.foundation.handleKeydown(t)},this.handleItemAction_=function(t){return e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened_=function(){return e.foundation.handleMenuSurfaceOpened()},this.menuSurface_.listen(sV.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sj.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sV.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sj.strings.ACTION_EVENT,this.handleItemAction_),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(e){e?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list_&&this.list_.wrapFocus},set:function(e){this.list_&&(this.list_.wrapFocus=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list_&&(this.list_.hasTypeahead=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list_&&this.list_.typeaheadInProgress},enumerable:!0,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list_?this.list_.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list_&&this.list_.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list_&&(this.list_.singleSelection=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list_?this.list_.selectedIndex:s_.UNSET_INDEX},set:function(e){this.list_&&(this.list_.selectedIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface_.quickOpen=e},enumerable:!0,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface_.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface_.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list_&&this.list_.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface_.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface_.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface_.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface_.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this;return new sJ({addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,i){e.items[t].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){return e.menuSurface_.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(sK.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){return e.items[t].focus()},focusListRoot:function(){return e.root.querySelector(sK.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rB(e.items[t],"."+sq.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rB(e.items[t],"."+sq.MENU_SELECTION_GROUP).querySelector("."+sq.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rN),sZ={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},s0={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},s1={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s2=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s1.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sZ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return -1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return -1}}},enumerable:!0,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===s1.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==s1.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(sZ.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(sZ.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(sZ.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(sZ.FOCUSED),n=e||t,i=this.adapter.hasClass(sZ.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(e>=0?e:0)}},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(sZ.ACTIVATED),this.isMenuOpen=!1,this.adapter.setSelectAnchorAttr("aria-expanded","false"),this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(sZ.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){if(!this.disabled&&!this.recentlyClicked){if(this.setClickDebounceTimeout(),this.isMenuOpen)return void this.adapter.closeMenu();this.adapter.setRippleCenter(e),this.openMenu()}},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(sZ.FOCUSED)){var t=sO(e)===sy,n=sO(e)===sw,i=sO(e)===sC,o=sO(e)===sT;if(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress()){var r=n?" ":e.key,a=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());a>=0&&this.setSelectedIndex(a),e.preventDefault();return}(t||n||i||o)&&(i&&this.getSelectedIndex()>0?this.setSelectedIndex(this.getSelectedIndex()-1):o&&this.getSelectedIndex()<this.adapter.getMenuItemCount()-1&&this.setSelectedIndex(this.getSelectedIndex()+1),this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(sZ.FOCUSED);if(e){var n=s1.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(sZ.INVALID),this.adapter.removeMenuClass(sZ.MENU_INVALID)):(this.adapter.addClass(sZ.INVALID),this.adapter.addMenuClass(sZ.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(sZ.REQUIRED)&&!this.adapter.hasClass(sZ.DISABLED)?this.getSelectedIndex()!==s1.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(sZ.REQUIRED):this.adapter.removeClass(sZ.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(vS.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(sZ.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(sZ.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(sZ.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(s0.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s0.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s1.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(r$),s5={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s4={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s3=function(e){function t(n){return e.call(this,sa(sa({},t.defaultAdapter),n))||this}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(s5.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s5.ROLE):this.adapter.setAttr(s5.ROLE,"alert");return}this.adapter.removeAttr(s5.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s5.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s5.ARIA_HIDDEN,"true")},t}(r$),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),s8={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},s7=["click","keydown"],s9=function(e){function t(n){var i=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return sr(t,e),Object.defineProperty(t,"strings",{get:function(){return s8},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),s7.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;s7.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",s8.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(r$),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s9({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(s9.strings.ICON_EVENT,{},!0)}})},t}(rN),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r){if(void 0===e&&(e=function(e){return new rV(e)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new r6(e)}),void 0===i&&(i=function(e){return new sQ(e)}),void 0===o&&(o=function(e){return new le(e)}),void 0===r&&(r=function(e){return new s6(e)}),this.selectAnchor=this.root.querySelector(s0.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s0.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s0.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s0.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s0.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s0.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s0.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s0.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s0.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s0.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(sZ.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sK.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value){this.foundation.setValue(this.hiddenInput.value,!0),this.foundation.layout();return}this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sK.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s2(sa(sa(sa(sa({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s0.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sa(sa({},as.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new as(this.selectAnchor,new aa(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(s0.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){var n=e.selectedIndex;e.emit(s0.CHANGE_EVENT,{value:t,index:n},!0),e.hiddenInput&&(e.hiddenInput.value=t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return!!e.outline},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return!!e.touches},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(rN),ln=function(e,t){return(ln=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function li(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lo=function(){return(lo=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lr={ROOT:"mdc-form-field"},la={LABEL_SELECTOR:".mdc-form-field > label"},ls=function(e){function t(n){var i=e.call(this,lo(lo({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return li(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lr},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return la},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(r$),ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=ls.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new ls({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var i=e.labelEl();i&&i.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var i=e.labelEl();i&&i.addEventListener(t,n)}})},t}(rN),lc=function(e,t){return(lc=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ld(e,t){function n(){this.constructor=e}lc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lu=function(){return(lu=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lm={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lh={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},lf=function(e){function t(n){var i=e.call(this,lu(lu({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return ld(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lm},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lh},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(lh.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lh.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lh.ARIA_PRESSED))throw Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(lh.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(lm.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lm.ICON_BUTTON_ON):this.adapter.removeClass(lm.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lh.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lh.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lh.ARIA_LABEL,t||"")}else this.adapter.setAttr(lh.ARIA_PRESSED,""+e)},t}(r$),lp=lf.strings,lg=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return ld(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new lf({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lp.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple=function(){var e=new as(this.root);return e.unbounded=!0,e},t}(rN);n(44532),(__=vD||(vD={})).CREATE="CREATE",__.UPDATE="UPDATE",__.DELETE="DELETE",__.DELETE_FINISHED="DELETE_FINISHED",(_v=vI||(vI={})).LOW="LOW",_v.MEDIUM="MEDIUM",_v.HIGH="HIGH",(_y=vO||(vO={})).MANUAL="MANUAL",_y.CLIENT="CLIENT",_y.GLOBAL_RULESET="GLOBAL_RULESET",_y.REALM_RULESET="REALM_RULESET",_y.ASSET_RULESET="ASSET_RULESET",_y.AGENT="AGENT",(_w=vR||(vR={})).OPEN="OPEN",_w.ACKNOWLEDGED="ACKNOWLEDGED",_w.IN_PROGRESS="IN_PROGRESS",_w.RESOLVED="RESOLVED",_w.CLOSED="CLOSED",(_x=v$||(v$={})).BOTTOM_LEFT="BOTTOM_LEFT",_x.BOTTOM_RIGHT="BOTTOM_RIGHT",_x.TOP_LEFT="TOP_LEFT",_x.TOP_RIGHT="TOP_RIGHT",(_F=vN||(vN={})).CREATE="CREATE",_F.READ="READ",_F.UPDATE="UPDATE",_F.DELETE="DELETE",(_k=vP||(vP={})).NONE="NONE",_k.FORECAST="FORECAST",_k.SETPOINT="SETPOINT",(_E=vB||(vB={})).DISCONNECTED="DISCONNECTED",_E.CONNECTING="CONNECTING",_E.DISCONNECTING="DISCONNECTING",_E.CONNECTED="CONNECTED",_E.DISABLED="DISABLED",_E.WAITING="WAITING",_E.ERROR="ERROR",_E.STOPPED="STOPPED",(_C=vY||(vY={})).REQUEST_START="REQUEST_START",_C.REQUEST_REPEATING="REQUEST_REPEATING",_C.REQUEST_CANCEL="REQUEST_CANCEL",_C.READY="READY",_C.COMPLETED="COMPLETED",_C.RUNNING="RUNNING",_C.CANCELLED="CANCELLED",(_A=vj||(vj={})).TOGGLE="TOGGLE",_A.INCREMENT="INCREMENT",_A.DECREMENT="DECREMENT",_A.NEGATE="NEGATE",(_T=vH||(vH={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",_T.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",_T.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",_T.INVALID_VALUE="INVALID_VALUE",_T.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",_T.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",_T.CANNOT_PROCESS="CANNOT_PROCESS",_T.QUEUE_FULL="QUEUE_FULL",_T.UNKNOWN="UNKNOWN",_T.ASSET_ID_MISSING="ASSET_ID_MISSING",_T.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(_S=vz||(vz={})).PUBLIC="PUBLIC",_S.SHARED="SHARED",_S.PRIVATE="PRIVATE",(_M=vU||(vU={})).OFF="OFF",_M.ONE_MIN="ONE_MIN",_M.FIVE_MIN="FIVE_MIN",_M.QUARTER="QUARTER",_M.ONE_HOUR="ONE_HOUR",(_L=vW||(vW={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",_L.KEEP_LAYOUT="KEEP_LAYOUT",_L.REDIRECT="REDIRECT",_L.BLOCK_DEVICE="BLOCK_DEVICE",(_D=vV||(vV={})).CSV="CSV",_D.CSV_CROSSTAB="CSV_CROSSTAB",_D.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(_I=vG||(vG={})).MINUTE="MINUTE",_I.HOUR="HOUR",_I.DAY="DAY",_I.WEEK="WEEK",_I.MONTH="MONTH",_I.YEAR="YEAR",(_O=vq||(vq={})).MIN="MIN",_O.AVG="AVG",_O.MAX="MAX",_O.DIFFERENCE="DIFFERENCE",_O.COUNT="COUNT",_O.SUM="SUM",_O.MODE="MODE",_O.MEDIAN="MEDIAN",(_R=vK||(vK={})).TERMINATING="TERMINATING",_R.DISABLED="DISABLED",_R.ALREADY_CONNECTED="ALREADY_CONNECTED",_R.UNRECOGNISED="UNRECOGNISED",_R.PERMANENT_ERROR="PERMANENT_ERROR",_R.SYNC_ERROR="SYNC_ERROR",(_$=vX||(vX={})).HTTPS="HTTPS",_$.HTTP="HTTP",_$.TCP="TCP",(_N=vJ||(vJ={})).GET="GET",_N.POST="POST",_N.PUT="PUT",_N.DELETE="DELETE",_N.OPTIONS="OPTIONS",_N.PATCH="PATCH",(_P=vQ||(vQ={})).KEYCLOAK="KEYCLOAK",_P.NONE="NONE",(_B=vZ||(vZ={})).WEBSOCKET="WEBSOCKET",_B.POLLING="POLLING",(_Y=v0||(v0={})).INTERNAL="INTERNAL",_Y.CLIENT="CLIENT",_Y.GLOBAL_RULESET="GLOBAL_RULESET",_Y.REALM_RULESET="REALM_RULESET",_Y.ASSET_RULESET="ASSET_RULESET",(_j=v1||(v1={})).REALM="REALM",_j.USER="USER",_j.ASSET="ASSET",_j.CUSTOM="CUSTOM",(_H=v2||(v2={})).NORMAL="NORMAL",_H.HIGH="HIGH",(_z=v5||(v5={})).DEVICE="DEVICE",_z.TOPIC="TOPIC",_z.CONDITION="CONDITION",(_U=v4||(v4={})).ALWAYS="ALWAYS",_U.ONCE="ONCE",_U.HOURLY="HOURLY",_U.DAILY="DAILY",_U.WEEKLY="WEEKLY",_U.MONTHLY="MONTHLY",_U.ANNUALLY="ANNUALLY",(_W=v3||(v3={})).TITLE="TITLE",_W.SOURCE="SOURCE",_W.STATUS="STATUS",_W.SENT_ON="SENT_ON",_W.DELIVERED_ON="DELIVERED_ON",(_V=v6||(v6={})).MESSAGE_INVALID="MESSAGE_INVALID",_V.CERTIFICATE_INVALID="CERTIFICATE_INVALID",_V.UNAUTHORIZED="UNAUTHORIZED",_V.FORBIDDEN="FORBIDDEN",_V.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",_V.CONFIG_DISABLED="CONFIG_DISABLED",_V.USER_DISABLED="USER_DISABLED",_V.SERVER_ERROR="SERVER_ERROR",_V.ASSET_ERROR="ASSET_ERROR",_V.SERVER_BUSY="SERVER_BUSY",(_G=v8||(v8={})).PRIVATE="PRIVATE",_G.PROTECTED="PROTECTED",_G.PUBLIC="PUBLIC",(_q=v7||(v7={})).EXACT="EXACT",_q.BEGIN="BEGIN",_q.END="END",_q.CONTAINS="CONTAINS",(_K=v9||(v9={})).EQUALS="EQUALS",_K.GREATER_THAN="GREATER_THAN",_K.GREATER_EQUALS="GREATER_EQUALS",_K.LESS_THAN="LESS_THAN",_K.LESS_EQUALS="LESS_EQUALS",_K.BETWEEN="BETWEEN",(_X=ye||(ye={})).CREATED_ON="CREATED_ON",_X.NAME="NAME",_X.ASSET_TYPE="ASSET_TYPE",_X.PARENT_ID="PARENT_ID",_X.REALM="REALM",(_J=yt||(yt={})).RESTRICTED="RESTRICTED",_J.LINKED="LINKED",_J.REALM="REALM",(_Q=yn||(yn={})).AT_LEAST_ONE="AT_LEAST_ONE",_Q.ALL="ALL",_Q.NONE="NONE",(_Z=yi||(yi={})).AND="AND",_Z.OR="OR",(_0=yo||(yo={})).CREATED_ON="CREATED_ON",_0.FIRST_NAME="FIRST_NAME",_0.LAST_NAME="LAST_NAME",_0.USERNAME="USERNAME",_0.EMAIL="EMAIL",(_1=yr||(yr={})).STOPPED="STOPPED",_1.RUNNING="RUNNING",_1.ERROR="ERROR",(_2=ya||(ya={})).JAVASCRIPT="JAVASCRIPT",_2.GROOVY="GROOVY",_2.JSON="JSON",_2.FLOW="FLOW",(_5=ys||(ys={})).READY="READY",_5.DEPLOYED="DEPLOYED",_5.COMPILATION_ERROR="COMPILATION_ERROR",_5.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",_5.EXECUTION_ERROR="EXECUTION_ERROR",_5.LOOP_ERROR="LOOP_ERROR",_5.DISABLED="DISABLED",_5.PAUSED="PAUSED",_5.EXPIRED="EXPIRED",_5.REMOVED="REMOVED",_5.EMPTY="EMPTY",(_4=yl||(yl={})).SUNRISE="SUNRISE",_4.SUNSET="SUNSET",_4.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",_4.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",_4.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",_4.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",_4.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",_4.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",_4.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",_4.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",_4.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",_4.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",_4.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",_4.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",_4.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",_4.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",_4.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",_4.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",_4.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",_4.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(_3=yc||(yc={})).NUMBER="NUMBER",_3.NUMBER_ARRAY="NUMBER_ARRAY",_3.STRING="STRING",_3.BOOLEAN="BOOLEAN",_3.TRIGGER="TRIGGER",_3.COLOR="COLOR",_3.ANY="ANY",(_6=yd||(yd={})).NEW_LINE="NEW_LINE",_6.SPACER="SPACER",(_8=yu||(yu={})).INPUT="INPUT",_8.PROCESSOR="PROCESSOR",_8.OUTPUT="OUTPUT",_8.THEN="THEN",(_7=ym||(ym={})).TEXT="TEXT",_7.MULTILINE="MULTILINE",_7.NUMBER="NUMBER",_7.DROPDOWN="DROPDOWN",_7.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",_7.CHECKBOX="CHECKBOX",_7.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",_7.COLOR="COLOR",_7.DATE="DATE",(_9=yh||(yh={})).ADD="ADD",_9.ADD_OR_REPLACE="ADD_OR_REPLACE",_9.REPLACE="REPLACE",_9.DELETE="DELETE",_9.CLEAR="CLEAR",(ve=yf||(yf={})).PER_ASSET="PER_ASSET",ve.GLOBAL="GLOBAL",(vt=yp||(yp={})).READ_ADMIN="read:admin",vt.READ_LOGS="read:logs",vt.READ_USERS="read:users",vt.READ_MAP="read:map",vt.READ_ASSETS="read:assets",vt.READ_RULES="read:rules",vt.READ_INSIGHTS="read:insights",vt.READ_ALARMS="read:alarms",vt.READ_NOTIFICATIONS="read:notifications",vt.READ_SERVICES="read:services",vt.READ_TUNNELS="read:tunnels",vt.WRITE_SERVICES="write:services",vt.WRITE_USER="write:user",vt.WRITE_ADMIN="write:admin",vt.WRITE_LOGS="write:logs",vt.WRITE_ASSETS="write:assets",vt.WRITE_ATTRIBUTES="write:attributes",vt.WRITE_RULES="write:rules",vt.WRITE_INSIGHTS="write:insights",vt.WRITE_ALARMS="write:alarms",vt.WRITE_NOTIFICATIONS="write:notifications",vt.WRITE_TUNNELS="write:tunnels",vt.READ="read",vt.WRITE="write",(vn=yg||(yg={})).REGISTER="REGISTER",vn.UPDATE="UPDATE",vn.DEREGISTER="DEREGISTER",(vi=yb||(yb={})).AVAILABLE="AVAILABLE",vi.UNAVAILABLE="UNAVAILABLE",(vo=y_||(y_={})).ASSET="ASSET",vo.AGENT="AGENT",vo.NOTIFICATION="NOTIFICATION",vo.ALARM="ALARM",vo.RULES="RULES",vo.PROTOCOL="PROTOCOL",vo.GATEWAY="GATEWAY",vo.MODEL_AND_VALUES="MODEL_AND_VALUES",vo.API="API",vo.DATA="DATA",(vr=yv||(yv={})).INFO="INFO",vr.WARN="WARN",vr.ERROR="ERROR",(va=yy||(yy={})).NUMERIC="numeric",va.DIGIT_2="2-digit",va.FULL="full",va.LONG="long",va.MEDIUM="medium",va.SHORT="short",va.NARROW="narrow",(vs=yw||(yw={})).SECONDLY="SECONDLY",vs.MINUTELY="MINUTELY",vs.HOURLY="HOURLY",vs.DAILY="DAILY",vs.WEEKLY="WEEKLY",vs.MONTHLY="MONTHLY",vs.YEARLY="YEARLY",(vl=yx||(yx={})).OMIT="OMIT",vl.BACKWARD="BACKWARD",vl.FORWARD="FORWARD",(vc=yF||(yF={})).JAPANESE="JAPANESE",vc.BUDDHIST="BUDDHIST",vc.ROC="ROC",vc.ISLAMIC="ISLAMIC",vc.ISO8601="ISO8601",vc.CHINESE="CHINESE",vc.ETHIOPIC="ETHIOPIC",vc.HEBREW="HEBREW",vc.GREGORIAN="GREGORIAN",(vd=yk||(yk={})).SU="SU",vd.MO="MO",vd.TU="TU",vd.WE="WE",vd.TH="TH",vd.FR="FR",vd.SA="SA",(vu=yE||(yE={})).PEOPLECOUNTERASSET="PeopleCounterAsset",vu.MAILAGENT="MailAgent",vu.UDPAGENT="UDPAgent",vu.ROOMASSET="RoomAsset",vu.CITYASSET="CityAsset",vu.VENTILATIONASSET="VentilationAsset",vu.TRADFRILIGHTASSET="TradfriLightAsset",vu.CONSOLEASSET="ConsoleAsset",vu.PRESENCESENSORASSET="PresenceSensorAsset",vu.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",vu.LIGHTASSET="LightAsset",vu.KNXAGENT="KNXAgent",vu.THETHINGSSTACKAGENT="TheThingsStackAgent",vu.PLUGASSET="PlugAsset",vu.CHIRPSTACKAGENT="ChirpStackAgent",vu.WEATHERASSET="WeatherAsset",vu.THINGASSET="ThingAsset",vu.WEBSOCKETAGENT="WebsocketAgent",vu.TCPAGENT="TCPAgent",vu.GATEWAYASSET="GatewayAsset",vu.SERIALAGENT="SerialAgent",vu.BLUETOOTHMESHAGENT="BluetoothMeshAgent",vu.PARKINGASSET="ParkingAsset",vu.TRADFRIPLUGASSET="TradfriPlugAsset",vu.SIMULATORAGENT="SimulatorAgent",vu.SNMPAGENT="SNMPAgent",vu.GROUPASSET="GroupAsset",vu.BUILDINGASSET="BuildingAsset",vu.MODBUSSERIALAGENT="ModbusSerialAgent",vu.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",vu.MQTTAGENT="MQTTAgent",vu.VELBUSTCPAGENT="VelbusTCPAgent",vu.ARTNETLIGHTASSET="ArtnetLightAsset",vu.VELBUSSERIALAGENT="VelbusSerialAgent",vu.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",vu.MICROPHONEASSET="MicrophoneAsset",vu.MODBUSTCPAGENT="ModbusTcpAgent",vu.ZWAVEAGENT="ZWaveAgent",vu.HTTPAGENT="HTTPAgent",vu.DOORASSET="DoorAsset",vu.THERMOSTATASSET="ThermostatAsset",vu.SHIPASSET="ShipAsset",(vm=yC||(yC={})).COLOURRGB="colourRGB",vm.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",vm.PRICEHOURLY="priceHourly",vm.MQTTPORT="MQTTPort",vm.PINGDISABLED="pingDisabled",vm.FLOW="flow",vm.CHILDASSETTYPE="childAssetType",vm.LASTACCESS="lastAccess",vm.POSITION="position",vm.NETWORKKEY="networkKey",vm.UNIVERSE="universe",vm.ROUTINGMODE="routingMode",vm.MSSINUMBER="MSSINumber",vm.LASTWILLRETAIN="lastWillRetain",vm.LASTWILLTOPIC="lastWillTopic",vm.SERIALBAUDRATE="serialBaudrate",vm.SUBSCRIBEQOS="subscribeQos",vm.LEDCOUNT="lEDCount",vm.LOCKED="locked",vm.CLOUDCOVERAGE="cloudCoverage",vm.BASEURL="baseURL",vm.PROTOCOL="protocol",vm.REQUIREDVALUES="requiredValues",vm.REGION="region",vm.CONSOLEPLATFORM="consolePlatform",vm.GATEWAYSTATUS="gatewayStatus",vm.NO2LEVEL="NO2Level",vm.ATMOSPHERICPRESSURE="atmosphericPressure",vm.SERIALPORT="serialPort",vm.APPLICATIONID="applicationId",vm.TAGS="tags",vm.UNLOCK="unlock",vm.CHECKINTERVALSECONDS="checkIntervalSeconds",vm.LOCATION="location",vm.CLIENTSECRET="clientSecret",vm.WINDDIRECTION="windDirection",vm.WINDSPEED="windSpeed",vm.PARTICLESPM10="particlesPM10",vm.APPLICATIONKEY="applicationKey",vm.LENGTH="length",vm.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",vm.USERNAMEPASSWORD="usernamePassword",vm.WATERLEVEL="waterLevel",vm.CONNECTHEADERS="connectHeaders",vm.CONSOLENAME="consoleName",vm.WEBSOCKETQUERY="websocketQuery",vm.PREFERHTML="preferHTML",vm.PARITY="parity",vm.COOLING="cooling",vm.POLLINGMILLIS="pollingMillis",vm.SOILTEMPERATURE="soilTemperature",vm.SUNIRRADIANCE="sunIrradiance",vm.MESSAGEMAXLENGTH="messageMaxLength",vm.WINDGUSTSPEED="windGustSpeed",vm.LIGHTID="lightId",vm.PROXYADDRESS="proxyAddress",vm.REQUESTQUERYPARAMETERS="requestQueryParameters",vm.MQTTHOST="MQTTHost",vm.SECUREGRPC="secureGRPC",vm.MODEL="model",vm.STREET="street",vm.MANUFACTURER="manufacturer",vm.DELETEPROCESSEDMAIL="deleteProcessedMail",vm.RESUMESESSION="resumeSession",vm.ONOFF="onOff",vm.APIKEY="ApiKey",vm.CITY="city",vm.PRESENCE="presence",vm.SPACESOCCUPIED="spacesOccupied",vm.STARTTLS="startTLS",vm.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",vm.WEBSOCKETPATH="websocketPath",vm.AGENTSTATUS="agentStatus",vm.PRICEDAILY="priceDaily",vm.COUNTGROWTHMINUTE="countGrowthMinute",vm.IMONUMBER="IMONumber",vm.ATTRIBUTION="Attribution",vm.TENANTID="tenantId",vm.REQUESTHEADERS="requestHeaders",vm.HOST="host",vm.COUNTOUTMINUTE="countOutMinute",vm.MESSAGECHARSET="messageCharset",vm.CERTIFICATEALIAS="certificateAlias",vm.EMAIL="email",vm.BINDPORT="bindPort",vm.CONSOLEVERSION="consoleVersion",vm.PARTICLESPM1="particlesPM1",vm.MTU="mtu",vm.SPEED="speed",vm.MESSAGESTRIPDELIMITER="messageStripDelimiter",vm.AREA="area",vm.COUNTRY="country",vm.SHIPTYPE="shipType",vm.CONNECTSUBSCRIPTIONS="connectSubscriptions",vm.RELATIVEHUMIDITY="relativeHumidity",vm.SOURCEADDRESS="sourceAddress",vm.RAINFALL="rainfall",vm.OAUTHGRANT="oAuthGrant",vm.OZONELEVEL="ozoneLevel",vm.SEQUENCENUMBER="sequenceNumber",vm.COUNTINMINUTE="countInMinute",vm.PORT="port",vm.SUNALTITUDE="sunAltitude",vm.COUNTOUT="countOut",vm.ROOMNUMBER="roomNumber",vm.TUNNELINGSUPPORTED="tunnelingSupported",vm.ENINUMBER="ENINumber",vm.PARTICLESPM2_5="particlesPM2_5",vm.AGENTDISABLED="agentDisabled",vm.DISABLED="disabled",vm.COUNTIN="countIn",vm.MESSAGESOURCEADDRESS="messageSourceAddress",vm.PROVISIONWEATHERASSET="ProvisionWeatherAsset",vm.TIMEINJECTIONINTERVAL="timeInjectionInterval",vm.TEMPERATURESETPOINT="temperatureSetpoint",vm.CONSOLEPROVIDERS="consoleProviders",vm.COUNTTOTAL="countTotal",vm.SPACESBUFFER="spacesBuffer",vm.DEVICECONFIG="deviceConfig",vm.SPACESTOTAL="spacesTotal",vm.BINDHOST="bindHost",vm.FANSPEED="fanSpeed",vm.MESSAGECONVERTBINARY="messageConvertBinary",vm.NOTES="notes",vm.MAILFOLDERNAME="mailFolderName",vm.MESSAGEDELIMITERS="messageDelimiters",vm.TEMPERATURE="temperature",vm.SUNZENITH="sunZenith",vm.SNMPVERSIONVALUE="SNMPVersionValue",vm.BRIGHTNESS="brightness",vm.POSTALCODE="postalCode",vm.SPACESOPEN="spacesOpen",vm.HUMIDITY="humidity",vm.SOUNDLEVEL="soundLevel",vm.SECUREMODE="secureMode",vm.DIRECTION="direction",vm.STOPBITS="stopbits",vm.UVINDEX="uVIndex",vm.CONNECTURL="connectURL",vm.CLIENTID="clientId",vm.NATMODE="NATMode",vm.UPDATEONWRITE="updateOnWrite",vm.LASTWILLPAYLOAD="lastWillPayload",vm.GROUPID="groupId",vm.FOLLOWREDIRECTS="followRedirects",vm.SUNAZIMUTH="sunAzimuth",vm.MESSAGECONVERTHEX="messageConvertHex",vm.WEBSOCKETMODE="websocketMode",vm.COLOURTEMPERATURE="colourTemperature",vm.PUBLISHQOS="publishQos",vm.DATABITS="dataBits",(vh=yA||(yA={})).FORMAT="format",vh.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",vh.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",vh.SECRET="secret",vh.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",vh.ATTRIBUTELINKS="attributeLinks",vh.RULERESETIMMEDIATE="ruleResetImmediate",vh.RULESTATE="ruleState",vh.AGENTLINKCONFIG="agentLinkConfig",vh.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",vh.FORECAST="forecast",vh.STOREDATAPOINTS="storeDataPoints",vh.LABEL="label",vh.CONSTRAINTS="constraints",vh.UNITS="units",vh.USERCONNECTED="userConnected",vh.SHOWONDASHBOARD="showOnDashboard",vh.READONLY="readOnly",vh.MULTILINE="multiline",vh.ACCESSPUBLICWRITE="accessPublicWrite",vh.MOMENTARY="momentary",vh.AGENTLINK="agentLink",vh.ACCESSRESTRICTEDREAD="accessRestrictedRead",vh.ACCESSPUBLICREAD="accessPublicRead",(vf=yT||(yT={})).ASSETQUERY="assetQuery",vf.WSURL="WS_URL",vf.COLOURRGB="colourRGB",vf.VALUEFORMAT="valueFormat",vf.TEXT="text",vf.BYTE="byte",vf.USERNAMEANDPASSWORD="usernameAndPassword",vf.HTTPURL="HTTP_URL",vf.ATTRIBUTELINK="attributeLink",vf.ASSETID="assetID",vf.NUMBERMAP="numberMap",vf.HTTPMETHOD="HTTPMethod",vf.ATTRIBUTESTATE="attributeState",vf.POSITIVENUMBER="positiveNumber",vf.POSITIVEINTEGER="positiveInteger",vf.EXECUTIONSTATUS="executionStatus",vf.BIGINTEGER="bigInteger",vf.VALUEDESCRIPTOR="valueDescriptor",vf.PERIODDURATIONISO8601="periodDurationISO8601",vf.LONG="long",vf.DATEANDTIME="dateAndTime",vf.BOOLEANMAP="booleanMap",vf.MQTTQOS="MQTTQos",vf.NEGATIVEINTEGER="negativeInteger",vf.TCPIPPORTNUMBER="TCP_IPPortNumber",vf.GEOJSONPOINT="GEO_JSONPoint",vf.SNMPVERSION="SNMPVersion",vf.ASSETTYPE="assetType",vf.JSONOBJECT="JSONObject",vf.INTEGERMAP="integerMap",vf.BIGNUMBER="bigNumber",vf.IPADDRESS="IPAddress",vf.EMAIL="email",vf.TIMESTAMP="timestamp",vf.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",vf.ATTRIBUTEREFERENCE="attributeReference",vf.UUID="UUID",vf.INTEGER="integer",vf.OAUTHGRANT="oAuthGrant",vf.NUMBER="number",vf.DEVICECONFIGMAP="DeviceConfigMap",vf.TEXTMAP="textMap",vf.WEBSOCKETSUBSCRIPTION="websocketSubscription",vf.BOOLEAN="boolean",vf.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",vf.FORECASTCONFIGURATION="forecastConfiguration",vf.TIMEDURATIONISO8601="timeDurationISO8601",vf.TIMESTAMPISO8601="timestampISO8601",vf.CONSOLEPROVIDERS="consoleProviders",vf.MULTIVALUEDTEXTMAP="multivaluedTextMap",vf.NEGATIVENUMBER="negativeNumber",vf.PARITYBIT="Paritybit",vf.JSON="JSON",vf.CRONEXPRESSION="CRONExpression",vf.INTEGERBYTE="integerByte",vf.AGENTLINK="agentLink",vf.DIRECTION="direction",vf.HOSTORIPADDRESS="hostOrIPAddress",vf.STOPBITS="Stopbits",vf.CALENDAREVENT="calendarEvent",vf.CONNECTIONSTATUS="connectionStatus",vf.VALUECONSTRAINT="valueConstraint",(vp=yS||(yS={})).MONTH="month",vp.MILE_SCANDINAVIAN="mile_scandinavian",vp.VAR="var",vp.OUNCE="ounce",vp.HECTARE="hectare",vp.YARD="yard",vp.YEAR="year",vp.GIGA="giga",vp.JOULE="joule",vp.VOLT="volt",vp.HERTZ="hertz",vp.MILE="mile",vp.DEGREE="degree",vp.KILO="kilo",vp.BTU="btu",vp.TERA="tera",vp.FOOT="foot",vp.MEGA="mega",vp.KELVIN="kelvin",vp.CARBON="carbon",vp.DECIBEL_ATTENUATED="decibel_attenuated",vp.INCH="inch",vp.SQUARED="squared",vp.PERCENTAGE="percentage",vp.IN_HG="inch_mercury",vp.CENTI="centi",vp.GRAM="gram",vp.CUBED="cubed",vp.DAY="day",vp.RADIAN="radian",vp.OHM="ohm",vp.MINUTE="minute",vp.PART_PER_MILLION="ppm",vp.AMP="amp",vp.MASS_POUND="pound",vp.KNOT="knot",vp.METRE="metre",vp.LITRE="litre",vp.FLUID_OUNCE="fluid_ounce",vp.HOUR="hour",vp.ACRE="acre",vp.CELSIUS="celsius",vp.RPM="rpm",vp.PASCAL="pascal",vp.DECIBEL="decibel",vp.LUMEN="lumen",vp.WEEK="week",vp.FAHRENHEIT="fahrenheit",vp.WATT="watt",vp.GALLON="gallon",vp.LUX="lux",vp.MILLI="milli",vp.BAR="bar",vp.HECTO="hecto",vp.PEAK="peak",vp.SECOND="second",vp.MICRO="micro",vp.PER="per",vp.STONE="stone",yM||(yM={});class lb{static getAssetDescriptors(){return lb._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=lb.getValueDescriptor(t)),n=t.jsonType?t:lb.getValueDescriptor(t.type)),!n&&e&&(n=lb.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 i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}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}}lb._assetTypeInfos=[],lb._metaItemDescriptors=[],lb._valueDescriptors=[];let l_=e=>"string"==typeof e,lv=()=>{let e,t,n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n},ly=e=>null==e?"":String(e),lw=/###/g,lx=e=>e&&e.includes("###")?e.replace(lw,"."):e,lF=e=>!e||l_(e),lk=(e,t,n)=>{let i=l_(t)?t.split("."):t,o=0;for(;o<i.length-1;){if(lF(e))return{};let t=lx(i[o]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++o}return lF(e)?{}:{obj:e,k:lx(i[o])}},lE=(e,t,n)=>{let{obj:i,k:o}=lk(e,t,Object);if(void 0!==i||1===t.length){i[o]=n;return}let r=t[t.length-1],a=t.slice(0,t.length-1),s=lk(e,a,Object);for(;void 0===s.obj&&a.length;)r=`${a[a.length-1]}.${r}`,s=lk(e,a=a.slice(0,a.length-1),Object),s?.obj&&void 0!==s.obj[`${s.k}.${r}`]&&(s.obj=void 0);s.obj[`${s.k}.${r}`]=n},lC=(e,t)=>{let{obj:n,k:i}=lk(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},lA=(e,t,n)=>{for(let i in t)"__proto__"!==i&&"constructor"!==i&&(Object.prototype.hasOwnProperty.call(e,i)?l_(e[i])||e[i]instanceof String||l_(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):lA(e[i],t[i],n):e[i]=t[i]);return e},lT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},lS=e=>l_(e)?e.replace(/[&<>"'\/]/g,e=>lT[e]):e,lM=[" ",",","?","!",";"],lL=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),lD=(e,t,n=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(n),o=e;for(let e=0;e<i.length;){let t;if(!o||"object"!=typeof o)return;let r="";for(let a=e;a<i.length;++a)if(a!==e&&(r+=n),r+=i[a],void 0!==(t=o[r])){if(["string","number","boolean"].includes(typeof t)&&a<i.length-1)continue;e+=a-e+1;break}o=t}return o},lI=e=>e?.replace(/_/g,"-"),lO={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};var lR=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||lO,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,i){return i&&!this.debug?null:(e=e.map(e=>l_(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),l_(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{...{prefix:`${this.prefix}:${t}:`},...this.options})}clone(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}};class l${constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let n=(...i)=>{t(...i),this.off(e,n)};return this.on(e,n),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let i=0;i<n;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([n,i])=>{for(let o=0;o<i;o++)n(e,...t)})}}class lN extends l${constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,i={}){let o,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,a=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?o=e.split("."):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):l_(n)&&r?o.push(...n.split(r)):o.push(n)));let s=lC(this.data,o);return(!s&&!t&&!n&&e.includes(".")&&(e=o[0],t=o[1],n=o.slice(2).join(".")),!s&&a&&l_(n))?lD(this.data?.[e]?.[t],n,r):s}addResource(e,t,n,i,o={silent:!1}){let r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.includes(".")&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lE(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}addResources(e,t,n,i={silent:!1}){for(let i in n)(l_(n[i])||Array.isArray(n[i]))&&this.addResource(e,t,i,n[i],{silent:!0});i.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,i,o,r={silent:!1,skipCopy:!1}){let a=[e,t];e.includes(".")&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);let s=lC(this.data,a)||{};r.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?lA(s,n,o):s={...s,...n},lE(this.data,a,s),r.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var lP={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,o){return e.forEach(e=>{t=this.processors[e]?.process(t,n,i,o)??t}),t}};let lB=Symbol("i18next/PATH_KEY");function lY(e,t){let n,i,o,{[lB]:r}=e((i=[],(o=Object.create(null)).get=(e,t)=>(n?.revoke?.(),t===lB)?i:(i.push(t),(n=Proxy.revocable(e,o)).proxy),Proxy.revocable(Object.create(null),o).proxy)),a=t?.keySeparator??".",s=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&s){let e=t?.ns,n=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(n&&(l?n:n.length>1?n.slice(1):[]).includes(r[0]))return`${r[0]}${s}${r.slice(1).join(a)}`}return r.join(a)}let lj=e=>!l_(e)&&"boolean"!=typeof e&&"number"!=typeof e;class lH extends l${constructor(e,t={}){super(),((e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=lR.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(null==e)return!1;let i=this.resolve(e,n);if(i?.res===void 0)return!1;let o=lj(i.res);return!1!==n.returnObjects||!o}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");let i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.includes(n),a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,n)=>{t=t||"",n=n||"";let i=lM.filter(e=>!t.includes(e)&&!n.includes(e));if(0===i.length)return!0;let o=lL.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),r=!o.test(e);if(!r){let t=e.indexOf(n);t>0&&!o.test(e.substring(0,t))&&(r=!0)}return r})(e,n,i);if(r&&!a){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:l_(o)?[o]:o};let r=e.split(n);(n!==i||n===i&&this.options.ns.includes(r[0]))&&(o=r.shift()),e=r.join(i)}return{key:e,namespaces:l_(o)?[o]:o}}translate(e,t,n){let i="object"==typeof t?{...t}:t;if("object"!=typeof i&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof i&&(i={...i}),i||(i={}),null==e)return"";"function"==typeof e&&(e=lY(e,{...this.options,...i})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?lY(e,{...this.options,...i}):String(e));let o=void 0!==i.returnDetails?i.returnDetails:this.options.returnDetails,r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(e[e.length-1],i),l=s[s.length-1],c=void 0!==i.nsSeparator?i.nsSeparator:this.options.nsSeparator;void 0===c&&(c=":");let d=i.lng||this.language,u=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()==="cimode")return u?o?{res:`${l}${c}${a}`,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${c}${a}`:o?{res:a,usedKey:a,exactUsedKey:a,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:a;let m=this.resolve(e,i),h=m?.res,f=m?.usedKey||a,p=m?.exactUsedKey||a,g=void 0!==i.joinArrays?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,_=void 0!==i.count&&!l_(i.count),v=lH.hasDefaultValue(i),y=_?this.pluralResolver.getSuffix(d,i.count,i):"",w=i.ordinal&&_?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):"",x=_&&!i.ordinal&&0===i.count,F=x&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${y}`]||i[`defaultValue${w}`]||i.defaultValue,k=h;b&&!h&&v&&(k=F);let E=lj(k),C=Object.prototype.toString.apply(k);if(b&&k&&E&&!["[object Number]","[object Function]","[object RegExp]"].includes(C)&&!(l_(g)&&Array.isArray(k))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,k,{...i,ns:s}):`key '${a} (${this.language})' returned an object instead of string.`;return o?(m.res=e,m.usedParams=this.getUsedParamsDetails(i),m):e}if(r){let e=Array.isArray(k),t=e?[]:{},n=e?p:f;for(let e in k)if(Object.prototype.hasOwnProperty.call(k,e)){let o=`${n}${r}${e}`;v&&!h?t[e]=this.translate(o,{...i,defaultValue:lj(F)?F[e]:void 0,...{joinArrays:!1,ns:s}}):t[e]=this.translate(o,{...i,joinArrays:!1,ns:s}),t[e]===o&&(t[e]=k[e])}h=t}}else if(b&&l_(g)&&Array.isArray(h))(h=h.join(g))&&(h=this.extendTranslation(h,e,i,n));else{let t=!1,o=!1;!this.isValidLookup(h)&&v&&(t=!0,h=F),this.isValidLookup(h)||(o=!0,h=a);let s=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&o?void 0:h,u=v&&F!==h&&this.options.updateMissing;if(o||t||u){if(this.logger.log(u?"updateKey":"missingKey",d,l,_&&!u?`${a}${this.pluralResolver.getSuffix(d,i.count,i)}`:a,u?F:h),r){let e=this.resolve(a,{...i,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let o=v&&n!==h?n:s;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,o,u,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,o,u,i),this.emit("missingKey",e,l,t,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);x&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],a+t,i[`defaultValue${t}`]||F)})}):n(e,a,F))}h=this.extendTranslation(h,e,i,m,n),o&&h===a&&this.options.appendNamespaceToMissingKey&&(h=`${l}${c}${a}`),(o||t)&&this.options.parseMissingKeyHandler&&(h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${c}${a}`:a,t?h:void 0,i))}return o?(m.res=h,m.usedParams=this.getUsedParamsDetails(i),m):h}extendTranslation(e,t,n,i,o){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){let r;n.interpolation&&this.interpolator.init({...n,...{interpolation:{...this.options.interpolation,...n.interpolation}}});let a=l_(e)&&(n?.interpolation?.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(a){let t=e.match(this.interpolator.nestingRegexp);r=t&&t.length}let s=n.replace&&!l_(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||i.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp);r<(t&&t.length)&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(...e)=>o?.[0]!==e[0]||n.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),n)),n.interpolation&&this.interpolator.reset()}let r=n.postProcess||this.options.postProcess,a=l_(r)?[r]:r;return null!=e&&a?.length&&!1!==n.applyPostProcessor&&(e=lP.handle(a,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,i,o,r,a;return l_(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?lY(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),l=s.key;i=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));let d=void 0!==t.count&&!l_(t.count),u=d&&!t.ordinal&&0===t.count,m=void 0!==t.context&&(l_(t.context)||"number"==typeof t.context)&&""!==t.context,h=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);c.forEach(e=>{this.isValidLookup(n)||(a=e,!this.checkedLoadedFor[`${h[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(a)&&(this.checkedLoadedFor[`${h[0]}-${e}`]=!0,this.logger.warn(`key "${i}" for languages "${h.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(i=>{let a;if(this.isValidLookup(n))return;r=i;let s=[l];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(s,l,i,e,t);else{let e;d&&(e=this.pluralResolver.getSuffix(i,t.count,t));let n=`${this.options.pluralSeparator}zero`,o=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(t.ordinal&&e.startsWith(o)&&s.push(l+e.replace(o,this.options.pluralSeparator)),s.push(l+e),u&&s.push(l+n)),m){let i=`${l}${this.options.contextSeparator||"_"}${t.context}`;s.push(i),d&&(t.ordinal&&e.startsWith(o)&&s.push(i+e.replace(o,this.options.pluralSeparator)),s.push(i+e),u&&s.push(i+n))}}for(;a=s.pop();)this.isValidLookup(n)||(o=a,n=this.getResource(i,e,a,t))}))})}),{res:n,usedKey:i,exactUsedKey:o,usedLng:r,usedNS:a}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,n,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}getUsedParamsDetails(e={}){let t=e.replace&&!l_(e.replace),n=t?e.replace:e;if(t&&void 0!==e.count&&(n={...n,count:e.count}),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t)for(let e of(n={...n},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete n[e];return n}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class lz{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lR.create("languageUtils")}getScriptPartFromCode(e){if(!(e=lI(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=lI(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(l_(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),l_(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),i=[],o=e=>{e&&(this.isSupportedCode(e)?i.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return l_(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):l_(e)&&o(this.formatLanguageCode(e)),n.forEach(e=>{i.includes(e)||o(this.formatLanguageCode(e))}),i}}let lU={zero:0,one:1,two:2,few:3,many:4,other:5},lW={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class lV{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=lR.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n,i=lI("dev"===e?"en":e),o=t.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:i,type:o});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];try{n=new Intl.PluralRules(i,{type:o})}catch(o){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),lW;if(!e.match(/-|_/))return lW;let i=this.languageUtils.getLanguagePartFromCode(e);n=this.getRule(i,t)}return this.pluralRulesCache[r]=n,n}needsPlural(e,t={}){let n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return(n||(n=this.getRule("dev",t)),n)?n.resolvedOptions().pluralCategories.sort((e,t)=>lU[e]-lU[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,n={}){let i=this.getRule(e,n);return i?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,n))}}let lG=(e,t,n,i=".",o=!0)=>{let r,a=void 0!==(r=lC(e,n))?r:lC(t,n);return!a&&o&&l_(n)&&void 0===(a=lD(e,n,i))&&(a=lD(t,n,i)),a},lq=e=>e.replace(/\$/g,"$$$$");class lK{constructor(e={}){this.logger=lR.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:n,useRawValueToEscape:i,prefix:o,prefixEscaped:r,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:u,nestingPrefixEscaped:m,nestingSuffix:h,nestingSuffixEscaped:f,nestingOptionsSeparator:p,maxReplaces:g,alwaysFormat:b}=e.interpolation;this.escape=void 0!==t?t:lS,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==i&&i,this.prefix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):r||"{{",this.suffix=a?a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":d?d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":c?c.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):m||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=p||",",this.maxReplaces=g||1e3,this.alwaysFormat=void 0!==b&&b,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,i){let o,r,a,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(!e.includes(this.formatSeparator)){let o=lG(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,n,{...i,...t,interpolationkey:e}):o}let o=e.split(this.formatSeparator),r=o.shift().trim(),a=o.join(this.formatSeparator).trim();return this.format(lG(t,s,r,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...i,...t,interpolationkey:r})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let c=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,d=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e):e}].forEach(t=>{for(a=0;o=t.regex.exec(e);){let n=o[1].trim();if(void 0===(r=l(n)))if("function"==typeof c){let t=c(e,o,i);r=l_(t)?t:""}else if(i&&Object.prototype.hasOwnProperty.call(i,n))r="";else if(d){r=o[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),r="";else l_(r)||this.useRawValueToEscape||(r=ly(r));let s=t.safeValue(r);if(e=e.replace(o[0],lq(s)),d?(t.regex.lastIndex+=s.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=this.maxReplaces)break}}),e}nest(e,t,n={}){let i,o,r,a=(e,t)=>{let n=this.nestingOptionsSeparator;if(!e.includes(n))return e;let i=e.split(RegExp(`${n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),o=`{${i[1]}`;e=i[0];let a=(o=this.interpolate(o,r)).match(/'/g),s=o.match(/"/g);((a?.length??0)%2!=0||s)&&(s?.length??0)%2==0||(o=o.replace(/'/g,'"'));try{r=JSON.parse(o),t&&(r={...t,...r})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return r.defaultValue&&r.defaultValue.includes(this.prefix)&&delete r.defaultValue,e};for(;i=this.nestingRegexp.exec(e);){let s=[];(r=(r={...n}).replace&&!l_(r.replace)?r.replace:r).applyPostProcessor=!1,delete r.defaultValue;let l=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(-1!==l&&(s=i[1].slice(l).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),i[1]=i[1].slice(0,l)),(o=t(a.call(this,i[1].trim(),r),r))&&i[0]===e&&!l_(o))return o;l_(o)||(o=ly(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),s.length&&(o=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}let lX=e=>{let t={};return(n,i,o)=>{let r=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(r={...r,[o.interpolationkey]:void 0});let a=i+JSON.stringify(r),s=t[a];return s||(s=e(lI(i),o),t[a]=s),s(n)}},lJ=e=>(t,n,i)=>e(lI(n),i)(t);class lQ{constructor(e={}){this.logger=lR.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let n=t.cacheInBuiltFormats?lX:lJ;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=lX(t)}format(e,t,n,i={}){if(!t||null==e)return e;let o=t.split(this.formatSeparator),r=[];for(let e=0;e<o.length;e++){let t=o[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<o.length;)t=`${t}${this.formatSeparator}${o[++e]}`;r.push(t)}return r.reduce((e,t)=>{let{formatName:o,formatOptions:r}=(e=>{let t=e.toLowerCase().trim(),n={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let o=i[1].slice(0,-1);"currency"!==t||o.includes(":")?"relativetime"!==t||o.includes(":")?o.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),o=i.join(":").trim().replace(/^'+|'+$/g,""),r=t.trim();n[r]||(n[r]=o),"false"===o&&(n[r]=!1),"true"===o&&(n[r]=!0),isNaN(o)||(n[r]=parseInt(o,10))}}):n.range||(n.range=o.trim()):n.currency||(n.currency=o.trim())}return{formatName:t,formatOptions:n}})(t);if(this.formats[o]){let t=e;try{let a=i?.formatParams?.[i.interpolationkey]||{},s=a.locale||a.lng||i.locale||i.lng||n;t=this.formats[o](e,s,{...r,...i,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${o}`),e},e)}}class lZ extends l${constructor(e,t,n,i={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=i,this.logger=lR.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,i.backend,i)}queueLoad(e,t,n,i){let o={},r={},a={},s={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===r[a]&&(r[a]=!0):(this.state[a]=1,i=!1,void 0===r[a]&&(r[a]=!0),void 0===o[a]&&(o[a]=!0),void 0===s[t]&&(s[t]=!0)))}),i||(a[e]=!0)}),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),!t&&n&&this.store.addResourceBundle(o,r,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let a={};this.queue.forEach(n=>{((e,t,n)=>{let{obj:i,k:o}=lk(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[o],r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(e=>{a[e]||(a[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,i=0,o=this.retryTimeout,r){if(!e.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:r});this.readingCalls++;let a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,n,i+1,2*o,r)},o):r(a,s)},s=this.backend[n].bind(this.backend);if(2===s.length){try{let n=s(e,t);n&&"function"==typeof n.then?n.then(e=>a(null,e)).catch(a):a(null,n)}catch(e){a(e)}return}return s(e,t,a)}prepareLoading(e,t,n={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();l_(e)&&(e=this.languageUtils.toResolveHierarchy(e)),l_(t)&&(t=[t]);let o=this.queueLoad(e,t,n,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=""){let n=e.split("|"),i=n[0],o=n[1];this.read(i,o,"read",void 0,void 0,(n,r)=>{n&&this.logger.warn(`${t}loading namespace ${o} for language ${i} failed`,n),!n&&r&&this.logger.log(`${t}loaded namespace ${o} for language ${i}`,r),this.loaded(e,n,r)})}saveMissing(e,t,n,i,o,r={},a=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=n&&""!==n){if(this.backend?.create){let s={...r,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;(o=5===l.length?l(e,t,n,i,s):l(e,t,n,i))&&"function"==typeof o.then?o.then(e=>a(null,e)).catch(a):a(null,o)}catch(e){a(e)}else l(e,t,n,i,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,i)}}}let l0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),l_(e[1])&&(t.defaultValue=e[1]),l_(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),l1=e=>(l_(e.ns)&&(e.ns=[e.ns]),l_(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),l_(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),l2=()=>{};class l5 extends l${constructor(e={},t){if(super(),this.options=l1(e),this.services={},this.logger=lR,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(l_(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let n=l0();this.options={...n,...this.options,...l1(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler);let i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?lR.init(i(this.modules.logger),this.options):lR.init(null,this.options),e=this.modules.formatter?this.modules.formatter:lQ;let t=new lz(this.options);this.store=new lN(this.options.resources,this.options);let n=this.services;n.logger=lR,n.resourceStore=this.store,n.languageUtils=t,n.pluralResolver=new lV(t,{prepend:this.options.pluralSeparator}),e&&(n.formatter=i(e),n.formatter.init&&n.formatter.init(n,this.options),this.options.interpolation.format=n.formatter.format.bind(n.formatter)),n.interpolator=new lK(this.options),n.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},n.backendConnector=new lZ(i(this.modules.backend),n.resourceStore,n,this.options),n.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(n.languageDetector=i(this.modules.languageDetector),n.languageDetector.init&&n.languageDetector.init(n,this.options.detection,this.options)),this.modules.i18nFormat&&(n.i18nFormat=i(this.modules.i18nFormat),n.i18nFormat.init&&n.i18nFormat.init(this)),this.translator=new lH(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=l2),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let o=lv(),r=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(n),t(e,n)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?r():setTimeout(r,0),o}loadResources(e,t=l2){let n=t,i=l_(e)?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return n();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};i?t(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let i=lv();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=l2),this.services.backendConnector.reload(e,t,e=>{i.resolve(),n(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lP.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=lv();this.emit("languageChanging",e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(o,r)=>{r?this.isLanguageChangingTo===e&&(i(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(o,(...e)=>this.t(...e))},r=t=>{e||t||!this.services.languageDetector||(t=[]);let n=l_(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes(l_(t)?[t]:t);r&&(this.language||i(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(r):this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect()),n}getFixedT(e,t,n,i){let o=i?.scopeNs,r=(e,t,...i)=>{let a,s;(a="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs;let l=void 0!==a.ns&&null!==a.ns;a.ns=a.ns||r.ns,""!==a.keyPrefix&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let c={...this.options,...a};Array.isArray(o)&&!l&&(c.ns=o),"function"==typeof a.keyPrefix&&(a.keyPrefix=lY(a.keyPrefix,c));let d=this.options.keySeparator||".";return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>("function"==typeof e&&(e=lY(e,c)),`${a.keyPrefix}${d}${e}`)):("function"==typeof e&&(e=lY(e,c)),s=a.keyPrefix?`${a.keyPrefix}${d}${e}`:e),this.t(s,a)};return l_(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;let r=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return -1===n||0===n||2===n};if(t.precheck){let e=t.precheck(this,r);if(void 0!==e)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||r(n,e)&&(!i||r(o,e)))}loadNamespaces(e,t){let n=lv();return this.options.ns?(l_(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=lv();l_(e)&&(e=[e]);let i=this.options.preload||[],o=e.filter(e=>!i.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=i.concat(o),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new lz(l0());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let n=new l5(e,t);return n.createInstance=l5.createInstance,n}cloneInstance(e={},t=l2){let n=e.forkResourceStore;n&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},o=new l5(i);if((void 0!==e.debug||void 0!==e.prefix)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(e=>{o[e]=this[e]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},n&&(o.store=new lN(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,i)=>(n[i]={...e[t][i]},n),e[t]),e),{}),i),o.services.resourceStore=o.store),e.interpolation){let t={...l0().interpolation,...this.options.interpolation,...e.interpolation},n={...i,interpolation:t};o.services.interpolator=new lK(n)}return o.translator=new lH(o.services,i),o.translator.on("*",(e,...t)=>{o.emit(e,...t)}),o.init(i,t),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let l4=l5.createInstance();l4.createInstance,l4.dir,l4.init,l4.loadResources,l4.reloadResources,l4.use,l4.changeLanguage,l4.getFixedT,l4.t,l4.exists,l4.setDefaultNamespace,l4.hasLoadedNamespace,l4.loadNamespaces,l4.loadLanguages;var l3=n(14867),l6=n.n(l3);n(83472);class l8{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)}}function l7(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>l7(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>l7(e[n],t[n]))}return!1}function l9(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}class ce{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,r,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==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.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=>ce._evalValuePredicate(e.name,t)))&&(!this.attributes||ce._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!ce._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?ce._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}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,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||ce._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>ce._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>ce._evalGroup(e,t))];return!a.length||("OR"===r?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=>ce._collectNames(e))]}}ce._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ct=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let cn=n(74461);class ci{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 i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=ci._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},c)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let h=mJ.getAppName();h.length>0&&0>d.apps.indexOf(h)&&d.apps.push(h),this._registration=d,o&&(d.name=o),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}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 ct(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 ct(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 ct(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},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return ct(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 ct(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 i=new l8,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>ct(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 ct(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mJ.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&&ci._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 ct(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,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:cn.name,version:cn.version,platform:cn.os.toString(),apps:[],model:((cn.manufacturer?cn.manufacturer+" ":"")+(cn.product?cn.product:"")).trim()}}_initialiseProvider(e){return ct(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 co(e,t){return function(){return e.apply(t,arguments)}}let{toString:cr}=Object.prototype,{getPrototypeOf:ca}=Object,{iterator:cs,toStringTag:cl}=Symbol,cc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cd=e=>"string"==typeof e&&("__proto__"===e||"constructor"===e||"prototype"===e),cu=(e,t,n)=>e===Object.prototype||!n&&null===t,cm=(e,t)=>{let n=e,i=[];for(;null!=n&&-1===i.indexOf(n);){i.push(n);let o=ca(n);if(cu(n,o,n===e))break;if(cc(n,t))return!0;n=o}return!1},ch=(a=Object.create(null),e=>{let t=cr.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cf=e=>(e=e.toLowerCase(),t=>ch(t)===e),cp=e=>t=>typeof t===e,{isArray:cg}=Array,cb=cp("undefined");function c_(e){return null!==e&&!cb(e)&&null!==e.constructor&&!cb(e.constructor)&&cw(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cv=cf("ArrayBuffer"),cy=cp("string"),cw=cp("function"),cx=cp("number"),cF=e=>null!==e&&"object"==typeof e,ck=e=>{if(!cF(e))return!1;let t=ca(e);return(null===t||t===Object.prototype||null===ca(t))&&!cm(e,cl)&&!cm(e,cs)},cE=cf("Date"),cC=cf("File"),cA=cf("Blob"),cT=cf("FileList"),cS=cf("Set"),cM="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cL=void 0!==cM.FormData?cM.FormData:void 0,cD=cf("URLSearchParams"),[cI,cO,cR,c$]=["ReadableStream","Request","Response","Headers"].map(cf);function cN(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cg(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(c_(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function cP(e,t){let n;if(c_(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let cB="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,cY=e=>!cb(e)&&e!==cB,cj=(s="u">typeof Uint8Array&&ca(Uint8Array),e=>s&&e instanceof s),cH=cf("HTMLFormElement"),{propertyIsEnumerable:cz}=Object.prototype,cU=cf("RegExp"),cW=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};cN(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},cV=cf("AsyncFunction"),cG=(_a="function"==typeof setImmediate,_s=cw(cB.postMessage),_a?setImmediate:_s?(_l=`axios@${Math.random()}`,_c=[],cB.addEventListener("message",({source:e,data:t})=>{e===cB&&t===_l&&_c.length&&_c.shift()()},!1),e=>{_c.push(e),cB.postMessage(_l,"*")}):e=>setTimeout(e)),cq="u">typeof queueMicrotask?queueMicrotask.bind(cB):"u">typeof process&&process.nextTick||cG,cK=e=>null!=e&&cw(e[cs]),cX={isArray:cg,isArrayBuffer:cv,isBuffer:c_,isFormData:e=>{if(!e)return!1;if(cL&&e instanceof cL)return!0;let t=ca(e);if(!t||t===Object.prototype||!cw(e.append))return!1;let n=ch(e);return"formdata"===n||"object"===n&&cw(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cv(e.buffer)},isString:cy,isNumber:cx,isBoolean:e=>!0===e||!1===e,isObject:cF,isPlainObject:ck,isEmptyObject:e=>{if(!cF(e)||c_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cI,isRequest:cO,isResponse:cR,isHeaders:c$,isUndefined:cb,isDate:cE,isFile:cC,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cA,isRegExp:cU,isFunction:cw,isStream:e=>cF(e)&&cw(e.pipe),isURLSearchParams:cD,isTypedArray:cj,isFileList:cT,forEach:cN,merge:function e(...t){let{caseless:n,skipUndefined:i}=cY(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&cP(o,r)||r,s=cc(o,a)?o[a]:void 0;ck(s)&&ck(t)?o[a]=e(s,t):ck(t)?o[a]=e({},t):cg(t)?o[a]=t.slice():i&&cb(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||c_(n)||(cN(n,r),"object"!=typeof n||cg(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];cz.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(cN(t,(t,i)=>{n&&cw(t)?Object.defineProperty(e,i,{__proto__:null,value:co(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),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,i)=>{e.prototype=Object.create(t.prototype,i),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,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&ca(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ch,kindOfTest:cf,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(cg(e))return e;let t=e.length;if(!cx(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cs]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:cH,hasOwnProperty:cc,hasOwnProp:cc,hasOwnInPrototypeChain:cm,getSafeProp:(e,t)=>null!=e&&cm(e,t)?e[t]:void 0,toSafeFlatObject:e=>{if(null==e||"object"!=typeof e&&"function"!=typeof e)return e;let t=ca(e);if(null===t&&(e=>{if(!Object.isExtensible(e))return!1;let t=Object.getOwnPropertyNames(e);return Object.getOwnPropertySymbols&&t.push(...Object.getOwnPropertySymbols(e)),t.every(t=>{if(cd(t))return!1;let n=Object.getOwnPropertyDescriptor(e,t);return!!n&&n.configurable&&!0===n.writable})})(e))return e;let n=Object.create(null),i=Object.create(null),o=[],r=e;for(;null!=r&&-1===o.indexOf(r);){o.push(r);let a=r===e?t:ca(r);if(cu(r,a,r===e))break;let s=Object.getOwnPropertyNames(r);for(let t of(Object.getOwnPropertySymbols&&s.push(...Object.getOwnPropertySymbols(r)),s))!cd(t)&&(cc(i,t)||(n[t]=e[t],i[t]=!0));r=a}return n},reduceDescriptors:cW,freezeMethods:e=>{cW(e,(t,n)=>{if(cw(e)&&["arguments","caller","callee"].includes(n))return!1;if(cw(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(cg(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:cP,global:cB,isContextDefined:cY,isSpecCompliantForm:function(e){return!!(e&&cw(e.append)&&"FormData"===e[cl]&&e[cs])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cF(e)){if(t.has(e))return;if(c_(e))return e;if(!("toJSON"in e)){let i;if(t.add(e),cS(e))for(let t of(i=[],e)){let e=n(t);cb(e)||i.push(e)}else i=cg(e)?[]:{},cN(e,(e,t)=>{let o=n(e);cb(o)||(i[t]=o)});return t.delete(e),i}}return e};return n(e)},isAsyncFn:cV,isThenable:e=>e&&(cF(e)||cw(e))&&cw(e.then)&&cw(e.catch),setImmediate:cG,asap:cq,isIterable:cK,isSafeIterable:e=>null!=e&&cm(e,cs)&&cK(e)},cJ=cX.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"]),cQ=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),cZ=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function c0(e,t){return cX.isArray(e)?e.map(e=>c0(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 c1(e){let t=Object.create(null);return cX.forEach(e.toJSON(),(e,n)=>{t[n]=c0(e,cZ)}),t}let c2=Symbol("internals");function c5(e){return e&&String(e).trim().toLowerCase()}function c4(e){return!1===e||null==e?e:cX.isArray(e)?e.map(c4):c0(String(e),cQ)}let c3=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function c6(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}function c8(e,t,n,i,o){if(cX.isFunction(i))return i.call(this,t,n);if(o&&(t=n),cX.isString(t)){if(cX.isString(i))return -1!==t.indexOf(i);if(cX.isRegExp(i))return i.test(t)}}class c7{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=c5(t);if(!o)return;let r=cX.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=c4(e))}let r=(e,t)=>cX.forEach(e,(e,n)=>o(e,n,t));if(cX.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(cX.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim();let t=cX.hasOwnProp(s,n);!n||t&&cX.hasOwnProp(cJ,n)||("set-cookie"===n?t?s[n].push(i):s[n]=[i]:s[n]=t?s[n]+", "+i:i)}),s),t)}else if(cX.isObject(e)&&cX.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!cX.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],cX.hasOwnProp(n,o)?(i=n[o],n[o]=cX.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=c5(e)){let n=cX.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(cX.isFunction(t))return t.call(this,e,n);if(cX.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=c5(e)){let n=cX.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||c8(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=c5(e)){let o=cX.findKey(n,e);o&&(!t||c8(n,n[o],o,t))&&(delete n[o],i=!0)}}return cX.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||c8(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return cX.forEach(this,(i,o)=>{let r=cX.findKey(n,o);if(r){t[r]=c4(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=c4(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return cX.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&cX.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){let e=this.get("set-cookie");return cX.isArray(e)?e:null==e||!1===e?[]:[e]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static parseParameters(e){return function(e){let t=Object.create(null),n=String(e),i=0,o=!1,r=!1;function a(e){let o=c6(n.slice(i,e)),r=o.indexOf("=");if(r<1)return;let a=c6(o.slice(0,r));if(!c3.test(a))return;let s=a.toLowerCase();if("__proto__"===s||"constructor"===s||"prototype"===s)return;let l=c6(o.slice(r+1));t[s]=function(e){let t=e.length-1;if(t<1||34!==e.charCodeAt(0)||34!==e.charCodeAt(t))return e;let n="";for(let i=1;i<t;i++){let o=e.charCodeAt(i);if(34===o||92===o&&(i+=1)>=t)return e;n+=e[i]}return n}(l)}for(let e=0;e<n.length;e++){let t=n.charCodeAt(e);o?r?r=!1:92===t?r=!0:34===t&&(o=!1):34===t?o=!0:(44===t||59===t)&&(a(e),i=e+1)}return a(n.length),t}(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[c2]=this[c2]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=c5(e);if(!t[i]){let o;o=cX.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return cX.isArray(e)?e.forEach(i):i(e),this}}c7.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),cX.reduceDescriptors(c7.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),cX.freezeMethods(c7);let c9="[REDACTED ****]";function de(e){try{return String(e)}catch(e){return""}}class dt extends Error{static from(e,t,n,i,o,r){let a=e.message;!a&&cX.isArray(e.errors)&&e.errors.length&&(a=e.errors.map(e=>{try{return e&&e.message?de(e.message):de(e)}catch(e){return""}}).filter(Boolean).join("; ")||e.name||"AggregateError");let s=new dt(a,t||e.code,n,i,o);return Object.defineProperty(s,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),r&&Object.assign(s,r),s}constructor(e,t,n,i,o){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),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&cX.hasOwnProp(i,"redact")?i.redact:void 0,r=cX.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||cX.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof c7&&(i=i.toJSON()),t.push(i),cX.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);cX.isUndefined(i)||(o[t]=i)});else{if(!cX.isPlainObject(i)&&function(e){if(cX.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(cX.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?c9:n(r);cX.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):cX.toJSONObject(i);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:r,code:this.code,status:this.status}}}dt.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",dt.ERR_BAD_OPTION="ERR_BAD_OPTION",dt.ECONNABORTED="ECONNABORTED",dt.ETIMEDOUT="ETIMEDOUT",dt.ECONNREFUSED="ECONNREFUSED",dt.ERR_NETWORK="ERR_NETWORK",dt.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",dt.ERR_DEPRECATED="ERR_DEPRECATED",dt.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",dt.ERR_BAD_REQUEST="ERR_BAD_REQUEST",dt.ERR_CANCELED="ERR_CANCELED",dt.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",dt.ERR_INVALID_URL="ERR_INVALID_URL",dt.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dn=dt;function di(e){return cX.isPlainObject(e)||cX.isArray(e)}function dr(e){return cX.endsWith(e,"[]")?e.slice(0,-2):e}function da(e,t,n){return e?e.concat(t).map(function(e,t){return e=dr(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let ds=cX.toFlatObject(cX,{},null,function(e){return/^is[A-Z]/.test(e)}),dl=function(e,t,n){if(!cX.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(e,t)=>{let i=cX.getSafeProp(n,e);return cX.isUndefined(i)?t:i},o=i("metaTokens",!0),r=i("visitor")||f,a=i("dots",!1),s=i("indexes",!1),l=i("Blob")||"u">typeof Blob&&Blob,c=i("maxDepth",100),d=l&&cX.isSpecCompliantForm(t),u=[];if(!cX.isFunction(r))throw TypeError("visitor must be a function");function m(e){if(null===e)return"";if(cX.isDate(e))return e.toISOString();if(cX.isBoolean(e))return e.toString();if(!d&&cX.isBlob(e))throw new dn("Blob is not supported. Use a Buffer instead.");if(cX.isArrayBuffer(e)||cX.isTypedArray(e)){if(d&&"function"==typeof l)return new l([e]);throw new dn("Blob is not supported. Use a Buffer instead.",dn.ERR_NOT_SUPPORT)}return e}function h(e){if(e>c)throw new dn("Object is too deeply nested ("+e+" levels). Max depth: "+c,dn.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,i){let r=e;if(cX.isReactNative(t)&&cX.isReactNativeBlob(e))return t.append(da(i,n,a),m(e)),!1;if(e&&!i&&"object"==typeof e)if(cX.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=function(e){if(1/0===c)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!cX.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),h(1+t.length-1),n})}(e);else{var l;if(cX.isArray(e)&&(l=e,cX.isArray(l)&&!l.some(di))||(cX.isFileList(e)||cX.endsWith(n,"[]"))&&(r=cX.toArray(e)))return n=dr(n),r.forEach(function(e,i){cX.isUndefined(e)||null===e||t.append(!0===s?da([n],i,a):null===s?n:n+"[]",m(e))}),!1}return!!di(e)||(t.append(da(i,n,a),m(e)),!1)}let p=Object.assign(ds,{defaultVisitor:f,convertValue:m,isVisitable:di});if(!cX.isObject(e))throw TypeError("data must be an object");return!function e(n,i,o=0){if(!cX.isUndefined(n)){if(h(o),-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),cX.forEach(n,function(n,a){!0===(!(cX.isUndefined(n)||null===n)&&r.call(t,n,cX.isString(a)?a.trim():a,i,p))&&e(n,i?i.concat(a):[a],o+1)}),u.pop()}}(e),t};function dc(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dd(e,t){this._pairs=[],e&&dl(e,this,t)}let du=dd.prototype;function dm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dh(e,t,n){let i;if(!t)return e;e=e||"";let o=cX.isFunction(n)?{serialize:n}:n,r=cX.getSafeProp(o,"encode")||dm,a=cX.getSafeProp(o,"serialize");if(i=a?a(t,o):cX.isURLSearchParams(t)?t.toString():new dd(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}du.append=function(e,t){this._pairs.push([e,t])},du.toString=function(e){let t=e?t=>e.call(this,t,dc):dc;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let df=Symbol("internals");function dp(e){return e?e.length:0}function dg(e){if(e)for(;e.length&&null===e[e.length-1];)e.pop()}function db(e,t){let n=e.handlers,i=dp(n);n!==t.handlersRef?(t.handlersRef=n,t.handlerEntries.clear()):i!==t.handlersLength&&(i?t.handlerEntries.forEach(function(e,i){n[e.index]!==e.handler&&t.handlerEntries.delete(i)}):t.handlerEntries.clear()),t.handlersLength=i}let d_=class{constructor(){this.handlers=[],this[df]={handlersRef:this.handlers,handlersLength:this.handlers.length,handlerEntries:new Map,iterationDepth:0,nextId:0}}use(e,t,n){let i={fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null},o=this[df];null==this.handlers&&(this.handlers=[]),db(this,o);let r=o.nextId++;return this.handlers.push(i),o.handlerEntries.set(r,{handler:i,index:this.handlers.length-1}),o.handlersLength=this.handlers.length,r}eject(e){let t=this[df];db(this,t);let n=t.handlerEntries.get(e);if(n){if(t.handlerEntries.delete(e),this.handlers[n.index]!==n.handler)return;this.handlers[n.index]=null,t.iterationDepth||(dg(this.handlers),t.handlersLength=this.handlers.length)}}clear(){this.handlers&&(this.handlers=[],db(this,this[df]))}forEach(e){let t=this[df];db(this,t),t.iterationDepth++;try{cX.forEach(this.handlers,function(t){null!==t&&e(t)})}finally{--t.iterationDepth||(db(this,t),dg(this.handlers),t.handlersLength=dp(this.handlers))}}},dv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dy="u">typeof URLSearchParams?URLSearchParams:dd,dw="u">typeof FormData?FormData:null,dx="u">typeof Blob?Blob:null,dF="u">typeof window&&"u">typeof document,dk="object"==typeof navigator&&navigator||void 0,dE=dF&&(!dk||0>["ReactNative","NativeScript","NS"].indexOf(dk.product)),dC="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dA=dF&&window.location.href||"http://localhost",dT={...d,isBrowser:!0,classes:{URLSearchParams:dy,FormData:dw,Blob:dx},protocols:["http","https","file","blob","url","data"]};function dS(e){if(e>100)throw new dn("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dn.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dM=function(e){if(cX.isFormData(e)&&cX.isFunction(e.entries)){let t={};return cX.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dS(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&cX.isArray(i)?i.length:r,s)?cX.hasOwnProp(i,r)?i[r]=cX.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(cX.hasOwnProp(i,r)&&cX.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&cX.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/[^.[\]]+|\[([^.[\]]*)]/g;for(;null!==(t=i.exec(e));)dS(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dL=Object.freeze(["get","delete","head","options","post","put","patch","purge","link","unlink","query"]),dD=(e,t)=>null!=e&&cX.hasOwnProp(e,t)?e[t]:void 0,dI={transitional:dv,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=cX.isObject(e);if(r&&cX.isHTMLForm(e)&&(e=new FormData(e)),cX.isFormData(e))return o?JSON.stringify(dM(e)):e;if(cX.isArrayBuffer(e)||cX.isBuffer(e)||cX.isStream(e)||cX.isFile(e)||cX.isBlob(e)||cX.isReadableStream(e))return e;if(cX.isArrayBufferView(e))return e.buffer;if(cX.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dD(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return dl(e,new dT.classes.URLSearchParams,{visitor:function(e,t,n,i){return dT.isNode&&cX.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=cX.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dD(this,"env"),o=i&&i.FormData;return dl(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(cX.isString(a))try{return(0,JSON.parse)(a),cX.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dD(this,"transitional")||dI.transitional,n=t&&t.forcedJSONParsing,i=dD(this,"responseType"),o="json"===i;if(cX.isResponse(e)||cX.isReadableStream(e))return e;if(e&&cX.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dD(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dn.from(e,dn.ERR_BAD_RESPONSE,this,null,dD(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dT.classes.FormData,Blob:dT.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dO(e,t){let n=this||dI,i=t||n,o=c7.from(i.headers),r=i.data;return cX.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dR(e){return!!(e&&e.__CANCEL__)}cX.forEach(dL,e=>{dI.headers[e]={}});let d$=class extends dn{constructor(e,t,n){super(null==e?"canceled":e,dn.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dN(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dn("Request failed with status code "+n.status,n.status>=400&&n.status<500?dn.ERR_BAD_REQUEST:dn.ERR_BAD_RESPONSE,n.config,n.request,n))}let dP=/[\t\n\r]/g;function dB(e){if("string"!=typeof e)return e;let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t).replace(dP,"")}function dY(e){let t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}let dj=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=o[a];n||(n=l),i[r]=s,o[r]=l;let d=a,u=0;for(;d!==r;)u+=i[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let m=c&&l-c;return m?Math.round(1e3*u/m):void 0}},dH=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n),(...e)=>a(e)]},dz=(e,t,n=3)=>{let i=0,o=dj(50,250);return dH(n=>{if(!n||!cX.isNumber(n.loaded))return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=Math.max(0,null!=a?Math.min(r,a):r),l=Math.max(0,s-i),c=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},dU=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dW=(e,t=cX.asap)=>(...n)=>t(()=>e(...n)),dV=dT.hasStandardBrowserEnv?(l=new URL(dT.origin),c=dT.navigator&&/(msie|trident)/i.test(dT.navigator.userAgent),e=>(e=new URL(e,dT.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,dG=dT.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];cX.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),cX.isString(i)&&s.push(`path=${i}`),cX.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),cX.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 i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},dq=/^https?:(?!\/\/)/i;function dK(e,t){if("string"==typeof e){let i=dB(e);if(dq.test(i)){var n;let e,o,r;throw new dn(`Invalid URL ${JSON.stringify((r=(-1===(o=(e=i.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${c9}@`)).indexOf("#"))?e:e.slice(0,o)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${c9}`),-1===o?r:`${r}#${!(n=e.slice(o+1))?n:n.replace(/(^|&)([^=&]*=)?[^&]+/g,(e,t,n="")=>`${t}${n}${c9}`)}`))}: missing "//" after protocol`,dn.ERR_INVALID_URL,t)}}}function dX(e,t,n,i){dK(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));if(e&&(o||!1===n)){dK(e,i);if(!t)return e;let n=e.length;for(;n>0&&47===e.charCodeAt(n-1);)n--;return e.slice(0,n)+"/"+t.replace(/^\/+/,"")}return t}let dJ=e=>e instanceof c7?{...e}:e;function dQ(e,t){var n;e=e||{},t=t||{};let i=Object.create(null);function o(e,t,n,i){return cX.isPlainObject(e)&&cX.isPlainObject(t)?cX.merge.call({caseless:i},e,t):cX.isPlainObject(t)?cX.merge({},t):cX.isArray(t)?t.slice():t}function r(e,t,n,i){return cX.isUndefined(t)?cX.isUndefined(e)?void 0:o(void 0,e,n,i):o(e,t,n,i)}function a(e,t){if(!cX.isUndefined(t))return o(void 0,t)}function s(e,t){return cX.isUndefined(t)?cX.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(n,i,r){return cX.hasOwnProp(t,r)?o(n,i):cX.hasOwnProp(e,r)?o(void 0,n):void 0}Object.defineProperty(i,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutErrorMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:l,headers:(e,t,n)=>r(dJ(e),dJ(t),n,!0)};return cX.forEach((n={...e,...t},Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(n).concat(Object.getOwnPropertySymbols(n).filter(e=>Object.getOwnPropertyDescriptor(n,e).enumerable)):Object.keys(n)),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let o=cX.hasOwnProp(c,n)?c[n]:r,a=o(cX.hasOwnProp(e,n)?e[n]:void 0,cX.hasOwnProp(t,n)?t[n]:void 0,n);cX.isUndefined(a)&&o!==l||(i[n]=a)}),cX.hasOwnProp(t,"validateStatus")&&cX.isUndefined(t.validateStatus)&&!1===function(n){let i=cX.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!cX.isUndefined(i)){if(!cX.isPlainObject(i))return;else if(cX.hasOwnProp(i,n))return i[n]}let o=cX.hasOwnProp(e,"transitional")?e.transitional:void 0;if(cX.isPlainObject(o)&&cX.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(cX.hasOwnProp(e,"validateStatus")?i.validateStatus=o(void 0,e.validateStatus):delete i.validateStatus),i}let dZ=["content-type","content-length"],d0=function(e){let t=dQ({},e),n=e=>cX.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");if(t.headers=s=c7.from(s),t.url=dh(dX(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=cX.getSafeProp(l,"username")||"",n=cX.getSafeProp(l,"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 dn.from(t,dn.ERR_BAD_OPTION_VALUE,e)}}if(cX.isFormData(i)){let e=cX.getSafeProp(i,"getHeaders");if(dT.hasStandardBrowserEnv||dT.hasStandardBrowserWebWorkerEnv||cX.isReactNative(i))s.setContentType(void 0);else{var m,h;cX.isFunction(e)&&(m=s,h=e.call(i),"content-only"!==n("formDataHeaderPolicy")?m.set(h):Object.entries(h||{}).forEach(([e,t])=>{dZ.includes(e.toLowerCase())&&m.set(e,t)}))}}if(dT.hasStandardBrowserEnv&&(cX.isFunction(o)&&(o=o(t)),!0===o||null==o&&dV(t.url))){let e=r&&a&&dG.read(a);e&&s.set(r,e)}return t},d1="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let i,o,r,a,s,l,c=d0(e),d=c.data,u=c7.from(c.headers).normalize(),{responseType:m,onUploadProgress:h,onDownloadProgress:f}=c;function p(){a&&a(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(i),c.signal&&c.signal.removeEventListener("abort",i)}let g=new XMLHttpRequest;function b(i){if(!g)return;if(0===g.status&&"file"!==(dY(dB(c.url))||dY(dT.origin))&&!(g.responseURL&&g.responseURL.startsWith("file:"))){n(new dn("Request aborted",dn.ECONNABORTED,e,g)),p(),g=null;return}try{i?l&&l(i):s&&s()}catch(e){setTimeout(()=>{throw e})}if(!g)return;let o=c7.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dN(function(e){t(e),p()},function(e){n(e),p()},{data:m&&"text"!==m&&"json"!==m?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:o,config:e,request:g}),g=null}g.open(c.method.toUpperCase(),c.url,!0),g.timeout=c.timeout,"onloadend"in g?g.onloadend=b:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(b)},g.onabort=function(){g&&(n(new dn("Request aborted",dn.ECONNABORTED,e,g)),p(),g=null)},g.onerror=function(t){let i=new dn(t&&t.message?t.message:"Network Error",dn.ERR_NETWORK,e,g);i.event=t||null,n(i),p(),g=null},g.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",i=c.transitional||dv;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),n(new dn(t,i.clarifyTimeoutError?dn.ETIMEDOUT:dn.ECONNABORTED,e,g)),p(),g=null},void 0===d&&u.setContentType(null),"setRequestHeader"in g&&cX.forEach(c1(u),function(e,t){g.setRequestHeader(t,e)}),cX.isUndefined(c.withCredentials)||(g.withCredentials=!!c.withCredentials),m&&"json"!==m&&(g.responseType=c.responseType),f&&([r,s,l]=dz(f,!0),g.addEventListener("progress",r)),h&&g.upload&&([o,a]=dz(h),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(i=t=>{g&&(n(!t||t.type?new d$(null,e,g):t),g.abort(),p(),g=null)},c.cancelToken&&c.cancelToken.subscribe(i),c.signal&&(c.signal.aborted?i():c.signal.addEventListener("abort",i)));let _=dY(c.url);if(_&&!dT.protocols.includes(_)){n(new dn("Unsupported protocol "+_+":",dn.ERR_BAD_REQUEST,e)),p();return}g.send(d||null)})},d2=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},d5=async function*(e,t){for await(let n of d4(e))yield*d2(n,t)},d4=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()}},d3=(e,t,n,i)=>{let o,r=d5(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},d6=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,d8=(e,t,n)=>t+2<n&&d6(e.charCodeAt(t+1))&&d6(e.charCodeAt(t+2)),d7=e=>e<=57?e-48:(223&e)-55,d9=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||43===e||47===e||45===e||95===e,ue=e=>9===e||10===e||12===e||13===e||32===e,ut=e=>{var t;let n,i,o=e.length,r=0,a=0,s=!1;for(let t=0;t<o;t++){let n=e.charCodeAt(t);if(37===n&&d8(e,t,o)&&(n=16*d7(e.charCodeAt(t+1))+d7(e.charCodeAt(t+2)),t+=2),!ue(n)){if(61===n){a++;continue}if(!d9(n)||a>0){s=!0;continue}r++}}if(s||a>2||a>0&&(r+a)%4!=0||r%4==1){let t,n;return t=e.length,n=0,t>0&&61===e.charCodeAt(t-1)&&(n++,t>1&&61===e.charCodeAt(t-2)&&n++),Math.floor((t-n)*3/4)}return n=Math.floor((t=r)/4),3*n+(2==(i=t%4)?1:2*(3===i))},un={cache:"default",redirect:"follow",referrer:"about:client",referrerPolicy:"",mode:"cors",integrity:"",keepalive:!1,priority:"auto",window:null},{isFunction:ui}=cX,uo=e=>{if(!cX.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ur=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ua=e=>{let t,n=void 0!==cX.global&&null!==cX.global?cX.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=cX.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?ui(r):"function"==typeof fetch,c=ui(a),d=ui(s);if(!l)return!1;let u=l&&ui(i),m=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),h=c&&u&&ur(()=>{let e=!1,t=new a(dT.origin,{body:new i,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),f=d&&u&&ur(()=>cX.isReadableStream(new s("").body)),p={stream:f&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new dn(`Response type '${e}' is not supported`,dn.ERR_NOT_SUPPORT,n)})});let g=async e=>{if(null==e)return 0;if(cX.isBlob(e))return e.size;if(cX.isSpecCompliantForm(e)){let t=new a(dT.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return cX.isArrayBufferView(e)||cX.isArrayBuffer(e)?e.byteLength:(cX.isURLSearchParams(e)&&(e+=""),cX.isString(e))?(await m(e)).byteLength:void 0},b=async(e,t)=>{let n=cX.toFiniteNumber(e.getContentLength());return null==n?g(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:d,cancelToken:m,timeout:_,onDownloadProgress:v,onUploadProgress:y,responseType:w,headers:x,withCredentials:F="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:C,maxRedirects:A}=d0(e),T=cX.isNumber(E)&&E>-1,S=cX.isNumber(C)&&C>-1,M=r||fetch;w=w?(w+"").toLowerCase():"text";let L=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dn?t:new d$(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dn(`timeout of ${t}ms exceeded`,dn.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>{if(!i){if(e.aborted)return void o.call(e);e.addEventListener("abort",o,{once:!0})}});let{signal:s}=n;return s.unsubscribe=()=>cX.asap(a),s})([d,m&&m.toAbortSignal()],_),D=null,I=L&&L.unsubscribe&&(()=>{L.unsubscribe()}),O=null,R=()=>new dn("Request body larger than maxBodyLength limit",dn.ERR_BAD_REQUEST,e,D);try{var $,N;let r,d,m,_,P=(d="auth",cX.hasOwnProp(e,d)?e[d]:void 0);if(P){let e=cX.getSafeProp(P,"username")||"",t=cX.getSafeProp(P,"password")||"";r={username:e,password:t}}if(m=($=n).indexOf("://"),_=$,-1!==m&&(_=_.slice(m+3)),_.includes("@")||_.includes(":")){let e=new URL(n,dT.origin);if(!r&&(e.username||e.password)){let t=uo(e.username),n=uo(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;x.delete("authorization"),x.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(T&&"string"==typeof n&&n.startsWith("data:")){let t;if(N=n,t="string"==typeof N?N.indexOf("#"):-1,((e,t)=>{if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let n=e.indexOf(",");if(n<0)return 0;let i=e.slice(5,n),o=e.slice(n+1);if(/;base64/i.test(i))return t(o);let r=0;for(let e=0,t=o.length;e<t;e++){let n=o.charCodeAt(e);if(37===n&&d8(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})(-1===t?N:N.slice(0,t),ut)>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}if(S&&"get"!==i&&"head"!==i){let e=await g(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw R()}let B=S&&(cX.isReadableStream(l)||cX.isStream(l)),Y=(e,t,n)=>d3(e,65536,e=>{if(S&&e>C)throw O=R();t&&t(e)},n);if(h&&"get"!==i&&"head"!==i&&(y||B)){if(t=null==t?await b(x,l):t,0!==t||B){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(cX.isFormData(l)&&(e=i.headers.get("content-type"))&&x.setContentType(e),i.body){let[e,n]=y&&dU(t,dz(dW(y)))||[];l=Y(i.body,e,n)}}}else if(B&&!c&&u&&"get"!==i&&"head"!==i)l=Y(l);else if(B&&c&&!h&&"get"!==i&&"head"!==i)throw new dn("Stream request bodies are not supported by the current fetch implementation",dn.ERR_NOT_SUPPORT,e,D);cX.isString(F)||(F=F?"include":"omit");let j=c&&"credentials"in a.prototype;if(cX.isFormData(l)){let e=x.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&x.delete("content-type")}x.set("User-Agent","axios/1.20.0",!1);let H=null==k?k:Object.assign(Object.create(null),k);H&&(delete H.body,delete H.headers,delete H.method,delete H.signal,delete H.duplex,delete H.credentials);let z=Object.assign(Object.create(null),H,{signal:L,method:i.toUpperCase(),headers:c1(x.normalize()),body:l,duplex:"half",credentials:j?F:void 0});c&&(cX.forEach(un,(e,t)=>{void 0===z[t]&&(z[t]=e)}),void 0===z.signal&&(z.signal=null),void 0===z.body&&(z.body=null)),0===A&&(z.redirect="manual",H&&(H.redirect="manual")),D=c&&new a(n,z);let U=await (c?M(D,H):M(n,z)),W=c7.from(U.headers);if(T){let t=cX.toFiniteNumber(W.getContentLength());if(null!=t&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}let V=f&&("stream"===w||"response"===w);if(f&&U.body&&(v||T||V&&I)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=U[e]});let n=cX.toFiniteNumber(W.getContentLength()),[i,o]=v&&dU(n,dz(dW(v),!0))||[];U=new s(d3(U.body,65536,t=>{if(T&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D);i&&i(t)},()=>{o&&o(),I&&I()}),t)}w=w||"text";let G=await p[cX.findKey(p,w)||"text"](U,e);if(T&&!f&&!V){let t;if(null!=G&&("number"==typeof G.byteLength?t=G.byteLength:"number"==typeof G.size?t=G.size:"string"==typeof G&&(t="function"==typeof o?new o().encode(G).byteLength:G.length)),"number"==typeof t&&t>E)throw new dn("maxContentLength size of "+E+" exceeded",dn.ERR_BAD_RESPONSE,e,D)}return!V&&I&&I(),await new Promise((t,n)=>{dN(t,n,{data:G,headers:c7.from(U.headers),status:U.status,statusText:U.statusText,config:e,request:D})})}catch(t){if(I&&I(),L&&L.aborted&&L.reason instanceof dn){let n=L.reason;throw n.config=e,D&&(n.request=D),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw D&&!O.request&&(O.request=D),O;if(t instanceof dn)throw D&&!t.request&&(t.request=D),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dn("Network Error",dn.ERR_NETWORK,e,D,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dn.from(t,t&&t.code,e,D,t&&t.response)}}},us=new Map,ul=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=us;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ua(t)),c=l;return l};ul();let uc={http:null,xhr:d1,fetch:{get:ul}};cX.forEach(uc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ud=e=>`- ${e}`,uu=e=>cX.isFunction(e)||null===e||!1===e,um=function(e,t){let n,i,{length:o}=e=cX.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!uu(n)&&void 0===(i=uc[(o=String(n)).toLowerCase()]))throw new dn(`Unknown adapter '${o}'`);if(i&&(cX.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dn("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(ud).join("\n"):" "+ud(e[0]):"as no adapter specified"),dn.ERR_NOT_SUPPORT)}return i};function uh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new d$(null,e)}function uf(e){let t=cX.toSafeFlatObject(e);return uh(t),t.headers=c7.from(cX.getSafeProp(t,"headers")),t.data=dO.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),um(t.adapter||dI.adapter,t)(t).then(function(e){uh(t),t.response=e;try{e.data=dO.call(t,t.transformResponse,e)}finally{delete t.response}return e.headers=c7.from(e.headers),e},function(e){if(!dR(e)&&(uh(t),e&&e.response)){t.response=e.response;try{e.response.data=dO.call(t,t.transformResponse,e.response)}finally{delete t.response}e.response.headers=c7.from(e.response.headers)}return Promise.reject(e)})}let up={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{up[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ug={};up.transitional=function(e,t,n){function i(e,t){return"[Axios v1.20.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dn(i(o," has been removed"+(t?" in "+t:"")),dn.ERR_DEPRECATED);return t&&!ug[o]&&(ug[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},up.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ub=function(e,t,n){if("object"!=typeof e||null===e)throw new dn("options must be an object",dn.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dn("option "+r+" must be "+n,dn.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dn("Unknown option "+r,dn.ERR_BAD_OPTION)}};class u_{constructor(e){this.defaults=e||{},this.interceptors={request:new d_,response:new d_}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error)try{let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack,i="";if("string"==typeof n){let e=n.indexOf("\n");i=-1===e?"":n.slice(e+1)}if(e.stack){if(i){let t=i.indexOf("\n"),n=-1===t?-1:i.indexOf("\n",t+1),o=-1===n?"":i.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+i)}}else e.stack=i}catch(e){}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=dQ(this.defaults,t);void 0!==o&&ub(o,{silentJSONParsing:up.transitional(up.boolean),forcedJSONParsing:up.transitional(up.boolean),clarifyTimeoutError:up.transitional(up.boolean),legacyInterceptorReqResOrdering:up.transitional(up.boolean),advertiseZstdAcceptEncoding:up.transitional(up.boolean),validateStatusUndefinedResolves:up.transitional(up.boolean)},!1),null!=r&&(cX.isFunction(r)?t.paramsSerializer={serialize:r}:ub(r,{encode:up.function,serialize:up.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ub(t,{baseUrl:up.spelling("baseURL"),withXsrfToken:up.spelling("withXSRFToken")},!0),t.method=(cX.getSafeProp(t,"method")||cX.getSafeProp(this.defaults,"method")||"get").toLowerCase();let s=a&&cX.merge(a.common,a[t.method]);a&&cX.forEach(dL.concat("common"),e=>{delete a[e]}),t.headers=c7.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||dv;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[uf.bind(this),void 0];for(e.unshift(...l),e.push(...d),i=e.length,n=Promise.resolve(t);u<i;)n=n.then(e[u++],e[u++]);return n}i=l.length;let m=t;for(;u<i;){let e=l[u++],t=l[u++];try{m=e?e(m):m}catch(e){if(!t){n=Promise.reject(e);break}try{let i=t.call(this,e);cX.isThenable(i)&&(n=Promise.resolve(i).then(()=>uf.call(this,m)))}catch(e){n=Promise.reject(e)}break}}if(!n)try{n=uf.call(this,m)}catch(e){n=Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dh(dX((e=dQ(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}cX.forEach(["delete","get","head","options"],function(e){u_.prototype[e]=function(t,n){return this.request(dQ(n||{},{method:e,url:t,data:n&&cX.hasOwnProp(n,"data")?n.data:void 0}))}}),cX.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(dQ(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}u_.prototype[e]=t(),"query"!==e&&(u_.prototype[e+"Form"]=t(!0))});let uv=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new d$(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},uy={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,ContentTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,UnprocessableContent:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uy).forEach(([e,t])=>{void 0===uy[t]&&(uy[t]=e)});let uw=function e(t){let n=new u_(t),i=co(u_.prototype.request,n);return cX.extend(i,u_.prototype,n,{allOwnKeys:!0}),cX.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(dQ(t,n))},i}(dI);uw.Axios=u_,uw.CanceledError=d$,uw.CancelToken=uv,uw.isCancel=dR,uw.VERSION="1.20.0",uw.toFormData=dl,uw.AxiosError=dn,uw.Cancel=uw.CanceledError,uw.all=function(e){return Promise.all(e)},uw.spread=function(e){return function(t){return e.apply(null,t)}},uw.isAxiosError=function(e){return cX.isObject(e)&&!0===e.isAxiosError},uw.mergeConfig=dQ,uw.AxiosHeaders=c7,uw.formToJSON=e=>dM(cX.isHTMLForm(e)?new FormData(e):e),uw.getAdapter=um,uw.HttpStatusCode=uy,uw.default=uw;class ux{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uU`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uU`info`,options:e})}}class uF{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uU`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uU`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uU`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uU`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uU`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uU`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uU`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uU`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uU`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uU`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uU`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uU`user/${e}/${t}`,options:n})}}class uk{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uU`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uU`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uU`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uU`provisioning/${e}`,data:t,options:n})}}class uE{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`asset/predicted/${e}/${t}`,data:n,options:i})}}class uC{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uU`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uU`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uU`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uU`dashboard/${e}/${t}`,options:n})}}class uA{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uU`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uU`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uU`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uU`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uU`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uU`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uU`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uU`alarm/${e}/assets`,queryParams:t,options:n})}}class uT{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uU`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uU`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/status/${e}`,options:t})}}class uS{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uU`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uU`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uU`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uU`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uU`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uU`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uU`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uU`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uU`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uU`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uU`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uU`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uU`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uU`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uU`asset/${e}/child`,queryParams:t,options:n})}}class uM{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uU`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uU`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uU`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uU`configuration/manager/image/${e}`,options:t})}}class uL{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uU`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uU`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uU`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uU`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uU`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uU`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uU`service/${e}/${t}`,options:n})}}class uD{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uU`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uU`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uU`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uU`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uU`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uU`map/upload`,queryParams:e,options:t})}}class uI{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uU`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uU`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uO{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uU`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uU`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uU`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uU`syslog/event`,queryParams:e,options:t})}}class uR{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uU`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uU`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uU`flow/${e}`,options:t})}}class u${constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uU`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uU`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uU`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uU`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uU`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uU`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uU`notification/${e}/delivered`,queryParams:t,options:n})}}class uN{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uU`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uU`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uU`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uU`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uU`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uU`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uU`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uU`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uU`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uU`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uU`rules/${e}`,data:t,options:n})}}class uP{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uU`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uU`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uU`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uU`model/valueDescriptors`,queryParams:e,options:t})}}class uB{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uU`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uU`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uU`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uY{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uU`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uU`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uU`apps/info`,options:e})}}class uj{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uU`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uU`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uU`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uU`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uU`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uU`realm/${e}`,data:t,options:n})}}class uH{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uU`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uU`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uU`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uz{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uU`console/register`,data:e,options:t})}}function uU(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class uW{constructor(e,t=uw.create()){this._statusResource=new uG(e,t),this._userResource=new uq(e,t),this._provisioningResource=new uK(e,t),this._assetPredictedDatapointResource=new uX(e,t),this._dashboardResource=new uJ(e,t),this._alarmResource=new uQ(e,t),this._gatewayClientResource=new uZ(e,t),this._assetResource=new u0(e,t),this._configurationResource=new u1(e,t),this._externalServiceResource=new u2(e,t),this._mapResource=new u5(e,t),this._assetDatapointResource=new u4(e,t),this._syslogResource=new u3(e,t),this._flowResource=new u6(e,t),this._notificationResource=new u8(e,t),this._rulesResource=new u7(e,t),this._assetModelResource=new u9(e,t),this._gatewayServiceResource=new me(e,t),this._appResource=new mt(e,t),this._realmResource=new mn(e,t),this._agentResource=new mi(e,t),this._consoleResource=new mo(e,t),this._assetResource=new u0(e,t)}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get DashboardResource(){return this._dashboardResource}get AlarmResource(){return this._alarmResource}get GatewayClientResource(){return this._gatewayClientResource}get AssetResource(){return this._assetResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get MapResource(){return this._mapResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get FlowResource(){return this._flowResource}get NotificationResource(){return this._notificationResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AppResource(){return this._appResource}get RealmResource(){return this._realmResource}get AgentResource(){return this._agentResource}get ConsoleResource(){return this._consoleResource}}class uV{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 uG extends ux{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uq extends uF{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uK extends uk{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uX extends uE{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uJ extends uC{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uQ extends uA{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class uZ extends uT{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u0 extends uS{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u1 extends uM{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u2 extends uL{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u5 extends uD{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u4 extends uI{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u3 extends uO{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u6 extends uR{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u8 extends u${constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u7 extends uN{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class u9 extends uP{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class me extends uB{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mt extends uY{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mn extends uj{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mi extends uH{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}class mo extends uz{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uV(t))}}var mr=n(88183),ma=n.n(mr);uw.isAxiosError;let ms=new class{get api(){return this._client}constructor(){this._axiosInstance=uw.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ma().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 uW(e,this._axiosInstance)}};var ml=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(vg=yL||(yL={})).DISCONNECTED="DISCONNECTED",vg.CONNECTED="CONNECTED",vg.CONNECTING="CONNECTING";let mc="SUBSCRIBED:",md="UNAUTHORIZED:",mu="TRIGGERED:",mm="EVENT:";class mh{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mf.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=yL.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===yL.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(yL.CONNECTING),this._connectingDeferred=new l8,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mf.MIN_RECONNECT_DELAY,this._onStatusChanged(yL.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!==yL.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new l8};return null!=this._pendingSubscription||this._status!==yL.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 ml(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===yL.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==yL.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mh._subscriptionCounter++;if(!this._assetEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===mJ.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&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),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+mh._subscriptionCounter++;if(!this._attributeEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===mJ.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.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===yL.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===yL.CONNECTED&&this._onStatusChanged(yL.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(yL.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<mf.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mf.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mh.MIN_RECONNECT_DELAY=0,mh.MAX_RECONNECT_DELAY=3e4,mh._subscriptionCounter=0;class mf extends mh{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="+mJ.config.realm;return this._connectDeferred=new l8,(mJ.authenticated?mJ.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(mc)){let e=JSON.parse(t.substring(mc.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(md)){let e=JSON.parse(t.substring(md.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(mu)){let e=JSON.parse(t.substring(mu.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.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 l8,e.subscriptionId||(e.subscriptionId=mf._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=mm+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 l8;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mm+JSON.stringify(e)),t.promise}}mf._subscriptionCounter=1;let mp=["__proto__","constructor","prototype"];function mg(e){return!("string"!=typeof e||0===e.length||e.length>128||mp.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%:\s]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mb(e){return!(!mg(e)||e.indexOf("/")>-1||e.indexOf("@")>-1)}let m_={lng:mb,ns:function(e){return!(!mg(e)||e.indexOf("//")>-1)}};function mv(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function my(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mw=/\{\{(.+?)\}\}/g;function mx(e,t){let n=!1,i=e.replace(mw,(e,i)=>{let o=i.trim();if(mp.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=m_[o]||mb,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mF="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mF&&"function"==typeof mF.fetch&&(e=mF.fetch);let mk=my()&&mF?mF.XMLHttpRequest:void 0,mE="function"==typeof ActiveXObject&&mF?mF.ActiveXObject:void 0,mC=["__proto__","constructor","prototype"],mA=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mC.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mT=(t,n,i,o)=>{let r=e=>{if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then(t=>{i(null,{status:e.status,data:t})}).catch(i)};if(o){let e=o(t,n);if(e instanceof Promise)return void e.then(r).catch(i)}"function"==typeof fetch?fetch(t,n).then(r).catch(i):e(t,n).then(r).catch(i)},mS=(t,n,i,o)=>{if("function"==typeof i&&(o=i,i=void 0),o=o||(()=>{}),e&&0!==n.indexOf("file:")){var r=n,a=i,s=o;t.queryStringParams&&(r=mA(r,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 l="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:l},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{mT(r,c,s,d)}catch(e){if(!l||0===Object.keys(l).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(l).forEach(e=>{delete c[e]}),mT(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(my()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mA("",c).slice(1)),t.queryStringParams&&(l=mA(l,t.queryStringParams));try{let e=mk?new mk:new mE("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",l,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))mC.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var mM=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:mS,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,i,o){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return o(null,{});let a=mx(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(mv).join(", ")+"] namespaces=["+n.map(mv).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=mv(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,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+mv(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let c=mx(i,{lng:n,ns:t});if(null==c){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,c,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};mM.type="backend";class mL extends rv{constructor(e){if(super(e),this.it=en,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===en||null==e)return this._t=void 0,this.it=e;if(e===et)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:[]}}}mL.directiveName="unsafeHTML",mL.resultType=1,r_(mL);class mD extends mL{}mD.directiveName="unsafeSVG",mD.resultType=2;let mI=r_(mD),mO={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 mR=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class m$ extends CustomEvent{constructor(){super(m$.NAME,{bubbles:!0,composed:!0})}}m$.NAME="or-iconset-added";let mN=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new m$)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ee``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ee``}},mP=class extends ex{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[b`
17
17
  :host {
18
18
  --internal-or-icon-width: var(--or-icon-width, 24px);
19
19
  --internal-or-icon-height: var(--or-icon-height, 24px);