@openremote/or-json-forms 1.29.0-snapshot.20260810071738 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@
13
13
  font-weight: 600;
14
14
  line-height: 125.303%;
15
15
  }
16
- `;class ex extends ey{static finalizeStyles(e){return[eF,...super.finalizeStyles(e)]}}let ek=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eE={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:L};function eA(e){return(t,n)=>{let i;return"object"==typeof n?((e=eE,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 eA({...e,state:!0,attribute:!1})}let eT=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eS(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 eT(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eT(n,i,{get(){return r(this)}})}}var eM=n(55359),eL=n.n(eM),eD=n(71770),eO=n.n(eD),eI=n(38420),eR=n.n(eI),e$=n(95355),eN=n.n(e$),eP=n(29650),eY=n.n(eP),eB=n(59974),ej=n.n(eB),eH=n(29475),ez=n.n(eH),eU=n(64383),eW=n.n(eU),eV=n(22485),eG=n.n(eV),eq=n(18508),eK=n.n(eq),eX=n(16372),eJ=n.n(eX),eQ=n(58466),eZ=n.n(eQ),e0=n(78434),e1=n.n(e0),e2=n(51582),e4=n.n(e2),e5=n(81285),e3=n.n(e5),e6=n(26461),e8=n.n(e6),e7=n(97564),e9=n.n(e7),te=n(94360),tt=n.n(te),tn=n(20469),ti=n.n(tn),to=n(96672),tr=n.n(to),ta=n(6994),ts=n.n(ta),tl=n(19804),tc=n.n(tl),td=n(81370),tu=n.n(td),tm=n(86520),th=n.n(tm),tf=n(55482),tp=n.n(tf);let tb="additionalProperties",tg="required";class t_{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tb)},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 tv=(e,t={})=>new t_(e=>n=>{switch(n){case tb:if(Object.prototype.hasOwnProperty.call(t,tb))return t[tb];return!0;case tg:if(Object.prototype.hasOwnProperty.call(t,tg))return t[tg](e);return Object.keys(e);default:return}}).schemaObject(e),ty=new Set,tw=(e,t)=>t<=1?e:e+t.toString(),tF=(e,t)=>{let n=tw(e,t);return!ty.has(n)},tx=e=>{void 0===e&&(e="undefined");let t=0;for(;!tF(e,t);)t++;let n=tw(e,t);return ty.add(n),n},tk=e=>ty.delete(e),tE=()=>ty.clear(),tA=(e,t)=>{let n=e;return(eL()(e)||eL()(t)||t.startsWith("[")||(n=e+"."),eL()(n))?t:eL()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tM),n="#"===t[0]||""===t[0];return eN()(n?2:1,t.length,2).map(e=>t[e])},tT=e=>tC(e).join("."),tS=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tM=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tL=e=>`/properties/${e.split(".").map(e=>tS(e)).join("/properties/")}`,tD=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tM(t.substr(t.lastIndexOf("/")+1));return eO()(n)}return""},tO=e=>eO()(e.replace("_"," ")),tI=(e,t)=>{let n=e.label;return"boolean"==typeof n?tR(tD(e,t),n):"string"==typeof n?tR(n,!0):"object"==typeof n?tR("string"==typeof n.text?n.text:tD(e,t),"boolean"!=typeof n.show||n.show):tR(tD(e,t),!0)},tR=(e,t)=>({text:e,show:t}),t$=(e,t)=>eL()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),tN=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>tN(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>tN(e,t)):tN(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>tN(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tP=(e,t,n)=>tY(e,t?.split("/").map(tM),n),tY=(e,t,n)=>{if(eL()(e))return;if("string"==typeof e.$ref&&(e=tP(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tY(e,o,n);let r=tY(eY()(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=tY(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:{}};(bV=g5||(g5={})).HIDE="HIDE",bV.SHOW="SHOW",bV.ENABLE="ENABLE",bV.DISABLE="DISABLE";let tj=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tH=e=>{tU(e,tj(!0))},tz=e=>{tU(e,tj(!1))},tU=(e,t)=>{if(!eL()(e)){if(tK(e))return void e.elements.forEach(e=>tU(e,t));t(e)}},tW=(e,t)=>{if(t0(e)){if(tJ(e)&&e.scope.endsWith(tL(t)))return e;else if(e.options?.detail)return tW(e.options.detail,t)}if(tK(e))for(let n of e.elements){let e=tW(n,t);if(void 0!==e)return e}},tV=(e,t)=>{if(!tJ(e))return t??"";let n=tC(e.scope);return eL()(n)?t??"":tA(t,n.join("."))},tG=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tq=e=>"Group"===e.type,tK=e=>void 0!==e.elements,tX=e=>!!e&&"object"==typeof e,tJ=e=>tX(e)&&"string"==typeof e.scope,tQ=e=>!!e&&"object"==typeof e,tZ=e=>tQ(e)&&["string","boolean"].includes(typeof e.label),t0=e=>"Control"===e.type,t1=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t1(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t1(e,o,n,i),!1);if("LEAF"===t.type)return t$(e,tV(t,n))===t.expectedValue;if(!ej()(t,"schema"))return!0;{let o=t$(e,tV(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t2=(e,t,n,i)=>t1(t,e.rule.condition,n,i),t4=(e,t,n,i)=>{let o=t2(e,t,n,i);switch(e.rule.effect){case g5.HIDE:return!o;case g5.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t2(e,t,n,i);switch(e.rule.effect){case g5.DISABLE:return!o;case g5.ENABLE:return o;default:return!0}},t3=e=>!!e.rule&&(e.rule.effect===g5.SHOW||e.rule.effect===g5.HIDE),t6=e=>!!e.rule&&(e.rule.effect===g5.ENABLE||e.rule.effect===g5.DISABLE),t8=(e,t,n,i)=>!e.rule||t4(e,t,n,i),t7=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t9=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return ez()(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)})},ne=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),nt=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nn=(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},ni=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),no=(e,t)=>eG()(nr(e),t),nr=e=>{if(eL()(e))return[];if(!eL()(e.type)&&"string"==typeof e.type)return[e.type];if(eW()(e.type))return e.type;if(!eL()(e.properties)||!eL()(e.additionalProperties))return["object"];if(!eL()(e.items))return["array"];if(!eL()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):nr(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eL()(e.allOf)){let t=ez()(e.allOf,e=>0!==nr(e).length);if(t)return nr(t)}return[]},na={schema:tP,data:t$},ns={compose:tA,fromScoped:e=>tC(e.scope).join(".")},nl={isEnabled:(e,t,n)=>t7(e,t,void 0,n),isVisible:(e,t,n)=>t8(e,t,void 0,n)},nc=e=>{let t=new(eK())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eJ()(t),t},nd=(e,t)=>void 0===e||e(t)?[]:e.errors,nu="YYYY-MM-DD",nm="HH:mm:ss",nh="YYYY-MM-DDTHH:mm:ss.sssZ",nf=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=tM(t=t.replace(/^./,""))},np=(e,t,n)=>i=>{let o=eZ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nf(e));return eZ()(i,i=>{if(-1!==ng.indexOf(i.keyword)&&!ne(i.parentSchema))return!1;let r=n(nf(i)),a=i.parentSchema;return!r||nb(a)||ne(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e1()(a,t)),r})},nb=e=>e?.type==="object"||!!e?.properties,ng=["additionalProperties","allOf","anyOf","oneOf"],n_=e=>null==e?"":e.join("\n"),nv={createLabelDescriptionFrom:tI,convertToValidClassName:ni},ny=e=>({type:e,elements:[]}),nw=e=>({type:"Control",scope:e}),nF=(e,t,n,i,o,r)=>{if(!eL()(e)&&void 0!==e.$ref)return nF(tP(r,e.$ref,r),t,n,i,o,r);if(!eL()(e)&&(!eL()(e.oneOf)||!eL()(e.anyOf)||!eL()(e.allOf))){let e=nw(n);return t.push(e),e}let a=nr(e);if(0===a.length)return null;if(a.length>1){let e=nw(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=ny(o);if(t.push(a),e.properties&&eR()(e.properties).length>1&&((e,t)=>{if(!eL()(t)){let n=eO()(t);tq(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eL()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tS(n)}`;void 0!==i.$ref&&(i=tP(r,i.$ref,r)),nF(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=nw(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nx=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eL()(e)&&!tK(e)){let n=ny(t);return n.elements.push(e),n}return e})(nF(e,[],n,"",t,i),t),nk={jsonSchema:tv,uiSchema:nx,controlElement:nw},nE="jsonforms/INIT",nA="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nT="jsonforms/UPDATE",nS="jsonforms/UPDATE_ERRORS",nM="jsonforms/VALIDATE",nL="jsonforms/ADD_RENDERER",nD="jsonforms/REMOVE_RENDERER",nO="jsonforms/ADD_CELL",nI="jsonforms/REMOVE_CELL",nR="jsonforms/SET_CONFIG",n$="jsonforms/ADD_UI_SCHEMA",nN="jsonforms/REMOVE_UI_SCHEMA",nP="jsonforms/SET_SCHEMA",nY="jsonforms/SET_UISCHEMA",nB="jsonforms/SET_VALIDATION_MODE",nj="jsonforms/SET_LOCALE",nH="jsonforms/SET_TRANSLATOR",nz="jsonforms/UPDATE_I18N",nU="jsonforms/ADD_DEFAULT_DATA",nW="jsonforms/REMOVE_DEFAULT_DATA",nV=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}},nG=(e,t=tv(e),n,i)=>({type:nE,data:e,schema:t,uischema:"object"==typeof n?n:nx(t),options:i}),nq=(e,t,n,i)=>({type:nA,data:e,schema:t,uischema:n,options:i}),nK=(e,t)=>({type:nU,schemaPath:e,data:t}),nX=e=>({type:nW,schemaPath:e}),nJ=e=>({type:nC,ajv:e}),nQ=(e,t,n)=>({type:nT,path:e,updater:t,context:n}),nZ=e=>({type:nS,errors:e}),n0=(e,t)=>({type:nL,tester:e,renderer:t}),n1=(e,t)=>({type:nO,tester:e,cell:t}),n2=(e,t)=>({type:nI,tester:e,cell:t}),n4=(e,t)=>({type:nD,tester:e,renderer:t}),n5=e=>({type:nR,config:e}),n3=e=>({type:nB,validationMode:e}),n6=(e,t)=>({type:n$,tester:e,uischema:t}),n8=e=>({type:nN,tester:e}),n7=e=>({type:nj,locale:e}),n9=e=>({type:nP,schema:e}),ie=(e,t)=>({type:nH,translator:e,errorTranslator:t}),it=(e,t,n)=>({type:nz,locale:e,translator:t,errorTranslator:n}),ii=e=>({type:nY,uischema:e});var io=Object.freeze({__proto__:null,INIT:nE,UPDATE_CORE:nA,SET_AJV:nC,UPDATE_DATA:nT,UPDATE_ERRORS:nS,VALIDATE:nM,ADD_RENDERER:nL,REMOVE_RENDERER:nD,ADD_CELL:nO,REMOVE_CELL:nI,SET_CONFIG:nR,ADD_UI_SCHEMA:n$,REMOVE_UI_SCHEMA:nN,SET_SCHEMA:nP,SET_UISCHEMA:nY,SET_VALIDATION_MODE:nB,SET_LOCALE:nj,SET_TRANSLATOR:nH,UPDATE_I18N:nz,ADD_DEFAULT_DATA:nU,REMOVE_DEFAULT_DATA:nW,isUpdateArrayContext:nV,init:nG,updateCore:nq,registerDefaultData:nK,unregisterDefaultData:nX,setAjv:nJ,update:nQ,updateErrors:nZ,registerRenderer:n0,registerCell:n1,unregisterCell:n2,unregisterRenderer:n4,setConfig:n5,setValidationMode:n3,registerUISchema:n6,unregisterUISchema:n8,setLocale:n7,setSchema:n9,setTranslator:ie,updateI18n:it,setUISchema:ii});let ir=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nO:return e.concat([{tester:n,cell:i}]);case nI:return e.filter(e=>e.tester!==n);default:return e}},ia={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},is=(e={})=>e4()({},ia,e),il=(e=is(),t)=>t.type===nR?is(t.config):e,ic={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},id=(e,t)=>t&&iu(t.options)?t.options.validationMode:e.validationMode,iu=e=>!!e&&void 0!==e.validationMode,im=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},ih=(e,t)=>{if(t){if(ip(t.options))return t.options.ajv;else if(void 0!==t.options&&tt()(t.options.compile))return t.options}return e.ajv?e.ajv:nc()},ip=e=>!!e&&void 0!==e.ajv,ib=(e=ic,t)=>{switch(t.type){case nE:{let n=ih(e,t),i=id(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nd(o,t.data),a=im(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nA:{let n=ih(e,t),i=id(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nd(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nd(o,t.data));let a=im(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:e1()(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=nd(i,e.data);return{...e,validator:i,errors:o}}case nP:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nd(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nY:return{...e,uischema:t.uischema};case nT:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e3()(e.data)),i=nd(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eY()(e.data,t.path),o=t.updater(e3()(i));n=void 0!==o?e8()(t.path,o,void 0===e.data?{}:e.data):e9()(t.path,void 0===e.data?{}:e.data);let r=nd(e.validator,n);return{...e,data:n,errors:r}}case nS:return{...e,errors:t.errors};case nB:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nd(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nd(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 nU:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nW:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},i_=e=>iv(eY()(e,"jsonforms.defaultData")),iv=e=>e;(bG=g3||(g3={})).addTooltip="addTooltip",bG.addAriaLabel="addAriaLabel",bG.removeTooltip="removeTooltip",bG.upAriaLabel="upAriaLabel",bG.downAriaLabel="downAriaLabel",bG.noSelection="noSelection",bG.removeAriaLabel="removeAriaLabel",bG.noDataMessage="noDataMessage",bG.deleteDialogTitle="deleteDialogTitle",bG.deleteDialogMessage="deleteDialogMessage",bG.deleteDialogAccept="deleteDialogAccept",bG.deleteDialogDecline="deleteDialogDecline",bG.up="up",bG.down="down";let iy=[{key:g3.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:g3.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:g3.removeTooltip,default:()=>"Delete"},{key:g3.removeAriaLabel,default:()=>"Delete button"},{key:g3.upAriaLabel,default:()=>"Move item up"},{key:g3.up,default:()=>"Up"},{key:g3.down,default:()=>"Down"},{key:g3.downAriaLabel,default:()=>"Move item down"},{key:g3.noDataMessage,default:()=>"No data"},{key:g3.noSelection,default:()=>"No selection"},{key:g3.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:g3.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:g3.deleteDialogAccept,default:()=>"Yes"},{key:g3.deleteDialogDecline,default:()=>"No"}];(bq=g6||(g6={})).clearDialogTitle="clearDialogTitle",bq.clearDialogMessage="clearDialogMessage",bq.clearDialogAccept="clearDialogAccept",bq.clearDialogDecline="clearDialogDecline";let iw=[{key:g6.clearDialogTitle,default:()=>"Clear form?"},{key:g6.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:g6.clearDialogAccept,default:()=>"Yes"},{key:g6.clearDialogDecline,default:()=>"No"}],iF=(e,t)=>tG(t)?t.i18n:e?.i18n??void 0,ix=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",ik=(e,t,n)=>iF(e,t)??ix(n),iE=(e,t,n,i)=>`${ik(e,t,n)}.${i}`,iA=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iT=(e,t,n)=>{let i=t(iE(e.parentSchema,n,nf(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},iS=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(iE(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return n_(e.map(e=>t(e,n,o)))},iM=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tG(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iF(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iL=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iA(n,t.key);o[t.key]=e(r,t.default(i))}),o},iD=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iA(n,t.key);o[t.key]=e(r,t.default(i))}),o},iO=e=>{if(void 0!==e)return e.locale},iI=e=>void 0===e?iC:e.translate,iR=e=>void 0===e?iT:e.translateError,i$=e=>iO(eY()(e,"jsonforms.i18n")),iN=()=>e=>iI(eY()(e,"jsonforms.i18n")),iP=()=>e=>iR(eY()(e,"jsonforms.i18n")),iY={locale:"en",translate:iC,translateError:iT},iB=(e=iY,t)=>{switch(t.type){case nz:{let n=t.locale??iY.locale,i=t.translator??iY.translate,o=t.errorTranslator??iY.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nH:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iT};case nj:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},ij=(e=[],t)=>{switch(t.type){case nL:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nD:return e.filter(e=>e.tester!==t.tester);default:return e}},iH=-1,iz=e=>!eL()(e)&&void 0!==e.scope,iU=e=>(t,n,i)=>{if(eL()(t)||!iz(t)||eL()(n))return!1;let o=t.scope;if(eL()(o))return!1;let r=n;return no(n,"object")&&(r=tP(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iW=(e,t)=>(n,i,o)=>{if(eL()(n)||!iz(n))return!1;let r=n.scope,a=i;return no(i,"object")&&(a=tP(i,r,o?.rootSchema)),void 0!==(a=eY()(a,e))&&t(a,o?.rootSchema)},iV=e=>iU(t=>!eL()(t)&&no(t,e)),iG=e=>iU(t=>!eL()(t)&&t.format===e&&no(t,"string")),iq=e=>t=>!eL()(t)&&t.type===e,iK=(e,t)=>n=>{if(eL()(n))return!1;let i=n.options;return!eL()(i)&&i[e]===t},iX=e=>t=>{if(eL()(t))return!1;let n=t.options;return!eL()(n)&&!tp()(n[e])},iJ=e=>t=>!eL()(e)&&!!iz(t)&&ts()(t.scope,e),iQ=e=>t=>{if(eL()(e)||!iz(t))return!1;let n=t.scope;return!eL()(n)&&tc()(n.split("/"))===e},iZ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),i0=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),i1=(e,t)=>(n,i,o)=>t(n,i,o)?e:iH,i2=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return r===iH?iH:r+e},i4=iZ(iq("Control"),iV("boolean")),i5=iZ(iq("Control"),iV("object")),i3=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i6=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i8=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i7=iZ(iq("Control"),iU(e=>nt(e))),i9=iZ(iq("Control"),iU(e=>ne(e))),oe=iZ(iq("Control"),iV("integer")),ot=iZ(iq("Control"),iV("number")),on=iZ(iq("Control"),iV("string")),oi=iZ(iq("Control"),iK("multi",!0)),oo=iZ(iq("Control"),i0(iG("date"),iK("format","date"))),or=iZ(iq("Control"),i0(iG("time"),iK("format","time"))),oa=iZ(iq("Control"),i0(iG("date-time"),iK("format","date-time"))),os=iZ(iU((e,t)=>no(e,"array")&&!Array.isArray(tP(e,"items",t))),iW("items",(e,t)=>no(e.$ref?tP(t,e.$ref,t):e,"object"))),ol=iZ(iq("Control"),os),oc=(e,t,n)=>{if(eW()(e))return tu()(e,(e,i)=>e||oc(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tP(n,e.$ref,n);if(i&&!i.$ref)return oc(i,t,n)}return e.items?oc(e.items,t,n):!!e.properties&&tu()(th()(e.properties),(e,[i,o])=>e||oc(o,t,n),!1)},od=(e,t,n)=>{if(!iq("Control")(e,t,n))return!1;let i=tP(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(oc(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!ne(e)||no(e,"object")&&2==++o)||!!no(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},ou=ol,om=iZ(iq("Control"),iU((e,t)=>0!==nr(e).length&&!Array.isArray(tP(e,"items",t))),iW("items",(e,t)=>{let n=nr(e.$ref?tP(t,e.$ref,t):e);return 1===n.length&&eG()(["integer","number","boolean","string"],n[0])})),oh=iZ(iq("Control"),i0(iV("number"),iV("integer")),iU(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iK("slider",!0)),of=iZ(iq("Control"),iV("integer"),iK("format",!0)),op=e=>"Categorization"===e.type,ob=e=>"Category"===e.type,og=e=>!eL()(e.elements)&&e.elements.map(e=>op(e)?og(e):ob(e)).reduce((e,t)=>e&&t,!0),o_=e=>og(e),ov=e=>(t,n,i)=>!e(t,n,i);var oy=Object.freeze({__proto__:null,NOT_APPLICABLE:iH,isControl:iz,schemaMatches:iU,schemaSubPathMatches:iW,schemaTypeIs:iV,formatIs:iG,uiTypeIs:iq,optionIs:iK,hasOption:iX,scopeEndsWith:iJ,scopeEndIs:iQ,and:iZ,or:i0,rankWith:i1,withIncreasedRank:i2,isBooleanControl:i4,isObjectControl:i5,isAllOfControl:i3,isAnyOfControl:i6,isOneOfControl:i8,isEnumControl:i7,isOneOfEnumControl:i9,isIntegerControl:oe,isNumberControl:ot,isStringControl:on,isMultiLineControl:oi,isDateControl:oo,isTimeControl:or,isDateTimeControl:oa,isObjectArray:os,isObjectArrayControl:ol,isObjectArrayWithNesting:od,isArrayObjectControl:ou,isPrimitiveArrayControl:om,isRangeControl:oh,isNumberFormatControl:of,isCategorization:op,isCategory:ob,hasCategory:og,categorizationHasCategory:o_,not:ov});let ow=(e=[],t)=>{switch(t.type){case n$:return e.slice().concat({tester:t.tester,uischema:t.uischema});case nN:{let n=e.slice();return tr()(n,e=>e.tester===t.tester),n}default:return e}},oF=e=>(t,n,i)=>{let o=ti()(e,e=>e.tester(t,n,i));if(void 0!==o&&o.tester(t,n,i)!==iH)return o.uischema},ox={core:ib,renderers:ij,cells:ir,config:il,uischemas:ow,defaultData:ig,i18n:iB},ok=(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():nk.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=oF(e)(t,n,i);return void 0===s?"function"==typeof o?o():nk.uiSchema(t,o,"#",a):s},oE=(e,t,n)=>n(e,t),oA=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return np(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oC=(e,t)=>oA(e,t,t=>t===e),oT=(e,t)=>oA(e,t,t=>t.startsWith(e+".")),oS=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oM=(e,t)=>n=>oT(e,t)(n.jsonforms.core),oL=e=>oP(eY()(e,"jsonforms.core")),oD=e=>oY(eY()(e,"jsonforms.core")),oO=e=>oB(eY()(e,"jsonforms.core")),oI=e=>oj(eY()(e,"jsonforms.core")),oR=e=>eY()(e,"jsonforms.renderers"),o$=e=>eY()(e,"jsonforms.cells"),oN=e=>eY()(e,"jsonforms.uischemas"),oP=e=>eY()(e,"data"),oY=e=>eY()(e,"schema"),oB=e=>eY()(e,"uischema"),oj=e=>eY()(e,"ajv"),oH=e=>e.jsonforms.config,oz=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t6(n)?t7(n,o,t?.path,oI(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)),oU=(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]])},oW=(e,t)=>{oU(e,t,-1)},oV=(e,t)=>{oU(e,t,1)},oG=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oq=(e,t)=>e&&!t,oK=(e,t)=>{let n=oX(e,t);return void 0===n?{}:n},oX=(e,t)=>{let n="string"==typeof e.$ref?na.schema(t,e.$ref,t):e;if(void 0!==n.default)return oQ(n,t);if(no(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nn(new Date,n.format):"";if(no(n,"integer")||no(n,"number"))return 0;if(no(n,"boolean"))return!1;if(no(n,"array"))return[];if(no(n,"object"))return oQ(n,t);if(no(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oJ(e[n],t);if(void 0!==i)return i}},oJ=(e,t)=>{if(e.length>0)for(let n of e){let e=oX(n,t);if(void 0!==e)return e}},oQ=(e,t)=>{if(no(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?na.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e3()(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?na.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e3()(r.default))}}),n}return e3()(e.default)},oZ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,o0=(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}},o1=(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}},o2=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oL(e),d=tV(l,t.path),u=void 0===t.visible||t3(l)?t8(l,c,t.path,oI(e)):t.visible,m=t.id,h=oD(e),f=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tM((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=na.schema(n,a,h))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=na.schema(t.schema||h,l.scope,h),b=oS(d,p)(e),g=void 0!==p?p.description:"",_=na.data(c,d),v=tI(l,p),y=v.show?v.text:"",w=oH(e),F=oz(e,t,l,p||h,c,w),x=p??h,k=iN()(e),E=iP()(e),A=ik(x,l,d),C=k(iE(x,l,d,"label"),y,{schema:x,uischema:l,path:d,errors:b});return{data:_,description:k(iE(x,l,d,"description"),g,{schema:x,uischema:l,path:d,errors:b}),errors:iS(b,E,k,x,l,d),label:C,visible:u,enabled:F,id:m,path:d,required:f,uischema:l,schema:x,config:oH(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:A}},o4=e=>({handleChange(t,n){e(nQ(t,()=>n))}}),o5=(e,t)=>{let n=o2(e,t),i=t.options||n.schema.enum?.map(t=>o0(t,iN()(e),ik(n.schema,n.uischema,n.path)))||n.schema.const&&[o0(n.schema.const,iN()(e),ik(n.schema,n.uischema,n.path))];return{...n,options:i}},o3=(e,t)=>{let n=o2(e,t),i=t.options||n.schema.oneOf?.map(t=>o1(t,iN()(e),ik(n.schema,n.uischema,n.path)));return{...n,options:i}},o6=(e,t)=>{let n=o2(e,t),i=n.schema.items;i=i&&i.$ref?tP(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>o1(t,e.jsonforms.i18n?.translate,ik(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>o0(t,e.jsonforms.i18n?.translate,ik(n.schema,n.uischema,n.path)));return{...n,options:o}},o8=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tA(i,`${a}`),l=rm(oL(e),s,r,n,oD(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o7=(e,t)=>{let{...n}=o2(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o9=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o7(e,t),s=na.schema(i,"items",a.rootSchema),l=oM(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oR(e),cells:t.cells||o$(e)}},re=e=>({addItem:(t,n)=>()=>{e(nQ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nQ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nQ(t,e=>(oW(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nQ(t,e=>(oV(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),rt=e=>({addItem:(t,n)=>{e(nQ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nQ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),rn={visible:!0,enabled:!0,path:"",direction:"column"},ri=(e,t)=>{let n=oL(e),{uischema:i}=t,o=void 0===t.visible||t3(i)?t8(t.uischema,n,t.path,oI(e)):t.visible,r=na.data(n,t.path),a=oH(e),s=oz(e,t,i,void 0,n,a),l=iN()(e),c=tQ(i)?iM(i,l):void 0;return{...rn,renderers:t.renderers||oR(e),cells:t.cells||o$(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":rn.direction),config:a,label:c}},ro=(e,t)=>({renderers:t.renderers||eY()(e.jsonforms,"renderers"),cells:t.cells||eY()(e.jsonforms,"cells"),schema:t.schema||oD(e),rootSchema:oD(e),uischema:t.uischema||oO(e),path:t.path,enabled:t.enabled,config:oH(e)}),rr={...rn,errors:[]},ra=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o2(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=na.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:oN(e)}},rs=(e,t)=>ra(e,t,"allOf"),rl=(e,t)=>ra(e,t,"anyOf"),rc=(e,t)=>ra(e,t,"oneOf"),rd=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o7(e,t),l=na.schema(i,"items",s.rootSchema),c=iN()(e),d=iS(oM(n,l)(e),iP()(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}},ru=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t3(n)?t8(t.uischema,oL(e),t.path,oI(e)):t.visible,o=n.text,r=iN()(e),a=iF(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oH(e),renderers:t.renderers||oR(e),cells:t.cells||o$(e),uischema:n}},rm=(e,t,n,i,o,r,a)=>{let s,l=na.data(e,t);if(n||(n=t9(i)),!n)return"";let c=eY()(l,n);if(void 0===c)return"";let d=na.schema(i,"#"+tL(n),o);if(nt(d))s=o0(c,r,ik(d,tW(a,n),t+"."+n));else if(ne(d)){let e=d.oneOf.find(e=>e1()(e.const,c));e&&(s=o1(e,r,ik(e,void 0,t+"."+n)))}return s?s.label:c},rh=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oL(e),d=void 0!==t.visible?t.visible:t8(a,c,void 0,oI(e)),u=oD(e),m=oH(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oz(e,t,a,o||u,c,m));let h=iN()(e),f=iP()(e),p=iS(oS(r,o)(e),f,h,o,a,r),b=eL()(p);return{data:na.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:b,schema:o,uischema:a,config:oH(e),rootSchema:u,renderers:s,cells:l}},rf=(e,t)=>{let n=rh(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rp=(e,t)=>{let n=rh(e,t),i=t.options||n.schema.enum?.map(t=>o0(t,iN()(e),ik(n.schema,n.uischema,n.path)))||n.schema.const&&[o0(n.schema.const,iN()(e),ik(n.schema,n.uischema,n.path))];return{...n,options:i}},rb=(e,t)=>{let n=rh(e,t),i=t.options||n.schema.oneOf?.map(t=>o1(t,iN()(e),ik(n.schema,n.uischema,n.path)));return{...n,options:i}},rg=o4,r_=(e,t)=>{let{handleChange:n}=rg(e);return{handleChange:t.handleChange||n}},rv=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&na.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:ok(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),ry=e=>(...t)=>({_$litDirective$:e,values:t});class rw{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 rF=ry(class extends rw{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 en}}),{I:rx}={M:N,P:P,A:Y,C:1,L:es,R:ed,D:W,V:ec,I:eu,H:em,N:ef,U:ep,B:eh,F:eb},rk=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rk(e,t);return!0},rE=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rA=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),rS(t)}};function rC(e){void 0!==this._$AN?(rE(this),this._$AM=e,rA(this)):this._$AM=e}function rT(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++)rk(i[e],!1),rE(i[e]);else null!=i&&(rk(i,!1),rE(i));else rk(this,e)}let rS=e=>{2==e.type&&(e._$AP??=rT,e._$AQ??=rC)};class rM extends rw{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rA(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rk(this,e),rE(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 rL{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rD{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 rO=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rI=ry(class extends rM{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rL(this),this._$CX=new rD}render(...e){return e.find(e=>!rO(e))??en}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(!rO(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 en}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rR=function(e,t){return(rR=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 r$(e,t){function n(){this.constructor=e}rR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rN=function(){return(rN=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)},rP=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}(),rY=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 rP({}))},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 rB(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 rj(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rH(n,t))return n;n=n.parentElement}return null}function rH(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var 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 rU(e,t){function n(){this.constructor=e}rz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rW=function(){return(rW=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)},rV={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rG=function(e){function t(n){var i=e.call(this,rW(rW({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rV},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}(rP),rq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rU(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 rG({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}(rY),rK=function(e,t){return(rK=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 rX(e,t){function n(){this.constructor=e}rK(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rJ=function(){return(rJ=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)},rQ={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rZ=function(e){function t(n){var i=e.call(this,rJ(rJ({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rX(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rQ},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(rQ.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rQ.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rQ.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rQ.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rQ.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rQ.LINE_RIPPLE_DEACTIVATING))},t}(rP),r0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rX(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 rZ({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}(rY),r1=function(e,t){return(r1=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 r2(e,t){function n(){this.constructor=e}r1(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r4=function(){return(r4=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)},r5={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r3={NOTCH_ELEMENT_PADDING:8},r6={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r8=function(e){function t(n){return e.call(this,r4(r4({},t.defaultAdapter),n))||this}return r2(t,e),Object.defineProperty(t,"strings",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r6},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r3},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+=r3.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}(rP),r7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r2(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r5.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rG.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r6.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r6.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 r8({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}(rY),r9=function(e,t){return(r9=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 ae(e,t){function n(){this.constructor=e}r9(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var at=function(){return(at=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)},an={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"},ai={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"},ao={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ar=["touchstart","pointerdown","mousedown","keydown"],aa=["touchend","pointerup","mouseup","contextmenu"],as=[],al=function(e){function t(n){var i=e.call(this,at(at({},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 ae(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ai},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ao},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&&(ar.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_):aa.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ar.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_),aa.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&&as.length>0&&as.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(as.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){as=[],!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)},ao.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=at({},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}(rP),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return ae(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=g8;if("boolean"==typeof g8&&!t)return g8;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||(g8=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,rB())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rB())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rH(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rB())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rB())},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 al(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}(rY),ad={ROOT:"mdc-text-field-character-counter"},au={ROOT_SELECTOR:"."+ad.ROOT},am=function(e){function t(n){return e.call(this,rN(rN({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ad},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return au},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}(rP),ah=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 am({setContent:function(t){e.root.textContent=t}})},t}(rY),af={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"},ap={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"},ab={LABEL_SCALE:.75},ag=["pattern","min","max","required","step","minlength","maxlength"],a_=["color","date","datetime-local","month","range","time","week"],av=["mousedown","touchstart"],ay=["click","keydown"],aw=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rN(rN({},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 r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ap},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ab},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return a_.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_),av.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),ay.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_),av.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),ay.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 ag.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()*ab.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(af.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(af.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}(rP),aF={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"},ax={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+aF.ROOT},ak=function(e){function t(n){return e.call(this,rN(rN({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aF},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ax},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(ax.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(aF.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(aF.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(aF.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(aF.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(aF.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(aF.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(ax.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(aF.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(aF.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(ax.ROLE,"alert")):this.adapter.removeAttr(ax.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(ax.ARIA_HIDDEN,"true")},t}(rP),aE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 ak({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}(rY),aA={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aC={ROOT:"mdc-text-field__icon"},aT=["click","keydown"],aS=function(e){function t(n){var i=e.call(this,rN(rN({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return r$(t,e),Object.defineProperty(t,"strings",{get:function(){return aA},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aC},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"),aT.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aT.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",aA.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}(rP),aM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 aS({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(aS.strings.ICON_EVENT,{},!0)}})},t}(rY),aL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 ac(e,t)}),void 0===t&&(t=function(e){return new r0(e)}),void 0===n&&(n=function(e){return new aE(e)}),void 0===i&&(i=function(e){return new ah(e)}),void 0===o&&(o=function(e){return new aM(e)}),void 0===r&&(r=function(e){return new rq(e)}),void 0===a&&(a=function(e){return new r7(e)}),this.input_=this.root.querySelector(af.INPUT_SELECTOR);var s=this.root.querySelector(af.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(af.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(af.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=ak.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(ap.HELPER_LINE),h=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=h?n(h):null;var f=am.strings,p=this.root.querySelector(f.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(f.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var b=this.root.querySelector(af.LEADING_ICON_SELECTOR);this.leadingIcon_=b?o(b):null;var g=this.root.querySelector(af.TRAILING_ICON_SELECTOR);this.trailingIcon_=g?o(g):null,this.prefix_=this.root.querySelector(af.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(af.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 aw(rN(rN(rN(rN(rN({},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,rB())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rB())}}},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(ap.TEXTAREA),i=this.root.classList.contains(ap.OUTLINED);if(n||i)return null;var o=rN(rN({},ac.createAdapter(this)),{isSurfaceActive:function(){return rH(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rB())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rB())}});return e(this.root,new al(o))},t}(rY),aD=function(e,t){return(aD=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 aO(e,t){function n(){this.constructor=e}aD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aI=function(){return(aI=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)},aR={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},a$={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 aN(e){return!!e.document&&"function"==typeof e.document.createElement}function aP(e,t){if(aN(e)&&t in aR){var n=e.document.createElement("div"),i=aR[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aY(e,t){if(aN(e)&&t in a$){var n=e.document.createElement("div"),i=a$[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aB={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"},aj={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"},aH={ANIM_END_LATCH_MS:250},az=function(e){function t(n){var i=e.call(this,aI(aI({},t.defaultAdapter),n))||this;return i.currentCheckState_=aj.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aj},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aH},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(aB.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aB.DISABLED):this.adapter.removeClass(aB.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},aH.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=aj.TRANSITION_STATE_UNCHECKED,i=aB.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=aj.TRANSITION_STATE_INDETERMINATE,t=aj.TRANSITION_STATE_CHECKED,n=aj.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aj.TRANSITION_STATE_INIT,o=aj.TRANSITION_STATE_CHECKED,r=aj.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(aj.ARIA_CHECKED_ATTR,aj.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aj.ARIA_CHECKED_ATTR)},t}(rP),aU=["checked","indeterminate"],aW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aO(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=aj.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(aY(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aY(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new az({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=aI(aI({},ac.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rH(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rB())}});return new ac(this.root,new al(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aU.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aV(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);aU.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aV(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aj.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}(rY);function aV(e){return!!e&&"function"==typeof e.set}var aG=function(e,t){return(aG=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 aq(e,t){function n(){this.constructor=e}aG(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aK=function(){return(aK=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)},aX={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aJ={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aQ=function(e){function t(n){return e.call(this,aK(aK({},t.defaultAdapter),n))||this}return aq(t,e),Object.defineProperty(t,"strings",{get:function(){return aJ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aX},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(aX.DISABLED):this.adapter.removeClass(aX.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(aX.CHECKED):this.adapter.removeClass(aX.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aJ.ARIA_CHECKED_ATTR,""+!!e)},t}(rP),aZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aq(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 aQ({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=aQ.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aK(aK({},ac.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rH(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rB())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new ac(this.root,new al(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aQ.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rY),a0=function(e,t){return(a0=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 a1(e,t){function n(){this.constructor=e}a0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a2=function(){return(a2=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)},a4="mdc-slider--disabled",a5="mdc-slider__thumb",a3="mdc-slider__thumb--top",a6="mdc-slider__thumb--with-indicator",a8="mdc-slider__tick-marks",a7="mdc-slider__tick-mark--active",a9="mdc-slider__tick-mark--inactive",se="disabled",st="value",sn="step";(bK=g7||(g7={}))[bK.ACTIVE=0]="ACTIVE",bK[bK.INACTIVE=1]="INACTIVE",(bX=g9||(g9={}))[bX.START=1]="START",bX[bX.END=2]="END";var si="u">typeof window,so=function(e){function t(n){var i=e.call(this,a2(a2({},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 a1(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(a4),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?g9.START:g9.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",g9.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(st,g9.END),st),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(st,g9.START),st):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(sn,g9.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,sn)),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(g9.START)},this.inputEndChangeListener=function(){e.handleInputChange(g9.END)},this.inputStartFocusListener=function(){e.handleInputFocus(g9.START)},this.inputEndFocusListener=function(){e.handleInputFocus(g9.END)},this.inputStartBlurListener=function(){e.handleInputBlur(g9.START)},this.inputEndBlurListener=function(){e.handleInputBlur(g9.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,g9.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,g9.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(a4),this.isRange&&this.adapter.setInputAttribute(se,"",g9.START),this.adapter.setInputAttribute(se,"",g9.END)):(this.adapter.removeClass(a4),this.isRange&&this.adapter.removeInputAttribute(se,g9.START),this.adapter.removeInputAttribute(se,g9.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(g9.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(g9.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===g9.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===g9.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(a6,g9.START),this.adapter.addThumbClass(a6,g9.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(g9.START)||this.adapter.isInputFocused(g9.END)||(this.adapter.removeThumbClass(a6,g9.START),this.adapter.removeThumbClass(a6,g9.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===g9.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a6,e),this.isRange)){var t=e===g9.START?g9.END:g9.START;this.adapter.addThumbClass(a6,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a6,e),this.isRange)){var t=e===g9.START?g9.END:g9.START;this.adapter.removeThumbClass(a6,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 g9.END;var n=this.adapter.getThumbBoundingClientRect(g9.START),i=this.adapter.getThumbBoundingClientRect(g9.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?g9.START:r?g9.END:t<this.valueStart?g9.START:t>this.value?g9.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()?g9.END:g9.START:this.adapter.isRTL()?g9.START:g9.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===g9.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(st,n,e),this.isRange&&e===g9.START?this.adapter.setInputAttribute("min",n,g9.END):this.isRange&&e===g9.END&&this.adapter.setInputAttribute("max",n,g9.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===g9.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===g9.START?g9.START:g9.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,g9.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(g7.INACTIVE),o=Array.from({length:t}).fill(g7.ACTIVE),r=Array.from({length:n}).fill(g7.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===g9.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===g9.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===g9.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===g9.START&&e>this.value)?this.value:this.isRange&&t===g9.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=si?aP(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===g9.START||a&&e!==g9.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!==g9.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",g9.START),e!==g9.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",g9.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)",g9.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,g9.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,g9.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=si?aP(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,g9.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,g9.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,g9.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,g9.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(a3,n||g9.END),this.adapter.removeThumbClass(a3,n===g9.START?g9.END:g9.START)):(this.adapter.removeThumbClass(a3,g9.START),this.adapter.removeThumbClass(a3,g9.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(g9.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g9.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g9.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(g9.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(g9.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(g9.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g9.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g9.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(g9.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(g9.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(g9.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g9.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g9.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(g9.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(g9.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(g9.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g9.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g9.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(g9.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(g9.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=si&&!!window.PointerEvent,t}(rP),sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return a1(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 so({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("."+a8);n||((n=document.createElement("div")).classList.add(a8),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("."+a5)),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===g9.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===g9.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===g9.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]===g7.ACTIVE?a7:a9;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]===g7.ACTIVE?(n[i].classList.add(a7),n[i].classList.remove(a9)):(n[i].classList.add(a9),n[i].classList.remove(a7))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a5)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a2(a2({},ac.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 rH(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 ac(o,new al(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rY),sa=function(e,t){return(sa=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 ss(e,t){function n(){this.constructor=e}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sl=function(){return(sl=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)},sc={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"},sd={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"])'},su={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(bJ=_e||(_e={}))[bJ.BOTTOM=1]="BOTTOM",bJ[bJ.CENTER=2]="CENTER",bJ[bJ.RIGHT=4]="RIGHT",bJ[bJ.FLIP_RTL=8]="FLIP_RTL",(bQ=_t||(_t={}))[bQ.TOP_LEFT=0]="TOP_LEFT",bQ[bQ.TOP_RIGHT=4]="TOP_RIGHT",bQ[bQ.BOTTOM_LEFT=1]="BOTTOM_LEFT",bQ[bQ.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",bQ[bQ.TOP_START=8]="TOP_START",bQ[bQ.TOP_END=12]="TOP_END",bQ[bQ.BOTTOM_START=9]="BOTTOM_START",bQ[bQ.BOTTOM_END=13]="BOTTOM_END";var sm=function(e,t){return(sm=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 sh(e,t){function n(){this.constructor=e}sm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sf=function(){return(sf=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)},sp=function(e,t){return(sp=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 sb(e,t){function n(){this.constructor=e}sp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sg=function(){return(sg=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)},s_={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"},sv={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 ."+s_.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+s_.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+s_.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+s_.LIST_ITEM_CLASS+" a,\n ."+s_.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+s_.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},sy={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sw="Backspace",sF="Enter",sx="Spacebar",sk="PageUp",sE="PageDown",sA="Home",sC="ArrowLeft",sT="ArrowUp",sS="ArrowRight",sM="ArrowDown",sL="Delete",sD="Escape",sO=new Set;sO.add(sw),sO.add(sF),sO.add(sx),sO.add(sk),sO.add(sE),sO.add("End"),sO.add(sA),sO.add(sC),sO.add(sT),sO.add(sS),sO.add(sM),sO.add(sL),sO.add(sD);var sI=new Map;sI.set(8,sw),sI.set(13,sF),sI.set(32,sx),sI.set(33,sk),sI.set(34,sE),sI.set(35,"End"),sI.set(36,sA),sI.set(37,sC),sI.set(38,sT),sI.set(39,sS),sI.set(40,sM),sI.set(46,sL),sI.set(27,sD);var sR=new Set;function s$(e){var t=e.key;if(sO.has(t))return t;var n=sI.get(e.keyCode);return n||"Unknown"}sR.add(sk),sR.add(sE),sR.add("End"),sR.add(sA),sR.add(sC),sR.add(sT),sR.add(sS),sR.add(sM);var sN=["input","button","textarea","select"],sP=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sN.indexOf(n)&&e.preventDefault()}};function sY(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(){sj(t)},sy.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 sB(e){return e.typeaheadBuffer.length>0}function sj(e){e.typeaheadBuffer=""}function sH(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===s$(n),c="ArrowUp"===s$(n),d="ArrowRight"===s$(n),u="ArrowDown"===s$(n),m="Home"===s$(n),h="End"===s$(n),f="Enter"===s$(n),p="Spacebar"===s$(n);if(l||c||d||u||m||h||f)return -1;if(!p&&1===n.key.length){sP(n);var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sY(b,t)}if(!p)return -1;if(i&&sP(n),i&&sB(t)){var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sY(b,t)}return -1}var sz=function(e){function t(n){var i=e.call(this,sg(sg({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=sy.UNSET_INDEX,i.focusedItemIndex=sy.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 sb(t,e),Object.defineProperty(t,"strings",{get:function(){return sv},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return s_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sy},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,s_.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,s_.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&&sB(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"===s$(e),r="ArrowUp"===s$(e),a="ArrowRight"===s$(e),s="ArrowDown"===s$(e),l="Home"===s$(e),c="End"===s$(e),d="Enter"===s$(e),u="Spacebar"===s$(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,s_.LIST_ITEM_DISABLED_CLASS)}};sH(h,this.typeaheadState)}return}var f=this.adapter.getFocusedElementIndex();if(-1!==f||!((f=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)sP(e),this.focusNextElement(f);else if(this.isVertical_&&r||!this.isVertical_&&o)sP(e),this.focusPrevElement(f);else if(l)sP(e),this.focusFirstElement();else if(c)sP(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===sy.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(sP(e),this.adapter.listItemAtIndexHasClass(f,s_.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,s_.LIST_ITEM_DISABLED_CLASS)}};sH(h,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===sy.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,s_.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,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sv.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sv.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=s_.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=s_.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==sy.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==sy.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===sy.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sv.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sv.ARIA_CURRENT:sv.ARIA_SELECTED;if(this.selectedIndex_!==sy.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==sy.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sv.ARIA_SELECTED:sv.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==sy.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===sy.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!==sy.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_!==sy.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===sy.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_===sy.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,s_.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),sY({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,s_.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(){sj(this.typeaheadState)},t}(rP),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sb(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("."+s_.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(sv.ARIA_ORIENTATION);this.vertical=e!==sv.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(sv.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+s_.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+s_.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sv.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sv.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sv.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 sz({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(sv.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sv.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sv.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(sv.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(sv.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(sv.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rj(e.target,"."+s_.LIST_ITEM_CLASS+", ."+s_.ROOT);return t&&rH(t,"."+s_.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(s_.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rH(e.target,sv.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rY),sW=function(e,t){return(sW=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 sV(e,t){function n(){this.constructor=e}sW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sG=function(){return(sG=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)},sq=function(e){function t(n){var i=e.call(this,sG(sG({},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=_t.TOP_START,i.originCorner=_t.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sV(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sd},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return su},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return _t},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^_e.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()},su.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()},su.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,_e.BOTTOM)?"bottom":"top",r=this.hasBit(n,_e.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>su.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,_e.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,_e.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,_e.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,_e.FLIP_RTL),h=this.hasBit(this.anchorCorner,_e.RIGHT)||this.hasBit(r,_e.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,b=o-c.width>0,g=this.hasBit(r,_e.FLIP_RTL)&&this.hasBit(r,_e.RIGHT);return b&&g&&u||!p&&g?r=this.unsetBit(r,_e.RIGHT):(p&&f&&u||p&&!f&&h||!b&&i>=o)&&(r=this.setBit(r,_e.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,_e.BOTTOM),r=this.hasBit(this.anchorCorner,_e.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,_e.RIGHT),i=this.hasBit(this.anchorCorner,_e.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,_e.BOTTOM),i=this.hasBit(this.anchorCorner,_e.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}(rP),sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sV(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(sc.ANCHOR)?t:null,this.root.classList.contains(sc.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(sd.OPENED_EVENT,this.registerBodyClickListener),this.listen(sd.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sd.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sd.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(sc.FIXED):this.root.classList.remove(sc.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 sq({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(sq.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sq.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===_n||i)&&(_n="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),_n+"-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}(rY),sX={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sJ={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sQ={FOCUS_ROOT_INDEX:-1};(bZ=_i||(_i={}))[bZ.NONE=0]="NONE",bZ[bZ.LIST_ROOT=1]="LIST_ROOT",bZ[bZ.FIRST_ITEM=2]="FIRST_ITEM",bZ[bZ.LAST_ITEM=3]="LAST_ITEM";var sZ=function(e){function t(n){var i=e.call(this,sf(sf({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=_i.LIST_ROOT,i}return sh(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sJ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sQ},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)},sq.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case _i.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case _i.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case _i.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,sJ.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sX.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sX.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sJ.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sJ.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sJ.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}(rP),s0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sh(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sK(e)}),void 0===t&&(t=function(e){return new sU(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(sJ.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(sq.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sz.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sq.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sz.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:sy.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 sZ({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(sJ.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(sJ.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rj(e.items[t],"."+sX.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rj(e.items[t],"."+sX.MENU_SELECTION_GROUP).querySelector("."+sX.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rY),s1={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"},s2={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"},s4={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s5=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sl(sl({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s4.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return ss(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s2},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===s4.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!==s4.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(s1.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(s1.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(s1.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(s1.FOCUSED),n=e||t,i=this.adapter.hasClass(s1.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(s1.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(s1.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(s1.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(s1.FOCUSED)){var t=s$(e)===sF,n=s$(e)===sx,i=s$(e)===sT,o=s$(e)===sM;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(s1.FOCUSED);if(e){var n=s4.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(s1.INVALID),this.adapter.removeMenuClass(s1.MENU_INVALID)):(this.adapter.addClass(s1.INVALID),this.adapter.addMenuClass(s1.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(s1.REQUIRED)&&!this.adapter.hasClass(s1.DISABLED)?this.getSelectedIndex()!==s4.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(s1.REQUIRED):this.adapter.removeClass(s1.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(_t.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(s1.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(s1.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(s1.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(s1.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(s2.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s2.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s4.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(rP),s3={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s6={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s8=function(e){function t(n){return e.call(this,sl(sl({},t.defaultAdapter),n))||this}return ss(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s6},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s3},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(s3.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s6.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s6.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s6.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s3.ROLE):this.adapter.setAttr(s3.ROLE,"alert");return}this.adapter.removeAttr(s3.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s3.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s3.ARIA_HIDDEN,"true")},t}(rP),s7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 s8({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}(rY),s9={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},le=["click","keydown"],lt=function(e){function t(n){var i=e.call(this,sl(sl({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return ss(t,e),Object.defineProperty(t,"strings",{get:function(){return s9},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"),le.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;le.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",s9.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}(rP),ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 lt({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(lt.strings.ICON_EVENT,{},!0)}})},t}(rY),li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 rq(e)}),void 0===t&&(t=function(e){return new r0(e)}),void 0===n&&(n=function(e){return new r7(e)}),void 0===i&&(i=function(e){return new s0(e)}),void 0===o&&(o=function(e){return new ln(e)}),void 0===r&&(r=function(e){return new s7(e)}),this.selectAnchor=this.root.querySelector(s2.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s2.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s2.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s2.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s2.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s2.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s2.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s2.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s2.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s2.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(s1.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(sd.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sd.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sJ.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(sd.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sd.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sJ.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(s2.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s5(sl(sl(sl(sl({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s2.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(s2.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sl(sl({},ac.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new ac(this.selectAnchor,new al(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(s2.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(s2.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}(rY),lo=function(e,t){return(lo=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 lr(e,t){function n(){this.constructor=e}lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var la=function(){return(la=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)},ls={ROOT:"mdc-form-field"},ll={LABEL_SELECTOR:".mdc-form-field > label"},lc=function(e){function t(n){var i=e.call(this,la(la({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return lr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ls},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ll},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}(rP),ld=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=lc.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new lc({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}(rY),lu=function(e,t){return(lu=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 lm(e,t){function n(){this.constructor=e}lu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lh=function(){return(lh=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)},lf={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lp={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"},lb=function(e){function t(n){var i=e.call(this,lh(lh({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return lm(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lf},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lp},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(lp.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lp.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lp.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(lp.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(lf.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lf.ICON_BUTTON_ON):this.adapter.removeClass(lf.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lp.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lp.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lp.ARIA_LABEL,t||"")}else this.adapter.setAttr(lp.ARIA_PRESSED,""+e)},t}(rP),lg=lb.strings,l_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return lm(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 lb({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lg.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 ac(this.root);return e.unbounded=!0,e},t}(rY);n(44532),(b0=_o||(_o={})).CREATE="CREATE",b0.UPDATE="UPDATE",b0.DELETE="DELETE",(b1=_r||(_r={})).LOW="LOW",b1.MEDIUM="MEDIUM",b1.HIGH="HIGH",(b2=_a||(_a={})).MANUAL="MANUAL",b2.CLIENT="CLIENT",b2.GLOBAL_RULESET="GLOBAL_RULESET",b2.REALM_RULESET="REALM_RULESET",b2.ASSET_RULESET="ASSET_RULESET",b2.AGENT="AGENT",(b4=_s||(_s={})).OPEN="OPEN",b4.ACKNOWLEDGED="ACKNOWLEDGED",b4.IN_PROGRESS="IN_PROGRESS",b4.RESOLVED="RESOLVED",b4.CLOSED="CLOSED",(b5=_l||(_l={})).BOTTOM_LEFT="BOTTOM_LEFT",b5.BOTTOM_RIGHT="BOTTOM_RIGHT",b5.TOP_LEFT="TOP_LEFT",b5.TOP_RIGHT="TOP_RIGHT",(b3=_c||(_c={})).CREATE="CREATE",b3.READ="READ",b3.UPDATE="UPDATE",b3.DELETE="DELETE",(b6=_d||(_d={})).NONE="NONE",b6.FORECAST="FORECAST",b6.SETPOINT="SETPOINT",(b8=_u||(_u={})).DISCONNECTED="DISCONNECTED",b8.CONNECTING="CONNECTING",b8.DISCONNECTING="DISCONNECTING",b8.CONNECTED="CONNECTED",b8.DISABLED="DISABLED",b8.WAITING="WAITING",b8.ERROR="ERROR",b8.STOPPED="STOPPED",(b7=_m||(_m={})).REQUEST_START="REQUEST_START",b7.REQUEST_REPEATING="REQUEST_REPEATING",b7.REQUEST_CANCEL="REQUEST_CANCEL",b7.READY="READY",b7.COMPLETED="COMPLETED",b7.RUNNING="RUNNING",b7.CANCELLED="CANCELLED",(b9=_h||(_h={})).TOGGLE="TOGGLE",b9.INCREMENT="INCREMENT",b9.DECREMENT="DECREMENT",b9.NEGATE="NEGATE",(ge=_f||(_f={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",ge.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",ge.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",ge.INVALID_VALUE="INVALID_VALUE",ge.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",ge.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",ge.CANNOT_PROCESS="CANNOT_PROCESS",ge.QUEUE_FULL="QUEUE_FULL",ge.UNKNOWN="UNKNOWN",ge.ASSET_ID_MISSING="ASSET_ID_MISSING",ge.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(gt=_p||(_p={})).PUBLIC="PUBLIC",gt.SHARED="SHARED",gt.PRIVATE="PRIVATE",(gn=_b||(_b={})).OFF="OFF",gn.ONE_MIN="ONE_MIN",gn.FIVE_MIN="FIVE_MIN",gn.QUARTER="QUARTER",gn.ONE_HOUR="ONE_HOUR",(gi=_g||(_g={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",gi.KEEP_LAYOUT="KEEP_LAYOUT",gi.REDIRECT="REDIRECT",gi.BLOCK_DEVICE="BLOCK_DEVICE",(go=__||(__={})).CSV="CSV",go.CSV_CROSSTAB="CSV_CROSSTAB",go.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(gr=_v||(_v={})).MINUTE="MINUTE",gr.HOUR="HOUR",gr.DAY="DAY",gr.WEEK="WEEK",gr.MONTH="MONTH",gr.YEAR="YEAR",(ga=_y||(_y={})).MIN="MIN",ga.AVG="AVG",ga.MAX="MAX",ga.DIFFERENCE="DIFFERENCE",ga.COUNT="COUNT",ga.SUM="SUM",ga.MODE="MODE",ga.MEDIAN="MEDIAN",(gs=_w||(_w={})).TERMINATING="TERMINATING",gs.DISABLED="DISABLED",gs.ALREADY_CONNECTED="ALREADY_CONNECTED",gs.UNRECOGNISED="UNRECOGNISED",gs.PERMANENT_ERROR="PERMANENT_ERROR",gs.SYNC_ERROR="SYNC_ERROR",(gl=_F||(_F={})).HTTPS="HTTPS",gl.HTTP="HTTP",gl.TCP="TCP",(gc=_x||(_x={})).GET="GET",gc.POST="POST",gc.PUT="PUT",gc.DELETE="DELETE",gc.OPTIONS="OPTIONS",gc.PATCH="PATCH",(gd=_k||(_k={})).KEYCLOAK="KEYCLOAK",gd.NONE="NONE",(gu=_E||(_E={})).WEBSOCKET="WEBSOCKET",gu.POLLING="POLLING",(gm=_A||(_A={})).INTERNAL="INTERNAL",gm.CLIENT="CLIENT",gm.GLOBAL_RULESET="GLOBAL_RULESET",gm.REALM_RULESET="REALM_RULESET",gm.ASSET_RULESET="ASSET_RULESET",(gh=_C||(_C={})).REALM="REALM",gh.USER="USER",gh.ASSET="ASSET",gh.CUSTOM="CUSTOM",(gf=_T||(_T={})).NORMAL="NORMAL",gf.HIGH="HIGH",(gp=_S||(_S={})).DEVICE="DEVICE",gp.TOPIC="TOPIC",gp.CONDITION="CONDITION",(gb=_M||(_M={})).ALWAYS="ALWAYS",gb.ONCE="ONCE",gb.HOURLY="HOURLY",gb.DAILY="DAILY",gb.WEEKLY="WEEKLY",gb.MONTHLY="MONTHLY",gb.ANNUALLY="ANNUALLY",(gg=_L||(_L={})).TITLE="TITLE",gg.SOURCE="SOURCE",gg.STATUS="STATUS",gg.SENT_ON="SENT_ON",gg.DELIVERED_ON="DELIVERED_ON",(g_=_D||(_D={})).MESSAGE_INVALID="MESSAGE_INVALID",g_.CERTIFICATE_INVALID="CERTIFICATE_INVALID",g_.UNAUTHORIZED="UNAUTHORIZED",g_.FORBIDDEN="FORBIDDEN",g_.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",g_.CONFIG_DISABLED="CONFIG_DISABLED",g_.USER_DISABLED="USER_DISABLED",g_.SERVER_ERROR="SERVER_ERROR",g_.ASSET_ERROR="ASSET_ERROR",g_.SERVER_BUSY="SERVER_BUSY",(gv=_O||(_O={})).PRIVATE="PRIVATE",gv.PROTECTED="PROTECTED",gv.PUBLIC="PUBLIC",(gy=_I||(_I={})).EXACT="EXACT",gy.BEGIN="BEGIN",gy.END="END",gy.CONTAINS="CONTAINS",(gw=_R||(_R={})).EQUALS="EQUALS",gw.GREATER_THAN="GREATER_THAN",gw.GREATER_EQUALS="GREATER_EQUALS",gw.LESS_THAN="LESS_THAN",gw.LESS_EQUALS="LESS_EQUALS",gw.BETWEEN="BETWEEN",(gF=_$||(_$={})).CREATED_ON="CREATED_ON",gF.NAME="NAME",gF.ASSET_TYPE="ASSET_TYPE",gF.PARENT_ID="PARENT_ID",gF.REALM="REALM",(gx=_N||(_N={})).RESTRICTED="RESTRICTED",gx.LINKED="LINKED",gx.REALM="REALM",(gk=_P||(_P={})).AT_LEAST_ONE="AT_LEAST_ONE",gk.ALL="ALL",gk.NONE="NONE",(gE=_Y||(_Y={})).AND="AND",gE.OR="OR",(gA=_B||(_B={})).CREATED_ON="CREATED_ON",gA.FIRST_NAME="FIRST_NAME",gA.LAST_NAME="LAST_NAME",gA.USERNAME="USERNAME",gA.EMAIL="EMAIL",(gC=_j||(_j={})).STOPPED="STOPPED",gC.RUNNING="RUNNING",gC.ERROR="ERROR",(gT=_H||(_H={})).JAVASCRIPT="JAVASCRIPT",gT.GROOVY="GROOVY",gT.JSON="JSON",gT.FLOW="FLOW",(gS=_z||(_z={})).READY="READY",gS.DEPLOYED="DEPLOYED",gS.COMPILATION_ERROR="COMPILATION_ERROR",gS.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",gS.EXECUTION_ERROR="EXECUTION_ERROR",gS.LOOP_ERROR="LOOP_ERROR",gS.DISABLED="DISABLED",gS.PAUSED="PAUSED",gS.EXPIRED="EXPIRED",gS.REMOVED="REMOVED",gS.EMPTY="EMPTY",(gM=_U||(_U={})).SUNRISE="SUNRISE",gM.SUNSET="SUNSET",gM.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",gM.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",gM.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",gM.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",gM.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",gM.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",gM.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",gM.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",gM.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",gM.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",gM.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",gM.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",gM.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",gM.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",gM.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",gM.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",gM.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",gM.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(gL=_W||(_W={})).NUMBER="NUMBER",gL.NUMBER_ARRAY="NUMBER_ARRAY",gL.STRING="STRING",gL.BOOLEAN="BOOLEAN",gL.TRIGGER="TRIGGER",gL.COLOR="COLOR",gL.ANY="ANY",(gD=_V||(_V={})).NEW_LINE="NEW_LINE",gD.SPACER="SPACER",(gO=_G||(_G={})).INPUT="INPUT",gO.PROCESSOR="PROCESSOR",gO.OUTPUT="OUTPUT",gO.THEN="THEN",(gI=_q||(_q={})).TEXT="TEXT",gI.MULTILINE="MULTILINE",gI.NUMBER="NUMBER",gI.DROPDOWN="DROPDOWN",gI.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",gI.CHECKBOX="CHECKBOX",gI.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",gI.COLOR="COLOR",gI.DATE="DATE",(gR=_K||(_K={})).ADD="ADD",gR.ADD_OR_REPLACE="ADD_OR_REPLACE",gR.REPLACE="REPLACE",gR.DELETE="DELETE",gR.CLEAR="CLEAR",(g$=_X||(_X={})).PER_ASSET="PER_ASSET",g$.GLOBAL="GLOBAL",(gN=_J||(_J={})).READ_ADMIN="read:admin",gN.READ_LOGS="read:logs",gN.READ_USERS="read:users",gN.READ_MAP="read:map",gN.READ_ASSETS="read:assets",gN.READ_RULES="read:rules",gN.READ_INSIGHTS="read:insights",gN.READ_ALARMS="read:alarms",gN.READ_NOTIFICATIONS="read:notifications",gN.READ_SERVICES="read:services",gN.WRITE_SERVICES="write:services",gN.WRITE_USER="write:user",gN.WRITE_ADMIN="write:admin",gN.WRITE_LOGS="write:logs",gN.WRITE_ASSETS="write:assets",gN.WRITE_ATTRIBUTES="write:attributes",gN.WRITE_RULES="write:rules",gN.WRITE_INSIGHTS="write:insights",gN.WRITE_ALARMS="write:alarms",gN.WRITE_NOTIFICATIONS="write:notifications",gN.READ="read",gN.WRITE="write",(gP=_Q||(_Q={})).REGISTER="REGISTER",gP.UPDATE="UPDATE",gP.DEREGISTER="DEREGISTER",(gY=_Z||(_Z={})).AVAILABLE="AVAILABLE",gY.UNAVAILABLE="UNAVAILABLE",(gB=_0||(_0={})).ASSET="ASSET",gB.AGENT="AGENT",gB.NOTIFICATION="NOTIFICATION",gB.ALARM="ALARM",gB.RULES="RULES",gB.PROTOCOL="PROTOCOL",gB.GATEWAY="GATEWAY",gB.MODEL_AND_VALUES="MODEL_AND_VALUES",gB.API="API",gB.DATA="DATA",(gj=_1||(_1={})).INFO="INFO",gj.WARN="WARN",gj.ERROR="ERROR",(gH=_2||(_2={})).NUMERIC="numeric",gH.DIGIT_2="2-digit",gH.FULL="full",gH.LONG="long",gH.MEDIUM="medium",gH.SHORT="short",gH.NARROW="narrow",(gz=_4||(_4={})).SECONDLY="SECONDLY",gz.MINUTELY="MINUTELY",gz.HOURLY="HOURLY",gz.DAILY="DAILY",gz.WEEKLY="WEEKLY",gz.MONTHLY="MONTHLY",gz.YEARLY="YEARLY",(gU=_5||(_5={})).OMIT="OMIT",gU.BACKWARD="BACKWARD",gU.FORWARD="FORWARD",(gW=_3||(_3={})).JAPANESE="JAPANESE",gW.BUDDHIST="BUDDHIST",gW.ROC="ROC",gW.ISLAMIC="ISLAMIC",gW.ISO8601="ISO8601",gW.CHINESE="CHINESE",gW.ETHIOPIC="ETHIOPIC",gW.HEBREW="HEBREW",gW.GREGORIAN="GREGORIAN",(gV=_6||(_6={})).SU="SU",gV.MO="MO",gV.TU="TU",gV.WE="WE",gV.TH="TH",gV.FR="FR",gV.SA="SA",(gG=_8||(_8={})).PEOPLECOUNTERASSET="PeopleCounterAsset",gG.MAILAGENT="MailAgent",gG.UDPAGENT="UDPAgent",gG.ROOMASSET="RoomAsset",gG.CITYASSET="CityAsset",gG.VENTILATIONASSET="VentilationAsset",gG.TRADFRILIGHTASSET="TradfriLightAsset",gG.CONSOLEASSET="ConsoleAsset",gG.PRESENCESENSORASSET="PresenceSensorAsset",gG.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",gG.LIGHTASSET="LightAsset",gG.KNXAGENT="KNXAgent",gG.THETHINGSSTACKAGENT="TheThingsStackAgent",gG.PLUGASSET="PlugAsset",gG.CHIRPSTACKAGENT="ChirpStackAgent",gG.WEATHERASSET="WeatherAsset",gG.THINGASSET="ThingAsset",gG.WEBSOCKETAGENT="WebsocketAgent",gG.TCPAGENT="TCPAgent",gG.GATEWAYASSET="GatewayAsset",gG.SERIALAGENT="SerialAgent",gG.BLUETOOTHMESHAGENT="BluetoothMeshAgent",gG.PARKINGASSET="ParkingAsset",gG.TRADFRIPLUGASSET="TradfriPlugAsset",gG.SIMULATORAGENT="SimulatorAgent",gG.SNMPAGENT="SNMPAgent",gG.GROUPASSET="GroupAsset",gG.BUILDINGASSET="BuildingAsset",gG.MODBUSSERIALAGENT="ModbusSerialAgent",gG.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",gG.MQTTAGENT="MQTTAgent",gG.VELBUSTCPAGENT="VelbusTCPAgent",gG.ARTNETLIGHTASSET="ArtnetLightAsset",gG.VELBUSSERIALAGENT="VelbusSerialAgent",gG.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",gG.MICROPHONEASSET="MicrophoneAsset",gG.MODBUSTCPAGENT="ModbusTcpAgent",gG.ZWAVEAGENT="ZWaveAgent",gG.HTTPAGENT="HTTPAgent",gG.DOORASSET="DoorAsset",gG.THERMOSTATASSET="ThermostatAsset",gG.SHIPASSET="ShipAsset",(gq=_7||(_7={})).COLOURRGB="colourRGB",gq.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",gq.PRICEHOURLY="priceHourly",gq.MQTTPORT="MQTTPort",gq.PINGDISABLED="pingDisabled",gq.FLOW="flow",gq.CHILDASSETTYPE="childAssetType",gq.LASTACCESS="lastAccess",gq.POSITION="position",gq.NETWORKKEY="networkKey",gq.UNIVERSE="universe",gq.ROUTINGMODE="routingMode",gq.MSSINUMBER="MSSINumber",gq.LASTWILLRETAIN="lastWillRetain",gq.LASTWILLTOPIC="lastWillTopic",gq.SERIALBAUDRATE="serialBaudrate",gq.SUBSCRIBEQOS="subscribeQos",gq.LEDCOUNT="lEDCount",gq.LOCKED="locked",gq.CLOUDCOVERAGE="cloudCoverage",gq.BASEURL="baseURL",gq.PROTOCOL="protocol",gq.REQUIREDVALUES="requiredValues",gq.REGION="region",gq.CONSOLEPLATFORM="consolePlatform",gq.GATEWAYSTATUS="gatewayStatus",gq.NO2LEVEL="NO2Level",gq.ATMOSPHERICPRESSURE="atmosphericPressure",gq.SERIALPORT="serialPort",gq.APPLICATIONID="applicationId",gq.TAGS="tags",gq.UNLOCK="unlock",gq.CHECKINTERVALSECONDS="checkIntervalSeconds",gq.LOCATION="location",gq.CLIENTSECRET="clientSecret",gq.WINDDIRECTION="windDirection",gq.WINDSPEED="windSpeed",gq.PARTICLESPM10="particlesPM10",gq.APPLICATIONKEY="applicationKey",gq.LENGTH="length",gq.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",gq.USERNAMEPASSWORD="usernamePassword",gq.WATERLEVEL="waterLevel",gq.CONNECTHEADERS="connectHeaders",gq.CONSOLENAME="consoleName",gq.WEBSOCKETQUERY="websocketQuery",gq.PREFERHTML="preferHTML",gq.PARITY="parity",gq.COOLING="cooling",gq.POLLINGMILLIS="pollingMillis",gq.SOILTEMPERATURE="soilTemperature",gq.SUNIRRADIANCE="sunIrradiance",gq.MESSAGEMAXLENGTH="messageMaxLength",gq.WINDGUSTSPEED="windGustSpeed",gq.LIGHTID="lightId",gq.PROXYADDRESS="proxyAddress",gq.REQUESTQUERYPARAMETERS="requestQueryParameters",gq.MQTTHOST="MQTTHost",gq.SECUREGRPC="secureGRPC",gq.MODEL="model",gq.STREET="street",gq.MANUFACTURER="manufacturer",gq.DELETEPROCESSEDMAIL="deleteProcessedMail",gq.RESUMESESSION="resumeSession",gq.ONOFF="onOff",gq.APIKEY="ApiKey",gq.CITY="city",gq.PRESENCE="presence",gq.SPACESOCCUPIED="spacesOccupied",gq.STARTTLS="startTLS",gq.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",gq.WEBSOCKETPATH="websocketPath",gq.AGENTSTATUS="agentStatus",gq.PRICEDAILY="priceDaily",gq.COUNTGROWTHMINUTE="countGrowthMinute",gq.IMONUMBER="IMONumber",gq.ATTRIBUTION="Attribution",gq.TENANTID="tenantId",gq.REQUESTHEADERS="requestHeaders",gq.HOST="host",gq.COUNTOUTMINUTE="countOutMinute",gq.MESSAGECHARSET="messageCharset",gq.CERTIFICATEALIAS="certificateAlias",gq.EMAIL="email",gq.BINDPORT="bindPort",gq.CONSOLEVERSION="consoleVersion",gq.PARTICLESPM1="particlesPM1",gq.MTU="mtu",gq.SPEED="speed",gq.MESSAGESTRIPDELIMITER="messageStripDelimiter",gq.AREA="area",gq.COUNTRY="country",gq.SHIPTYPE="shipType",gq.CONNECTSUBSCRIPTIONS="connectSubscriptions",gq.RELATIVEHUMIDITY="relativeHumidity",gq.SOURCEADDRESS="sourceAddress",gq.RAINFALL="rainfall",gq.OAUTHGRANT="oAuthGrant",gq.OZONELEVEL="ozoneLevel",gq.SEQUENCENUMBER="sequenceNumber",gq.COUNTINMINUTE="countInMinute",gq.PORT="port",gq.SUNALTITUDE="sunAltitude",gq.COUNTOUT="countOut",gq.ROOMNUMBER="roomNumber",gq.TUNNELINGSUPPORTED="tunnelingSupported",gq.ENINUMBER="ENINumber",gq.PARTICLESPM2_5="particlesPM2_5",gq.AGENTDISABLED="agentDisabled",gq.DISABLED="disabled",gq.COUNTIN="countIn",gq.MESSAGESOURCEADDRESS="messageSourceAddress",gq.PROVISIONWEATHERASSET="ProvisionWeatherAsset",gq.TIMEINJECTIONINTERVAL="timeInjectionInterval",gq.TEMPERATURESETPOINT="temperatureSetpoint",gq.CONSOLEPROVIDERS="consoleProviders",gq.COUNTTOTAL="countTotal",gq.SPACESBUFFER="spacesBuffer",gq.DEVICECONFIG="deviceConfig",gq.SPACESTOTAL="spacesTotal",gq.BINDHOST="bindHost",gq.FANSPEED="fanSpeed",gq.MESSAGECONVERTBINARY="messageConvertBinary",gq.NOTES="notes",gq.MAILFOLDERNAME="mailFolderName",gq.MESSAGEDELIMITERS="messageDelimiters",gq.TEMPERATURE="temperature",gq.SUNZENITH="sunZenith",gq.SNMPVERSIONVALUE="SNMPVersionValue",gq.BRIGHTNESS="brightness",gq.POSTALCODE="postalCode",gq.SPACESOPEN="spacesOpen",gq.HUMIDITY="humidity",gq.SOUNDLEVEL="soundLevel",gq.SECUREMODE="secureMode",gq.DIRECTION="direction",gq.STOPBITS="stopbits",gq.UVINDEX="uVIndex",gq.CONNECTURL="connectURL",gq.CLIENTID="clientId",gq.NATMODE="NATMode",gq.UPDATEONWRITE="updateOnWrite",gq.LASTWILLPAYLOAD="lastWillPayload",gq.GROUPID="groupId",gq.FOLLOWREDIRECTS="followRedirects",gq.SUNAZIMUTH="sunAzimuth",gq.MESSAGECONVERTHEX="messageConvertHex",gq.WEBSOCKETMODE="websocketMode",gq.COLOURTEMPERATURE="colourTemperature",gq.PUBLISHQOS="publishQos",gq.DATABITS="dataBits",(gK=_9||(_9={})).FORMAT="format",gK.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",gK.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",gK.SECRET="secret",gK.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",gK.ATTRIBUTELINKS="attributeLinks",gK.RULERESETIMMEDIATE="ruleResetImmediate",gK.RULESTATE="ruleState",gK.AGENTLINKCONFIG="agentLinkConfig",gK.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",gK.FORECAST="forecast",gK.STOREDATAPOINTS="storeDataPoints",gK.LABEL="label",gK.CONSTRAINTS="constraints",gK.UNITS="units",gK.USERCONNECTED="userConnected",gK.SHOWONDASHBOARD="showOnDashboard",gK.READONLY="readOnly",gK.MULTILINE="multiline",gK.ACCESSPUBLICWRITE="accessPublicWrite",gK.MOMENTARY="momentary",gK.AGENTLINK="agentLink",gK.ACCESSRESTRICTEDREAD="accessRestrictedRead",gK.ACCESSPUBLICREAD="accessPublicRead",(gX=ve||(ve={})).ASSETQUERY="assetQuery",gX.WSURL="WS_URL",gX.COLOURRGB="colourRGB",gX.VALUEFORMAT="valueFormat",gX.TEXT="text",gX.BYTE="byte",gX.USERNAMEANDPASSWORD="usernameAndPassword",gX.HTTPURL="HTTP_URL",gX.ATTRIBUTELINK="attributeLink",gX.ASSETID="assetID",gX.NUMBERMAP="numberMap",gX.HTTPMETHOD="HTTPMethod",gX.ATTRIBUTESTATE="attributeState",gX.POSITIVENUMBER="positiveNumber",gX.POSITIVEINTEGER="positiveInteger",gX.EXECUTIONSTATUS="executionStatus",gX.BIGINTEGER="bigInteger",gX.VALUEDESCRIPTOR="valueDescriptor",gX.PERIODDURATIONISO8601="periodDurationISO8601",gX.LONG="long",gX.DATEANDTIME="dateAndTime",gX.BOOLEANMAP="booleanMap",gX.MQTTQOS="MQTTQos",gX.NEGATIVEINTEGER="negativeInteger",gX.TCPIPPORTNUMBER="TCP_IPPortNumber",gX.GEOJSONPOINT="GEO_JSONPoint",gX.SNMPVERSION="SNMPVersion",gX.ASSETTYPE="assetType",gX.JSONOBJECT="JSONObject",gX.INTEGERMAP="integerMap",gX.BIGNUMBER="bigNumber",gX.IPADDRESS="IPAddress",gX.EMAIL="email",gX.TIMESTAMP="timestamp",gX.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",gX.ATTRIBUTEREFERENCE="attributeReference",gX.UUID="UUID",gX.INTEGER="integer",gX.OAUTHGRANT="oAuthGrant",gX.NUMBER="number",gX.DEVICECONFIGMAP="DeviceConfigMap",gX.TEXTMAP="textMap",gX.WEBSOCKETSUBSCRIPTION="websocketSubscription",gX.BOOLEAN="boolean",gX.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",gX.FORECASTCONFIGURATION="forecastConfiguration",gX.TIMEDURATIONISO8601="timeDurationISO8601",gX.TIMESTAMPISO8601="timestampISO8601",gX.CONSOLEPROVIDERS="consoleProviders",gX.MULTIVALUEDTEXTMAP="multivaluedTextMap",gX.NEGATIVENUMBER="negativeNumber",gX.PARITYBIT="Paritybit",gX.JSON="JSON",gX.CRONEXPRESSION="CRONExpression",gX.INTEGERBYTE="integerByte",gX.AGENTLINK="agentLink",gX.DIRECTION="direction",gX.HOSTORIPADDRESS="hostOrIPAddress",gX.STOPBITS="Stopbits",gX.CALENDAREVENT="calendarEvent",gX.CONNECTIONSTATUS="connectionStatus",gX.VALUECONSTRAINT="valueConstraint",(gJ=vt||(vt={})).MONTH="month",gJ.MILE_SCANDINAVIAN="mile_scandinavian",gJ.VAR="var",gJ.OUNCE="ounce",gJ.HECTARE="hectare",gJ.YARD="yard",gJ.YEAR="year",gJ.GIGA="giga",gJ.JOULE="joule",gJ.VOLT="volt",gJ.HERTZ="hertz",gJ.MILE="mile",gJ.DEGREE="degree",gJ.KILO="kilo",gJ.BTU="btu",gJ.TERA="tera",gJ.FOOT="foot",gJ.MEGA="mega",gJ.KELVIN="kelvin",gJ.CARBON="carbon",gJ.DECIBEL_ATTENUATED="decibel_attenuated",gJ.INCH="inch",gJ.SQUARED="squared",gJ.PERCENTAGE="percentage",gJ.IN_HG="inch_mercury",gJ.CENTI="centi",gJ.GRAM="gram",gJ.CUBED="cubed",gJ.DAY="day",gJ.RADIAN="radian",gJ.OHM="ohm",gJ.MINUTE="minute",gJ.PART_PER_MILLION="ppm",gJ.AMP="amp",gJ.MASS_POUND="pound",gJ.KNOT="knot",gJ.METRE="metre",gJ.LITRE="litre",gJ.FLUID_OUNCE="fluid_ounce",gJ.HOUR="hour",gJ.ACRE="acre",gJ.CELSIUS="celsius",gJ.RPM="rpm",gJ.PASCAL="pascal",gJ.DECIBEL="decibel",gJ.LUMEN="lumen",gJ.WEEK="week",gJ.FAHRENHEIT="fahrenheit",gJ.WATT="watt",gJ.GALLON="gallon",gJ.LUX="lux",gJ.MILLI="milli",gJ.BAR="bar",gJ.HECTO="hecto",gJ.PEAK="peak",gJ.SECOND="second",gJ.MICRO="micro",gJ.PER="per",gJ.STONE="stone",vn||(vn={});class lv{static getAssetDescriptors(){return lv._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=lv.getValueDescriptor(t)),n=t.jsonType?t:lv.getValueDescriptor(t.type)),!n&&e&&(n=lv.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}}function ly(e){return(ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lw(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function lF(e){var t=function(e,t){if("object"!=ly(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ly(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ly(t)?t:t+""}function lx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lF(i.key),i)}}function lk(e,t,n){return t&&lx(e.prototype,t),n&&lx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lE(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lA(e,t){return(lA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lC(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lA(e,t)}function lT(e,t){if(t&&("object"==ly(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return lE(e)}function lS(e){return(lS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lM(e,t,n){return(t=lF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}lv._assetTypeInfos=[],lv._metaItemDescriptors=[],lv._valueDescriptors=[];var lI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lR=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,e),this.init(t,n)}return lk(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||lI,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lO(lO({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),l$=function(){function e(){lw(this,e),this.observers={}}return lk(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function lN(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function lP(e){return null==e?"":""+e}function lY(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(o())return{};var a=i(r.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:i(r.shift())}}function lB(e,t,n){var i=lY(e,t,Object);i.obj[i.k]=n}function lj(e,t){var n=lY(e,t),i=n.obj,o=n.k;if(i)return i[o]}function lH(e,t,n){var i=lj(e,n);return void 0!==i?i:lj(t,n)}function lz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var lU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function lW(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return lU[e]}):e}var lV="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,lG=[" ",",","?","!",";"];function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lq(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lX=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return lw(this,i),t=n.call(this),lV&&l$.call(lE(t)),t.data=e||{},t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return lk(i,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=lj(this.data,a);return s||!r||"string"!=typeof n?s:function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var o=n.split(i),r=t,a=0;a<o.length;++a){if(!r||"string"==typeof r[o[a]]&&a+1<o.length)return;if(void 0===r[o[a]]){for(var s=2,l=o.slice(a,a+s).join(i),c=r[l];void 0===c&&o.length>a+s;)s++,c=r[l=o.slice(a,a+s).join(i)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(l)){if("string"==typeof c)return c;if(l&&"string"==typeof c[l])return c[l]}var d=o.slice(a+s).join(i);if(d)return e(c,d,i);return}r=r[o[a]]}return r}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lB(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)("string"==typeof n[o]||"[object Array]"===Object.prototype.toString.apply(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);var s=lj(this.data,a)||{};i?function e(t,n,i){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?i&&(t[o]=n[o]):e(t[o],n[o],i):t[o]=n[o]);return t}(s,n,o):s=lK(lK({},s),n),lB(this.data,a,s),r.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?lK(lK({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(l$),lJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,o){var r=this;return e.forEach(function(e){r.processors[e]&&(t=r.processors[e].process(t,n,i,o))}),t}};function lQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lQ(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l0={},l1=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e){var t,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return lw(this,i),r=n.call(this),lV&&l$.call(lE(r)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=lE(r),t.forEach(function(t){e[t]&&(o[t]=e[t])}),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=lR.create("translator"),r}return lk(i,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var i=lG.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===i.length)return!0;var o=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),r=!o.test(e);if(!r){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(r=!0)}return r}(e,n,i);if(r&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(i)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==ly(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,d=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(m){var h=t.nsSeparator||this.options.nsSeparator;return r?(f.res="".concat(d).concat(h).concat(l),f):"".concat(d).concat(h).concat(l)}return r?(f.res=l,f):l}var f=this.resolve(e,t),p=f&&f.res,b=f&&f.usedKey||l,g=f&&f.exactUsedKey||l,_=Object.prototype.toString.apply(p),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(y&&p&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(_)&&("string"!=typeof v||"[object Array]"!==_)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,lZ(lZ({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return r?(f.res=F,f):F}if(a){var x="[object Array]"===_,k=x?[]:{},E=x?g:b;for(var A in p)if(Object.prototype.hasOwnProperty.call(p,A)){var C="".concat(E).concat(a).concat(A);k[A]=this.translate(C,lZ(lZ({},t),{joinArrays:!1,ns:c})),k[A]===C&&(k[A]=p[A])}p=k}}else if(y&&"string"==typeof v&&"[object Array]"===_)(p=p.join(v))&&(p=this.extendTranslation(p,e,t,n));else{var T=!1,S=!1,M=void 0!==t.count&&"string"!=typeof t.count,L=i.hasDefaultValue(t),D=M?this.pluralResolver.getSuffix(u,t.count,t):"",O=t["defaultValue".concat(D)]||t.defaultValue;!this.isValidLookup(p)&&L&&(T=!0,p=O),this.isValidLookup(p)||(S=!0,p=l);var I=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:p,R=L&&O!==p&&this.options.updateMissing;if(S||T||R){if(this.logger.log(R?"updateKey":"missingKey",u,d,l,R?O:p),a){var $=this.resolve(l,lZ(lZ({},t),{},{keySeparator:!1}));$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&P&&P[0])for(var Y=0;Y<P.length;Y++)N.push(P[Y]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(t.lng||this.language):N.push(t.lng||this.language);var B=function(e,n,i){var r=L&&i!==p?i:I;o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,n,r,R,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,n,r,R,t),o.emit("missingKey",e,d,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?N.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(n){B([e],l+n,t["defaultValue".concat(n)]||O)})}):B(N,l,O))}p=this.extendTranslation(p,e,t,f,n),S&&p===l&&this.options.appendNamespaceToMissingKey&&(p="".concat(d,":").concat(l)),(S||T)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(l):l,T?p:void 0):this.options.parseMissingKeyHandler(p))}return r?(f.res=p,f):p}},{key:"extendTranslation",value:function(e,t,n,i,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,lZ(lZ({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(lZ(lZ({},n),{interpolation:lZ(lZ({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=lZ(lZ({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];return o&&o[0]===i[0]&&!n.context?(r.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):r.translate.apply(r,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,m="string"==typeof u?[u]:u;return null!=e&&m&&m.length&&!1!==n.applyPostProcessor&&(e=lJ.handle(m,e,t,this.options&&this.options.postProcessPassResolved?lZ({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,o,r,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var d=l.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,m=u&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(r=e,!l0["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(r)&&(l0["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(function(n){if(!a.isValidLookup(t)){o=n;var r,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{u&&(d=a.pluralResolver.getSuffix(n,s.count,s));var d,f="".concat(a.options.pluralSeparator,"zero");if(u&&(l.push(c+d),m&&l.push(c+f)),h){var p="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(p),u&&(l.push(p+d),m&&l.push(p+f))}}for(;r=l.pop();)a.isValidLookup(t)||(i=r,t=a.getResource(n,e,r,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:r}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),i}(l$);function l2(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l4=function(){function e(t){lw(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lR.create("languageUtils")}return lk(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l2(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l2(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=l2(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var i=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(i))&&(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(i))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],r=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),i.forEach(function(e){0>o.indexOf(e)&&r(n.formatLanguageCode(e))}),o}}]),e}(),l5=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],l3={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},l6=["v1","v2","v3"],l8={zero:0,one:1,two:2,few:3,many:4,other:5},l7=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,e),this.languageUtils=t,this.options=i,this.logger=lR.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},l5.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:l3[e.fc]}})}),n)}return lk(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return l8[e]-l8[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var r=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!l6.includes(this.options.compatibilityJSON)}}]),e}();function l9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l9(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ct=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lw(this,e),this.logger=lR.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return lk(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:lW,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?lz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?lz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?lz(t.nestingPrefix):t.nestingPrefixEscaped||lz("$t("),this.nestingSuffix=t.nestingSuffix?lz(t.nestingSuffix):t.nestingSuffixEscaped||lz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var o,r,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator)){var o=lH(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,ce(ce(ce({},i),t),{},{interpolationkey:e})):o}var r=e.split(s.formatSeparator),a=r.shift().trim(),c=r.join(s.formatSeparator).trim();return s.format(lH(t,l,a),c,n,ce(ce(ce({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(r=d(n)))if("function"==typeof u){var l=u(e,o,i);r="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))r="";else if(m){r=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),r="";else"string"==typeof r||s.useRawValueToEscape||(r=lP(r));var c=t.safeValue(r);if(e=e.replace(o[0],c),m?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,i,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ce({},r);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(i[1]);e=i[0];var r=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(r&&r.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=ce(ce({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),l=d,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=lP(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce(function(e,t){return o.format(e,t,r.lng,ce(ce({},r),{},{interpolationkey:n[1].trim()}))},i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function co(e){var t={};return function(n,i,o){var r=i+JSON.stringify(o),a=t[r];return a||(a=e(i,o),t[r]=a),a(n)}}var cr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lw(this,e),this.logger=lR.create("formatter"),this.options=t,this.formats={number:co(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:co(function(e,t){var n=new Intl.NumberFormat(e,ci(ci({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:co(function(e,t){var n=new Intl.DateTimeFormat(e,ci({},t));return function(e){return n.format(e)}}),relativetime:co(function(e,t){var n=new Intl.RelativeTimeFormat(e,ci({},t));return function(e){return n.format(e,t.range||"day")}}),list:co(function(e,t){var n=new Intl.ListFormat(e,ci({},t));return function(e){return n.format(e)}})},this.init(t)}return lk(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=co(t)}},{key:"format",value:function(e,t,n,i){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var r=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);"currency"===t&&0>o.indexOf(":")?n.currency||(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return lL(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lL(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],r=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=r),"false"===r&&(n[o.trim()]=!1),"true"===r&&(n[o.trim()]=!0),isNaN(r)||(n[o.trim()]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}}(t),a=r.formatName,s=r.formatOptions;if(o.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},d=c.locale||c.lng||i.locale||i.lng||n;l=o.formats[a](e,d,ci(ci(ci({},s),i),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cl=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e,t,o){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return lw(this,i),r=n.call(this),lV&&l$.call(lE(r)),r.backend=e,r.store=t,r.services=o,r.languageUtils=o.languageUtils,r.options=a,r.logger=lR.create("backendConnector"),r.waitingReads=[],r.maxParallelReads=a.maxParallelReads||10,r.readingCalls=0,r.maxRetries=a.maxRetries>=0?a.maxRetries:5,r.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,a.backend,a),r}return lk(i,[{key:"queueLoad",value:function(e,t,n,i){var o=this,r={},a={},s={},l={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===l[t]&&(l[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),n&&this.store.addResourceBundle(o,r,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var i,s,l,c;i=n.loaded,(l=(s=lY(i,[o],Object)).obj)[c=s.k]=l[c]||[],l[c].push(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(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<i.maxRetries?setTimeout(function(){i.read.call(i,e,t,n,o+1,2*r,a)},r):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var r=this.queueLoad(e,t,i,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),o=i[0],r=i[1];this.read(o,r,"read",void 0,void 0,function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(r," for language ").concat(o," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(r," for language ").concat(o),a),t.loaded(e,i,a)})}},{key:"saveMissing",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,cs(cs({},r),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),i}(l$);function cc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cm(){}var ch=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(lw(this,i),t=n.call(this),lV&&l$.call(lE(t)),t.options=cc(o),t.services={},t.logger=lR,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=lE(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),r&&!t.isInitialized&&!o.isClone){if(!t.options.initImmediate)return t.init(o,r),lT(t,lE(t));setTimeout(function(){t.init(o,r)},0)}return t}return lk(i,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===ly(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ly(e[2])||"object"===ly(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=cu(cu(cu({},i),this.options),cc(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=cu(cu({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?lR.init(o(this.modules.logger),this.options):lR.init(null,this.options),this.modules.formatter?r=this.modules.formatter:"u">typeof Intl&&(r=cr);var r,a=new l4(this.options);this.store=new lX(this.options.resources,this.options);var s=this.services;s.logger=lR,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new l7(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),r&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=o(r),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ct(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new cl(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new l1(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=cm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=lN(),d=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,i=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var r=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(r,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)})}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=lN();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cm),this.services.backendConnector.reload(e,t,function(e){i.resolve(),n(e)}),i}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lJ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=lN();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},r=function(e,r){r?(o(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var i="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,o=function e(t,o){if("object"!==ly(o)){for(var r,a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];r=i.options.overloadTranslationOptionHandler([t,o].concat(s))}else r=cu({},o);r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,r.keyPrefix=r.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",d=r.keyPrefix?"".concat(r.keyPrefix).concat(c).concat(t):t;return i.t(d,r)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,e)&&(!o||a(r,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=lN();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lN();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter(function(e){return 0>i.indexOf(e)});return o.length?(this.options.preload=i.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,o=cu(cu(cu({},this.options),t),{isClone:!0}),r=new i(o);return(void 0!==t.debug||void 0!==t.prefix)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(function(t){r[t]=e[t]}),r.services=cu({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new l1(r.services,r.options),r.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r.emit.apply(r,[e].concat(n))}),r.init(o,n),r.translator.options=r.options,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(l$);lM(ch,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ch(e,t)});var cf=ch.createInstance();cf.createInstance=ch.createInstance,cf.createInstance,cf.init,cf.loadResources,cf.reloadResources,cf.use,cf.changeLanguage,cf.getFixedT,cf.t,cf.exists,cf.setDefaultNamespace,cf.hasLoadedNamespace,cf.loadNamespaces,cf.loadLanguages;let cp=cf;var cb=n(88183),cg=n.n(cb),c_=n(14867),cv=n.n(c_);n(83472);class cy{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 cw(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)=>cw(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>cw(e[n],t[n]))}return!1}function cF(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 cx{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=>cx._evalValuePredicate(e.name,t)))&&(!this.attributes||cx._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!cx._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?cx._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||cx._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=>cx._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>cx._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=>cx._collectNames(e))]}}cx._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ck=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 cE=n(74461);class cA{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=cA._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=mZ.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 ck(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 ck(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 ck(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 ck(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 ck(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 cy,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(()=>ck(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 ck(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mZ.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&&cA._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 ck(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:cE.name,version:cE.version,platform:cE.os.toString(),apps:[],model:((cE.manufacturer?cE.manufacturer+" ":"")+(cE.product?cE.product:"")).trim()}}_initialiseProvider(e){return ck(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 cC(e,t){return function(){return e.apply(t,arguments)}}let{toString:cT}=Object.prototype,{getPrototypeOf:cS}=Object,{iterator:cM,toStringTag:cL}=Symbol,cD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cO=(e,t)=>{let n=e,i=[];for(;null!=n&&n!==Object.prototype&&-1===i.indexOf(n);){if(i.push(n),cD(n,t))return!0;n=cS(n)}return!1},cI=(a=Object.create(null),e=>{let t=cT.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cR=e=>(e=e.toLowerCase(),t=>cI(t)===e),c$=e=>t=>typeof t===e,{isArray:cN}=Array,cP=c$("undefined");function cY(e){return null!==e&&!cP(e)&&null!==e.constructor&&!cP(e.constructor)&&cH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cB=cR("ArrayBuffer"),cj=c$("string"),cH=c$("function"),cz=c$("number"),cU=e=>null!==e&&"object"==typeof e,cW=e=>{if(!cU(e))return!1;let t=cS(e);return(null===t||t===Object.prototype||null===cS(t))&&!cO(e,cL)&&!cO(e,cM)},cV=cR("Date"),cG=cR("File"),cq=cR("Blob"),cK=cR("FileList"),cX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cJ=void 0!==cX.FormData?cX.FormData:void 0,cQ=cR("URLSearchParams"),[cZ,c0,c1,c2]=["ReadableStream","Request","Response","Headers"].map(cR);function c4(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cN(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(cY(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 c5(e,t){let n;if(cY(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 c3="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,c6=e=>!cP(e)&&e!==c3,c8=(s="u">typeof Uint8Array&&cS(Uint8Array),e=>s&&e instanceof s),c7=cR("HTMLFormElement"),{propertyIsEnumerable:c9}=Object.prototype,de=cR("RegExp"),dt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};c4(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},dn=cR("AsyncFunction"),di=(bH="function"==typeof setImmediate,bz=cH(c3.postMessage),bH?setImmediate:bz?(bU=`axios@${Math.random()}`,bW=[],c3.addEventListener("message",({source:e,data:t})=>{e===c3&&t===bU&&bW.length&&bW.shift()()},!1),e=>{bW.push(e),c3.postMessage(bU,"*")}):e=>setTimeout(e)),dr="u">typeof queueMicrotask?queueMicrotask.bind(c3):"u">typeof process&&process.nextTick||di,da=e=>null!=e&&cH(e[cM]),ds={isArray:cN,isArrayBuffer:cB,isBuffer:cY,isFormData:e=>{if(!e)return!1;if(cJ&&e instanceof cJ)return!0;let t=cS(e);if(!t||t===Object.prototype||!cH(e.append))return!1;let n=cI(e);return"formdata"===n||"object"===n&&cH(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cB(e.buffer)},isString:cj,isNumber:cz,isBoolean:e=>!0===e||!1===e,isObject:cU,isPlainObject:cW,isEmptyObject:e=>{if(!cU(e)||cY(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cZ,isRequest:c0,isResponse:c1,isHeaders:c2,isUndefined:cP,isDate:cV,isFile:cG,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cq,isRegExp:de,isFunction:cH,isStream:e=>cU(e)&&cH(e.pipe),isURLSearchParams:cQ,isTypedArray:c8,isFileList:cK,forEach:c4,merge:function e(...t){let{caseless:n,skipUndefined:i}=c6(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&c5(o,r)||r,s=cD(o,a)?o[a]:void 0;cW(s)&&cW(t)?o[a]=e(s,t):cW(t)?o[a]=e({},t):cN(t)?o[a]=t.slice():i&&cP(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||cY(n)||(c4(n,r),"object"!=typeof n||cN(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];c9.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(c4(t,(t,i)=>{n&&cH(t)?Object.defineProperty(e,i,{__proto__:null,value:cC(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&&cS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:cI,kindOfTest:cR,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(cN(e))return e;let t=e.length;if(!cz(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cM]).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:c7,hasOwnProperty:cD,hasOwnProp:cD,hasOwnInPrototypeChain:cO,getSafeProp:(e,t)=>null!=e&&cO(e,t)?e[t]:void 0,reduceDescriptors:dt,freezeMethods:e=>{dt(e,(t,n)=>{if(cH(e)&&["arguments","caller","callee"].includes(n))return!1;if(cH(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(cN(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:c5,global:c3,isContextDefined:c6,isSpecCompliantForm:function(e){return!!(e&&cH(e.append)&&"FormData"===e[cL]&&e[cM])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cU(e)){if(t.has(e))return;if(cY(e))return e;if(!("toJSON"in e)){t.add(e);let i=cN(e)?[]:{};return c4(e,(e,t)=>{let o=n(e);cP(o)||(i[t]=o)}),t.delete(e),i}}return e};return n(e)},isAsyncFn:dn,isThenable:e=>e&&(cU(e)||cH(e))&&cH(e.then)&&cH(e.catch),setImmediate:di,asap:dr,isIterable:da,isSafeIterable:e=>null!=e&&cO(e,cM)&&da(e)},dl=ds.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"]),dc=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dd=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function du(e,t){return ds.isArray(e)?e.map(e=>du(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 dm(e){let t=Object.create(null);return ds.forEach(e.toJSON(),(e,n)=>{t[n]=du(e,dd)}),t}let dh=Symbol("internals");function df(e){return e&&String(e).trim().toLowerCase()}function dp(e){return!1===e||null==e?e:ds.isArray(e)?e.map(dp):du(String(e),dc)}function db(e,t,n,i,o){if(ds.isFunction(i))return i.call(this,t,n);if(o&&(t=n),ds.isString(t)){if(ds.isString(i))return -1!==t.indexOf(i);if(ds.isRegExp(i))return i.test(t)}}class dg{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=df(t);if(!o)return;let r=ds.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=dp(e))}let r=(e,t)=>ds.forEach(e,(e,n)=>o(e,n,t));if(ds.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(ds.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(),!n||s[n]&&dl[n]||("set-cookie"===n?s[n]?s[n].push(i):s[n]=[i]:s[n]=s[n]?s[n]+", "+i:i)}),s),t)}else if(ds.isObject(e)&&ds.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!ds.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],ds.hasOwnProp(n,o)?(i=n[o],n[o]=ds.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=df(e)){let n=ds.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(ds.isFunction(t))return t.call(this,e,n);if(ds.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=df(e)){let n=ds.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||db(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=df(e)){let o=ds.findKey(n,e);o&&(!t||db(n,n[o],o,t))&&(delete n[o],i=!0)}}return ds.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||db(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return ds.forEach(this,(i,o)=>{let r=ds.findKey(n,o);if(r){t[r]=dp(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]=dp(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ds.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&ds.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dh]=this[dh]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=df(e);if(!t[i]){let o;o=ds.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 ds.isArray(e)?e.forEach(i):i(e),this}}dg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ds.reduceDescriptors(dg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ds.freezeMethods(dg);class d_ extends Error{static from(e,t,n,i,o,r){let a=new d_(e.message,t||e.code,n,i,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}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&&ds.hasOwnProp(i,"redact")?i.redact:void 0,r=ds.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||ds.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof dg&&(i=i.toJSON()),t.push(i),ds.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);ds.isUndefined(i)||(o[t]=i)});else{if(!ds.isPlainObject(i)&&function(e){if(ds.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ds.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())?"[REDACTED ****]":n(r);ds.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):ds.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}}}d_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",d_.ERR_BAD_OPTION="ERR_BAD_OPTION",d_.ECONNABORTED="ECONNABORTED",d_.ETIMEDOUT="ETIMEDOUT",d_.ECONNREFUSED="ECONNREFUSED",d_.ERR_NETWORK="ERR_NETWORK",d_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",d_.ERR_DEPRECATED="ERR_DEPRECATED",d_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",d_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",d_.ERR_CANCELED="ERR_CANCELED",d_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",d_.ERR_INVALID_URL="ERR_INVALID_URL",d_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dv=d_;function dy(e){return ds.isPlainObject(e)||ds.isArray(e)}function dw(e){return ds.endsWith(e,"[]")?e.slice(0,-2):e}function dF(e,t,n){return e?e.concat(t).map(function(e,t){return e=dw(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dx=ds.toFlatObject(ds,{},null,function(e){return/^is[A-Z]/.test(e)}),dk=function(e,t,n){if(!ds.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(n=ds.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ds.isUndefined(t[e])})).metaTokens,o=n.visitor||h,r=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&ds.isSpecCompliantForm(t),d=[];if(!ds.isFunction(o))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ds.isDate(e))return e.toISOString();if(ds.isBoolean(e))return e.toString();if(!c&&ds.isBlob(e))throw new dv("Blob is not supported. Use a Buffer instead.");if(ds.isArrayBuffer(e)||ds.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new dv("Blob is not supported. Use a Buffer instead.",dv.ERR_NOT_SUPPORT)}return e}function m(e){if(e>l)throw new dv("Object is too deeply nested ("+e+" levels). Max depth: "+l,dv.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let s=e;if(ds.isReactNative(t)&&ds.isReactNativeBlob(e))return t.append(dF(o,n,r),u(e)),!1;if(e&&!o&&"object"==typeof e)if(ds.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!ds.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),m(1+t.length-1),n})}(e);else{var c;if(ds.isArray(e)&&(c=e,ds.isArray(c)&&!c.some(dy))||(ds.isFileList(e)||ds.endsWith(n,"[]"))&&(s=ds.toArray(e)))return n=dw(n),s.forEach(function(e,i){ds.isUndefined(e)||null===e||t.append(!0===a?dF([n],i,r):null===a?n:n+"[]",u(e))}),!1}return!!dy(e)||(t.append(dF(o,n,r),u(e)),!1)}let f=Object.assign(dx,{defaultVisitor:h,convertValue:u,isVisitable:dy});if(!ds.isObject(e))throw TypeError("data must be an object");return!function e(n,i,r=0){if(!ds.isUndefined(n)){if(m(r),-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),ds.forEach(n,function(n,a){!0===(!(ds.isUndefined(n)||null===n)&&o.call(t,n,ds.isString(a)?a.trim():a,i,f))&&e(n,i?i.concat(a):[a],r+1)}),d.pop()}}(e),t};function dE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dA(e,t){this._pairs=[],e&&dk(e,this,t)}let dC=dA.prototype;function dT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dS(e,t,n){let i;if(!t)return e;e=e||"";let o=ds.isFunction(n)?{serialize:n}:n,r=ds.getSafeProp(o,"encode")||dT,a=ds.getSafeProp(o,"serialize");if(i=a?a(t,o):ds.isURLSearchParams(t)?t.toString():new dA(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}dC.append=function(e,t){this._pairs.push([e,t])},dC.toString=function(e){let t=e?t=>e.call(this,t,dE):dE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dM=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ds.forEach(this.handlers,function(t){null!==t&&e(t)})}},dL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dD="u">typeof URLSearchParams?URLSearchParams:dA,dO="u">typeof FormData?FormData:null,dI="u">typeof Blob?Blob:null,dR="u">typeof window&&"u">typeof document,d$="object"==typeof navigator&&navigator||void 0,dN=dR&&(!d$||0>["ReactNative","NativeScript","NS"].indexOf(d$.product)),dP="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dY=dR&&window.location.href||"http://localhost",dB={...d,isBrowser:!0,classes:{URLSearchParams:dD,FormData:dO,Blob:dI},protocols:["http","https","file","blob","url","data"]};function dj(e){if(e>100)throw new dv("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dv.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dH=function(e){if(ds.isFormData(e)&&ds.isFunction(e.entries)){let t={};return ds.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dj(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&ds.isArray(i)?i.length:r,s)?ds.hasOwnProp(i,r)?i[r]=ds.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(ds.hasOwnProp(i,r)&&ds.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&ds.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=/\w+|\[(\w*)]/g;for(;null!==(t=i.exec(e));)dj(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dz=(e,t)=>null!=e&&ds.hasOwnProp(e,t)?e[t]:void 0,dU={transitional:dL,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=ds.isObject(e);if(r&&ds.isHTMLForm(e)&&(e=new FormData(e)),ds.isFormData(e))return o?JSON.stringify(dH(e)):e;if(ds.isArrayBuffer(e)||ds.isBuffer(e)||ds.isStream(e)||ds.isFile(e)||ds.isBlob(e)||ds.isReadableStream(e))return e;if(ds.isArrayBufferView(e))return e.buffer;if(ds.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dz(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return dk(e,new dB.classes.URLSearchParams,{visitor:function(e,t,n,i){return dB.isNode&&ds.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ds.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dz(this,"env"),o=i&&i.FormData;return dk(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(ds.isString(a))try{return(0,JSON.parse)(a),ds.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dz(this,"transitional")||dU.transitional,n=t&&t.forcedJSONParsing,i=dz(this,"responseType"),o="json"===i;if(ds.isResponse(e)||ds.isReadableStream(e))return e;if(e&&ds.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dz(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dv.from(e,dv.ERR_BAD_RESPONSE,this,null,dz(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dB.classes.FormData,Blob:dB.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dW(e,t){let n=this||dU,i=t||n,o=dg.from(i.headers),r=i.data;return ds.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dV(e){return!!(e&&e.__CANCEL__)}ds.forEach(["delete","get","head","post","put","patch","query"],e=>{dU.headers[e]={}});let dG=class extends dv{constructor(e,t,n){super(null==e?"canceled":e,dv.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dq(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dv("Request failed with status code "+n.status,n.status>=400&&n.status<500?dv.ERR_BAD_REQUEST:dv.ERR_BAD_RESPONSE,n.config,n.request,n))}let dK=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}},dX=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)]},dJ=(e,t,n=3)=>{let i=0,o=dK(50,250);return dX(n=>{if(!n||"number"!=typeof n.loaded)return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=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)},dQ=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dZ=e=>(...t)=>ds.asap(()=>e(...t)),d0=dB.hasStandardBrowserEnv?(l=new URL(dB.origin),c=dB.navigator&&/(msie|trident)/i.test(dB.navigator.userAgent),e=>(e=new URL(e,dB.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,d1=dB.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ds.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ds.isString(i)&&s.push(`path=${i}`),ds.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),ds.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(){}},d2=/^https?:(?!\/\/)/i,d4=/[\t\n\r]/g;function d5(e,t){if("string"==typeof e&&d2.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(d4,"")))throw new dv('Invalid URL: missing "//" after protocol',dv.ERR_INVALID_URL,t)}function d3(e,t,n,i){d5(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(o||!1===n)?(d5(e,i),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let d6=e=>e instanceof dg?{...e}:e;function d8(e,t){e=e||{},t=t||{};let n=Object.create(null);function i(e,t,n,i){return ds.isPlainObject(e)&&ds.isPlainObject(t)?ds.merge.call({caseless:i},e,t):ds.isPlainObject(t)?ds.merge({},t):ds.isArray(t)?t.slice():t}function o(e,t,n,o){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function r(e,t){if(!ds.isUndefined(t))return i(void 0,t)}function a(e,t){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return ds.hasOwnProp(t,r)?i(n,o):ds.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(d6(e),d6(t),n,!0)};return ds.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let r=ds.hasOwnProp(l,i)?l[i]:o,a=r(ds.hasOwnProp(e,i)?e[i]:void 0,ds.hasOwnProp(t,i)?t[i]:void 0,i);ds.isUndefined(a)&&r!==s||(n[i]=a)}),ds.hasOwnProp(t,"validateStatus")&&ds.isUndefined(t.validateStatus)&&!1===function(n){let i=ds.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ds.isUndefined(i)){if(!ds.isPlainObject(i))return;else if(ds.hasOwnProp(i,n))return i[n]}let o=ds.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ds.isPlainObject(o)&&ds.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(ds.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}let d7=["content-type","content-length"],d9=function(e){let t=d8({},e),n=e=>ds.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=dg.from(s),t.url=dS(d3(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=ds.getSafeProp(l,"username")||"",n=ds.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 dv.from(t,dv.ERR_BAD_OPTION_VALUE,e)}}if(ds.isFormData(i))if(dB.hasStandardBrowserEnv||dB.hasStandardBrowserWebWorkerEnv||ds.isReactNative(i))s.setContentType(void 0);else{var m,h;ds.isFunction(i.getHeaders)&&(m=s,h=i.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?m.set(h):Object.entries(h||{}).forEach(([e,t])=>{d7.includes(e.toLowerCase())&&m.set(e,t)}))}if(dB.hasStandardBrowserEnv&&(ds.isFunction(o)&&(o=o(t)),!0===o||null==o&&d0(t.url))){let e=r&&a&&d1.read(a);e&&s.set(r,e)}return t},ue="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var i;let o,r,a,s,l,c,d=d9(e),u=d.data,m=dg.from(d.headers).normalize(),{responseType:h,onUploadProgress:f,onDownloadProgress:p}=d;function b(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(o),d.signal&&d.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function _(){if(!g)return;let i=dg.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dq(function(e){t(e),b()},function(e){n(e),b()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(d.method.toUpperCase(),d.url,!0),g.timeout=d.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(_)},g.onabort=function(){g&&(n(new dv("Request aborted",dv.ECONNABORTED,e,g)),b(),g=null)},g.onerror=function(t){let i=new dv(t&&t.message?t.message:"Network Error",dv.ERR_NETWORK,e,g);i.event=t||null,n(i),b(),g=null},g.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||dL;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new dv(t,i.clarifyTimeoutError?dv.ETIMEDOUT:dv.ECONNABORTED,e,g)),b(),g=null},void 0===u&&m.setContentType(null),"setRequestHeader"in g&&ds.forEach(dm(m),function(e,t){g.setRequestHeader(t,e)}),ds.isUndefined(d.withCredentials)||(g.withCredentials=!!d.withCredentials),h&&"json"!==h&&(g.responseType=d.responseType),p&&([a,l]=dJ(p,!0),g.addEventListener("progress",a)),f&&g.upload&&([r,s]=dJ(f),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(o=t=>{g&&(n(!t||t.type?new dG(null,e,g):t),g.abort(),b(),g=null)},d.cancelToken&&d.cancelToken.subscribe(o),d.signal&&(d.signal.aborted?o():d.signal.addEventListener("abort",o)));let v=(i=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(i))&&c[1]||"");if(v&&!dB.protocols.includes(v)){n(new dv("Unsupported protocol "+v+":",dv.ERR_BAD_REQUEST,e)),b();return}g.send(u||null)})},ut=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},un=async function*(e,t){for await(let n of ui(e))yield*ut(n,t)},ui=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()}},uo=(e,t,n,i)=>{let o,r=un(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})},ur=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ua=(e,t,n)=>t+2<n&&ur(e.charCodeAt(t+1))&&ur(e.charCodeAt(t+2)),{isFunction:us}=ds,ul=e=>{if(!ds.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},uc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{let t,n=void 0!==ds.global&&null!==ds.global?ds.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=ds.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?us(r):"function"==typeof fetch,c=us(a),d=us(s);if(!l)return!1;let u=l&&us(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&&uc(()=>{let e=!1,t=new a(dB.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&&uc(()=>ds.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 dv(`Response type '${e}' is not supported`,dv.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(ds.isBlob(e))return e.size;if(ds.isSpecCompliantForm(e)){let t=new a(dB.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ds.isArrayBufferView(e)||ds.isArrayBuffer(e)?e.byteLength:(ds.isURLSearchParams(e)&&(e+=""),ds.isString(e))?(await m(e)).byteLength:void 0},g=async(e,t)=>{let n=ds.toFiniteNumber(e.getContentLength());return null==n?b(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:F,withCredentials:x="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:A}=d9(e),C=ds.isNumber(E)&&E>-1,T=ds.isNumber(A)&&A>-1,S=r||fetch;w=w?(w+"").toLowerCase():"text";let M=((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 dv?t:new dG(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dv(`timeout of ${t}ms exceeded`,dv.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=>e.addEventListener("abort",o,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>ds.asap(a),s})([d,m&&m.toAbortSignal()],_),L=null,D=M&&M.unsubscribe&&(()=>{M.unsubscribe()}),O=null,I=()=>new dv("Request body larger than maxBodyLength limit",dv.ERR_BAD_REQUEST,e,L);try{var R;let r,d,m,_,$=(d="auth",ds.hasOwnProp(e,d)?e[d]:void 0);if($){let e=ds.getSafeProp($,"username")||"",t=ds.getSafeProp($,"password")||"";r={username:e,password:t}}if(m=(R=n).indexOf("://"),_=R,-1!==m&&(_=_.slice(m+3)),_.includes("@")||_.includes(":")){let e=new URL(n,dB.origin);if(!r&&(e.username||e.password)){let t=ul(e.username),n=ul(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;F.delete("authorization"),F.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(C&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length,t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){let t=i.charCodeAt(n+1),o=i.charCodeAt(n+2);ur(t)&&ur(o)&&(e-=2,n+=2)}let n=0,o=t-1,r=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));o>=0&&(61===i.charCodeAt(o)?(n++,o--):r(o)&&(n++,o-=3)),1===n&&o>=0&&(61===i.charCodeAt(o)?n++:r(o)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&ua(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(n)>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L);if(T&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw I()}let N=T&&(ds.isReadableStream(l)||ds.isStream(l)),P=(e,t,n)=>uo(e,65536,e=>{if(T&&e>A)throw O=I();t&&t(e)},n);if(h&&"get"!==i&&"head"!==i&&(y||N)){if(t=null==t?await g(F,l):t,0!==t||N){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(ds.isFormData(l)&&(e=i.headers.get("content-type"))&&F.setContentType(e),i.body){let[e,n]=y&&dQ(t,dJ(dZ(y)))||[];l=P(i.body,e,n)}}}else if(N&&!c&&u&&"get"!==i&&"head"!==i)l=P(l);else if(N&&c&&!h&&"get"!==i&&"head"!==i)throw new dv("Stream request bodies are not supported by the current fetch implementation",dv.ERR_NOT_SUPPORT,e,L);ds.isString(x)||(x=x?"include":"omit");let Y=c&&"credentials"in a.prototype;if(ds.isFormData(l)){let e=F.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let B={...k,signal:M,method:i.toUpperCase(),headers:dm(F.normalize()),body:l,duplex:"half",credentials:Y?x:void 0};L=c&&new a(n,B);let j=await (c?S(L,k):S(n,B)),H=dg.from(j.headers);if(C){let t=ds.toFiniteNumber(H.getContentLength());if(null!=t&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L)}let z=f&&("stream"===w||"response"===w);if(f&&j.body&&(v||C||z&&D)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=j[e]});let n=ds.toFiniteNumber(H.getContentLength()),[i,o]=v&&dQ(n,dJ(dZ(v),!0))||[];j=new s(uo(j.body,65536,t=>{if(C&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L);i&&i(t)},()=>{o&&o(),D&&D()}),t)}w=w||"text";let U=await p[ds.findKey(p,w)||"text"](j,e);if(C&&!f&&!z){let t;if(null!=U&&("number"==typeof U.byteLength?t=U.byteLength:"number"==typeof U.size?t=U.size:"string"==typeof U&&(t="function"==typeof o?new o().encode(U).byteLength:U.length)),"number"==typeof t&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L)}return!z&&D&&D(),await new Promise((t,n)=>{dq(t,n,{data:U,headers:dg.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:L})})}catch(t){if(D&&D(),M&&M.aborted&&M.reason instanceof dv){let n=M.reason;throw n.config=e,L&&(n.request=L),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw L&&!O.request&&(O.request=L),O;if(t instanceof dv)throw L&&!t.request&&(t.request=L),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dv("Network Error",dv.ERR_NETWORK,e,L,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dv.from(t,t&&t.code,e,L,t&&t.response)}}},uu=new Map,um=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=uu;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ud(t)),c=l;return l};um();let uh={http:null,xhr:ue,fetch:{get:um}};ds.forEach(uh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let uf=e=>`- ${e}`,up=e=>ds.isFunction(e)||null===e||!1===e,ub=function(e,t){let n,i,{length:o}=e=ds.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!up(n)&&void 0===(i=uh[(o=String(n)).toLowerCase()]))throw new dv(`Unknown adapter '${o}'`);if(i&&(ds.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 dv("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(uf).join("\n"):" "+uf(e[0]):"as no adapter specified"),dv.ERR_NOT_SUPPORT)}return i};function ug(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dG(null,e)}function u_(e){return ug(e),e.headers=dg.from(e.headers),e.data=dW.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ub(e.adapter||dU.adapter,e)(e).then(function(t){ug(e),e.response=t;try{t.data=dW.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=dg.from(t.headers),t},function(t){if(!dV(t)&&(ug(e),t&&t.response)){e.response=t.response;try{t.response.data=dW.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=dg.from(t.response.headers)}return Promise.reject(t)})}let uv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let uy={};uv.transitional=function(e,t,n){function i(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dv(i(o," has been removed"+(t?" in "+t:"")),dv.ERR_DEPRECATED);return t&&!uy[o]&&(uy[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)}},uv.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let uw=function(e,t,n){if("object"!=typeof e||null===e)throw new dv("options must be an object",dv.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 dv("option "+r+" must be "+n,dv.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dv("Unknown option "+r,dv.ERR_BAD_OPTION)}};class uF{constructor(e){this.defaults=e||{},this.interceptors={request:new dM,response:new dM}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),o=-1===i?"":n.slice(i+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}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=d8(this.defaults,t);void 0!==o&&uw(o,{silentJSONParsing:uv.transitional(uv.boolean),forcedJSONParsing:uv.transitional(uv.boolean),clarifyTimeoutError:uv.transitional(uv.boolean),legacyInterceptorReqResOrdering:uv.transitional(uv.boolean),advertiseZstdAcceptEncoding:uv.transitional(uv.boolean),validateStatusUndefinedResolves:uv.transitional(uv.boolean)},!1),null!=r&&(ds.isFunction(r)?t.paramsSerializer={serialize:r}:uw(r,{encode:uv.function,serialize:uv.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),uw(t,{baseUrl:uv.spelling("baseURL"),withXsrfToken:uv.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ds.merge(a.common,a[t.method]);a&&ds.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=dg.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||dL;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=[u_.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(m)}catch(e){t.call(this,e);break}}try{n=u_.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dS(d3((e=d8(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ds.forEach(["delete","get","head","options"],function(e){uF.prototype[e]=function(t,n){return this.request(d8(n||{},{method:e,url:t,data:n&&ds.hasOwnProp(n,"data")?n.data:void 0}))}}),ds.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(d8(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}uF.prototype[e]=t(),"query"!==e&&(uF.prototype[e+"Form"]=t(!0))});class ux{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 dG(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 e;return{token:new ux(function(t){e=t}),cancel:e}}}let uk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uk).forEach(([e,t])=>{uk[t]=e});let uE=function e(t){let n=new uF(t),i=cC(uF.prototype.request,n);return ds.extend(i,uF.prototype,n,{allOwnKeys:!0}),ds.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(d8(t,n))},i}(dU);uE.Axios=uF,uE.CanceledError=dG,uE.CancelToken=ux,uE.isCancel=dV,uE.VERSION="1.18.1",uE.toFormData=dk,uE.AxiosError=dv,uE.Cancel=uE.CanceledError,uE.all=function(e){return Promise.all(e)},uE.spread=function(e){return function(t){return e.apply(null,t)}},uE.isAxiosError=function(e){return ds.isObject(e)&&!0===e.isAxiosError},uE.mergeConfig=d8,uE.AxiosHeaders=dg,uE.formToJSON=e=>dH(ds.isHTMLForm(e)?new FormData(e):e),uE.getAdapter=ub,uE.HttpStatusCode=uk,uE.default=uE;class uA{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uq`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uq`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uq`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uq`syslog/event`,queryParams:e,options:t})}}class uC{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uq`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uq`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uq`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uq`provisioning/${e}`,data:t,options:n})}}class uT{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uq`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uq`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uq`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uq`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uq`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uq`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uq`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/${e}`,data:t,options:n})}}class uS{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uq`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uq`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uq`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uq`configuration/manager/image/${e}`,options:t})}}class uM{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uq`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uq`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uL{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uq`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uq`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uq`flow/${e}`,options:t})}}class uD{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uq`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uq`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uq`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/valueDescriptors`,queryParams:e,options:t})}}class uO{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uq`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uq`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uq`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uq`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uq`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uq`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uq`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uq`alarm/${e}/assets`,queryParams:t,options:n})}}class uI{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uq`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uq`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uR{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uq`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uq`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uq`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uq`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uq`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uq`service/${e}/${t}`,options:n})}}class u${constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uq`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uq`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uq`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uq`dashboard/${e}/${t}`,options:n})}}class uN{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uq`console/register`,data:e,options:t})}}class uP{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uq`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uq`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uq`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uq`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uq`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uq`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uq`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uq`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uq`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uq`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uq`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uq`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uq`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uq`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`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:uq`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uq`asset/${e}/child`,queryParams:t,options:n})}}class uY{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uq`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uq`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uq`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uq`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uq`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uq`notification/${e}/delivered`,queryParams:t,options:n})}}class uB{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uq`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uj{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`asset/predicted/${e}/${t}`,data:n,options:i})}}class uH{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uq`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uq`info`,options:e})}}class uz{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uq`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uq`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uq`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uq`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`realm/${e}`,data:t,options:n})}}class uU{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uq`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uq`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/status/${e}`,options:t})}}class uW{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uq`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uq`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uq`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uq`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uq`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uq`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uq`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uq`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uq`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uq`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uq`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/${t}`,options:n})}}class uV{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uq`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uq`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uq`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uq`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uq`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uq`map/upload`,queryParams:e,options:t})}}class uG{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uq`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uq`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uq`apps/info`,options:e})}}function uq(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 uK{constructor(e,t=uE.create()){this._syslogResource=new uJ(e,t),this._provisioningResource=new uQ(e,t),this._rulesResource=new uZ(e,t),this._configurationResource=new u0(e,t),this._assetDatapointResource=new u1(e,t),this._flowResource=new u2(e,t),this._assetModelResource=new u4(e,t),this._alarmResource=new u5(e,t),this._agentResource=new u3(e,t),this._externalServiceResource=new u6(e,t),this._dashboardResource=new u8(e,t),this._consoleResource=new u7(e,t),this._assetResource=new u9(e,t),this._notificationResource=new me(e,t),this._gatewayServiceResource=new mt(e,t),this._assetPredictedDatapointResource=new mn(e,t),this._statusResource=new mi(e,t),this._realmResource=new mo(e,t),this._gatewayClientResource=new mr(e,t),this._userResource=new ma(e,t),this._mapResource=new ms(e,t),this._appResource=new ml(e,t),this._assetResource=new u9(e,t)}get SyslogResource(){return this._syslogResource}get ProvisioningResource(){return this._provisioningResource}get RulesResource(){return this._rulesResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get FlowResource(){return this._flowResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get AgentResource(){return this._agentResource}get ExternalServiceResource(){return this._externalServiceResource}get DashboardResource(){return this._dashboardResource}get ConsoleResource(){return this._consoleResource}get AssetResource(){return this._assetResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get MapResource(){return this._mapResource}get AppResource(){return this._appResource}}class uX{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 uJ extends uA{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class uQ extends uC{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class uZ extends uT{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u0 extends uS{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u1 extends uM{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u2 extends uL{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u4 extends uD{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u5 extends uO{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u3 extends uI{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u6 extends uR{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u8 extends u${constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u7 extends uN{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u9 extends uP{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class me extends uY{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mt extends uB{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mn extends uj{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mi extends uH{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mo extends uz{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mr extends uU{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ma extends uW{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ms extends uV{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ml extends uG{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}uE.isAxiosError;let mc=new class{get api(){return this._client}constructor(){this._axiosInstance=uE.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cg().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 uK(e,this._axiosInstance)}};var md=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())})};(gQ=vi||(vi={})).DISCONNECTED="DISCONNECTED",gQ.CONNECTED="CONNECTED",gQ.CONNECTING="CONNECTING";let mu="SUBSCRIBED:",mm="UNAUTHORIZED:",mh="TRIGGERED:",mf="EVENT:";class mp{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mb.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=vi.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===vi.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(vi.CONNECTING),this._connectingDeferred=new cy,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mb.MIN_RECONNECT_DELAY,this._onStatusChanged(vi.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!==vi.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new cy};return null!=this._pendingSubscription||this._status!==vi.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 md(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===vi.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==vi.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return md(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mp._subscriptionCounter++;if(!this._assetEventPromise){let e;mZ.authenticated||(e={filterType:"asset",realm:mZ.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===mZ.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 md(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"+mp._subscriptionCounter++;if(!this._attributeEventPromise){let e;mZ.authenticated||(e={filterType:"asset",realm:mZ.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===mZ.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===vi.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===vi.CONNECTED&&this._onStatusChanged(vi.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(vi.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<mb.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mb.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mp.MIN_RECONNECT_DELAY=0,mp.MAX_RECONNECT_DELAY=3e4,mp._subscriptionCounter=0;class mb extends mp{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="+mZ.config.realm;return this._connectDeferred=new cy,(mZ.authenticated?mZ.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(mu)){let e=JSON.parse(t.substring(mu.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.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(mh)){let e=JSON.parse(t.substring(mh.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mf)){let e=JSON.parse(t.substring(mf.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 cy,e.subscriptionId||(e.subscriptionId=mb._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=mf+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 cy;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mf+JSON.stringify(e)),t.promise}}mb._subscriptionCounter=1;let mg=["__proto__","constructor","prototype"];function m_(e){return!("string"!=typeof e||0===e.length||e.length>128||mg.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mv(e){return!(!m_(e)||e.indexOf("/")>-1)}let my={lng:mv,ns:function(e){return m_(e)}};function mw(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function mF(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mx=/\{\{(.+?)\}\}/g;function mk(e,t){let n=!1,i=e.replace(mx,(e,i)=>{let o=i.trim();if(mg.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=my[o]||mv,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mE="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mE&&"function"==typeof mE.fetch&&(e=mE.fetch);let mA=mF()&&mE?mE.XMLHttpRequest:void 0,mC="function"==typeof ActiveXObject&&mE?mE.ActiveXObject:void 0,mT=["__proto__","constructor","prototype"],mS=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mT.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mM=(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)},mL=(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=mS(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{mM(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]}),mM(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(mF()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mS("",c).slice(1)),t.queryStringParams&&(l=mS(l,t.queryStringParams));try{let e=mA?new mA:new mC("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))mT.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 mD=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:mL,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=mk(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(mw).join(", ")+"] namespaces=["+n.map(mw).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=mw(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+": "+mw(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=mk(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)})})})}};mD.type="backend";class mO extends rw{constructor(e){if(super(e),this.it=ei,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ei||null==e)return this._t=void 0,this.it=e;if(e===en)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:[]}}}mO.directiveName="unsafeHTML",mO.resultType=1,ry(mO);class mI extends mO{}mI.directiveName="unsafeSVG",mI.resultType=2;let mR=ry(mI),m$={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 mN=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 mP extends CustomEvent{constructor(){super(mP.NAME,{bubbles:!0,composed:!0})}}mP.NAME="or-iconset-added";let mY=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new mP)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return et``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):et``}},mB=class extends ex{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
16
+ `;class ex extends ey{static finalizeStyles(e){return[eF,...super.finalizeStyles(e)]}}let ek=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},eE={attribute:!0,type:String,converter:M,reflect:!1,hasChanged:L};function eA(e){return(t,n)=>{let i;return"object"==typeof n?((e=eE,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 eA({...e,state:!0,attribute:!1})}let eT=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eS(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 eT(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eT(n,i,{get(){return r(this)}})}}var eM=n(55359),eL=n.n(eM),eD=n(71770),eO=n.n(eD),eI=n(38420),eR=n.n(eI),e$=n(95355),eN=n.n(e$),eP=n(29650),eY=n.n(eP),eB=n(59974),ej=n.n(eB),eH=n(29475),ez=n.n(eH),eU=n(64383),eW=n.n(eU),eV=n(22485),eG=n.n(eV),eq=n(18508),eK=n.n(eq),eX=n(16372),eJ=n.n(eX),eQ=n(58466),eZ=n.n(eQ),e0=n(78434),e1=n.n(e0),e2=n(51582),e4=n.n(e2),e5=n(81285),e3=n.n(e5),e6=n(26461),e8=n.n(e6),e7=n(97564),e9=n.n(e7),te=n(94360),tt=n.n(te),tn=n(20469),ti=n.n(tn),to=n(96672),tr=n.n(to),ta=n(6994),ts=n.n(ta),tl=n(19804),tc=n.n(tl),td=n(81370),tu=n.n(td),tm=n(86520),th=n.n(tm),tf=n(55482),tp=n.n(tf);let tb="additionalProperties",tg="required";class t_{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tb)},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 tv=(e,t={})=>new t_(e=>n=>{switch(n){case tb:if(Object.prototype.hasOwnProperty.call(t,tb))return t[tb];return!0;case tg:if(Object.prototype.hasOwnProperty.call(t,tg))return t[tg](e);return Object.keys(e);default:return}}).schemaObject(e),ty=new Set,tw=(e,t)=>t<=1?e:e+t.toString(),tF=(e,t)=>{let n=tw(e,t);return!ty.has(n)},tx=e=>{void 0===e&&(e="undefined");let t=0;for(;!tF(e,t);)t++;let n=tw(e,t);return ty.add(n),n},tk=e=>ty.delete(e),tE=()=>ty.clear(),tA=(e,t)=>{let n=e;return(eL()(e)||eL()(t)||t.startsWith("[")||(n=e+"."),eL()(n))?t:eL()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tM),n="#"===t[0]||""===t[0];return eN()(n?2:1,t.length,2).map(e=>t[e])},tT=e=>tC(e).join("."),tS=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tM=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tL=e=>`/properties/${e.split(".").map(e=>tS(e)).join("/properties/")}`,tD=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tM(t.substr(t.lastIndexOf("/")+1));return eO()(n)}return""},tO=e=>eO()(e.replace("_"," ")),tI=(e,t)=>{let n=e.label;return"boolean"==typeof n?tR(tD(e,t),n):"string"==typeof n?tR(n,!0):"object"==typeof n?tR("string"==typeof n.text?n.text:tD(e,t),"boolean"!=typeof n.show||n.show):tR(tD(e,t),!0)},tR=(e,t)=>({text:e,show:t}),t$=(e,t)=>eL()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),tN=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>tN(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>tN(e,t)):tN(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>tN(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tP=(e,t,n)=>tY(e,t?.split("/").map(tM),n),tY=(e,t,n)=>{if(eL()(e))return;if("string"==typeof e.$ref&&(e=tP(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tY(e,o,n);let r=tY(eY()(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=tY(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:{}};(bV=g5||(g5={})).HIDE="HIDE",bV.SHOW="SHOW",bV.ENABLE="ENABLE",bV.DISABLE="DISABLE";let tj=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tH=e=>{tU(e,tj(!0))},tz=e=>{tU(e,tj(!1))},tU=(e,t)=>{if(!eL()(e)){if(tK(e))return void e.elements.forEach(e=>tU(e,t));t(e)}},tW=(e,t)=>{if(t0(e)){if(tJ(e)&&e.scope.endsWith(tL(t)))return e;else if(e.options?.detail)return tW(e.options.detail,t)}if(tK(e))for(let n of e.elements){let e=tW(n,t);if(void 0!==e)return e}},tV=(e,t)=>{if(!tJ(e))return t??"";let n=tC(e.scope);return eL()(n)?t??"":tA(t,n.join("."))},tG=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tq=e=>"Group"===e.type,tK=e=>void 0!==e.elements,tX=e=>!!e&&"object"==typeof e,tJ=e=>tX(e)&&"string"==typeof e.scope,tQ=e=>!!e&&"object"==typeof e,tZ=e=>tQ(e)&&["string","boolean"].includes(typeof e.label),t0=e=>"Control"===e.type,t1=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t1(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t1(e,o,n,i),!1);if("LEAF"===t.type)return t$(e,tV(t,n))===t.expectedValue;if(!ej()(t,"schema"))return!0;{let o=t$(e,tV(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t2=(e,t,n,i)=>t1(t,e.rule.condition,n,i),t4=(e,t,n,i)=>{let o=t2(e,t,n,i);switch(e.rule.effect){case g5.HIDE:return!o;case g5.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t2(e,t,n,i);switch(e.rule.effect){case g5.DISABLE:return!o;case g5.ENABLE:return o;default:return!0}},t3=e=>!!e.rule&&(e.rule.effect===g5.SHOW||e.rule.effect===g5.HIDE),t6=e=>!!e.rule&&(e.rule.effect===g5.ENABLE||e.rule.effect===g5.DISABLE),t8=(e,t,n,i)=>!e.rule||t4(e,t,n,i),t7=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t9=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return ez()(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)})},ne=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),nt=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nn=(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},ni=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),no=(e,t)=>eG()(nr(e),t),nr=e=>{if(eL()(e))return[];if(!eL()(e.type)&&"string"==typeof e.type)return[e.type];if(eW()(e.type))return e.type;if(!eL()(e.properties)||!eL()(e.additionalProperties))return["object"];if(!eL()(e.items))return["array"];if(!eL()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):nr(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eL()(e.allOf)){let t=ez()(e.allOf,e=>0!==nr(e).length);if(t)return nr(t)}return[]},na={schema:tP,data:t$},ns={compose:tA,fromScoped:e=>tC(e.scope).join(".")},nl={isEnabled:(e,t,n)=>t7(e,t,void 0,n),isVisible:(e,t,n)=>t8(e,t,void 0,n)},nc=e=>{let t=new(eK())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eJ()(t),t},nd=(e,t)=>void 0===e||e(t)?[]:e.errors,nu="YYYY-MM-DD",nm="HH:mm:ss",nh="YYYY-MM-DDTHH:mm:ss.sssZ",nf=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=tM(t=t.replace(/^./,""))},np=(e,t,n)=>i=>{let o=eZ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nf(e));return eZ()(i,i=>{if(-1!==ng.indexOf(i.keyword)&&!ne(i.parentSchema))return!1;let r=n(nf(i)),a=i.parentSchema;return!r||nb(a)||ne(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e1()(a,t)),r})},nb=e=>e?.type==="object"||!!e?.properties,ng=["additionalProperties","allOf","anyOf","oneOf"],n_=e=>null==e?"":e.join("\n"),nv={createLabelDescriptionFrom:tI,convertToValidClassName:ni},ny=e=>({type:e,elements:[]}),nw=e=>({type:"Control",scope:e}),nF=(e,t,n,i,o,r)=>{if(!eL()(e)&&void 0!==e.$ref)return nF(tP(r,e.$ref,r),t,n,i,o,r);if(!eL()(e)&&(!eL()(e.oneOf)||!eL()(e.anyOf)||!eL()(e.allOf))){let e=nw(n);return t.push(e),e}let a=nr(e);if(0===a.length)return null;if(a.length>1){let e=nw(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=ny(o);if(t.push(a),e.properties&&eR()(e.properties).length>1&&((e,t)=>{if(!eL()(t)){let n=eO()(t);tq(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eL()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tS(n)}`;void 0!==i.$ref&&(i=tP(r,i.$ref,r)),nF(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=nw(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nx=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eL()(e)&&!tK(e)){let n=ny(t);return n.elements.push(e),n}return e})(nF(e,[],n,"",t,i),t),nk={jsonSchema:tv,uiSchema:nx,controlElement:nw},nE="jsonforms/INIT",nA="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nT="jsonforms/UPDATE",nS="jsonforms/UPDATE_ERRORS",nM="jsonforms/VALIDATE",nL="jsonforms/ADD_RENDERER",nD="jsonforms/REMOVE_RENDERER",nO="jsonforms/ADD_CELL",nI="jsonforms/REMOVE_CELL",nR="jsonforms/SET_CONFIG",n$="jsonforms/ADD_UI_SCHEMA",nN="jsonforms/REMOVE_UI_SCHEMA",nP="jsonforms/SET_SCHEMA",nY="jsonforms/SET_UISCHEMA",nB="jsonforms/SET_VALIDATION_MODE",nj="jsonforms/SET_LOCALE",nH="jsonforms/SET_TRANSLATOR",nz="jsonforms/UPDATE_I18N",nU="jsonforms/ADD_DEFAULT_DATA",nW="jsonforms/REMOVE_DEFAULT_DATA",nV=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}},nG=(e,t=tv(e),n,i)=>({type:nE,data:e,schema:t,uischema:"object"==typeof n?n:nx(t),options:i}),nq=(e,t,n,i)=>({type:nA,data:e,schema:t,uischema:n,options:i}),nK=(e,t)=>({type:nU,schemaPath:e,data:t}),nX=e=>({type:nW,schemaPath:e}),nJ=e=>({type:nC,ajv:e}),nQ=(e,t,n)=>({type:nT,path:e,updater:t,context:n}),nZ=e=>({type:nS,errors:e}),n0=(e,t)=>({type:nL,tester:e,renderer:t}),n1=(e,t)=>({type:nO,tester:e,cell:t}),n2=(e,t)=>({type:nI,tester:e,cell:t}),n4=(e,t)=>({type:nD,tester:e,renderer:t}),n5=e=>({type:nR,config:e}),n3=e=>({type:nB,validationMode:e}),n6=(e,t)=>({type:n$,tester:e,uischema:t}),n8=e=>({type:nN,tester:e}),n7=e=>({type:nj,locale:e}),n9=e=>({type:nP,schema:e}),ie=(e,t)=>({type:nH,translator:e,errorTranslator:t}),it=(e,t,n)=>({type:nz,locale:e,translator:t,errorTranslator:n}),ii=e=>({type:nY,uischema:e});var io=Object.freeze({__proto__:null,INIT:nE,UPDATE_CORE:nA,SET_AJV:nC,UPDATE_DATA:nT,UPDATE_ERRORS:nS,VALIDATE:nM,ADD_RENDERER:nL,REMOVE_RENDERER:nD,ADD_CELL:nO,REMOVE_CELL:nI,SET_CONFIG:nR,ADD_UI_SCHEMA:n$,REMOVE_UI_SCHEMA:nN,SET_SCHEMA:nP,SET_UISCHEMA:nY,SET_VALIDATION_MODE:nB,SET_LOCALE:nj,SET_TRANSLATOR:nH,UPDATE_I18N:nz,ADD_DEFAULT_DATA:nU,REMOVE_DEFAULT_DATA:nW,isUpdateArrayContext:nV,init:nG,updateCore:nq,registerDefaultData:nK,unregisterDefaultData:nX,setAjv:nJ,update:nQ,updateErrors:nZ,registerRenderer:n0,registerCell:n1,unregisterCell:n2,unregisterRenderer:n4,setConfig:n5,setValidationMode:n3,registerUISchema:n6,unregisterUISchema:n8,setLocale:n7,setSchema:n9,setTranslator:ie,updateI18n:it,setUISchema:ii});let ir=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nO:return e.concat([{tester:n,cell:i}]);case nI:return e.filter(e=>e.tester!==n);default:return e}},ia={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},is=(e={})=>e4()({},ia,e),il=(e=is(),t)=>t.type===nR?is(t.config):e,ic={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},id=(e,t)=>t&&iu(t.options)?t.options.validationMode:e.validationMode,iu=e=>!!e&&void 0!==e.validationMode,im=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},ih=(e,t)=>{if(t){if(ip(t.options))return t.options.ajv;else if(void 0!==t.options&&tt()(t.options.compile))return t.options}return e.ajv?e.ajv:nc()},ip=e=>!!e&&void 0!==e.ajv,ib=(e=ic,t)=>{switch(t.type){case nE:{let n=ih(e,t),i=id(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nd(o,t.data),a=im(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nA:{let n=ih(e,t),i=id(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nd(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nd(o,t.data));let a=im(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:e1()(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=nd(i,e.data);return{...e,validator:i,errors:o}}case nP:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nd(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nY:return{...e,uischema:t.uischema};case nT:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e3()(e.data)),i=nd(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eY()(e.data,t.path),o=t.updater(e3()(i));n=void 0!==o?e8()(t.path,o,void 0===e.data?{}:e.data):e9()(t.path,void 0===e.data?{}:e.data);let r=nd(e.validator,n);return{...e,data:n,errors:r}}case nS:return{...e,errors:t.errors};case nB:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nd(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nd(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 nU:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nW:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},i_=e=>iv(eY()(e,"jsonforms.defaultData")),iv=e=>e;(bG=g3||(g3={})).addTooltip="addTooltip",bG.addAriaLabel="addAriaLabel",bG.removeTooltip="removeTooltip",bG.upAriaLabel="upAriaLabel",bG.downAriaLabel="downAriaLabel",bG.noSelection="noSelection",bG.removeAriaLabel="removeAriaLabel",bG.noDataMessage="noDataMessage",bG.deleteDialogTitle="deleteDialogTitle",bG.deleteDialogMessage="deleteDialogMessage",bG.deleteDialogAccept="deleteDialogAccept",bG.deleteDialogDecline="deleteDialogDecline",bG.up="up",bG.down="down";let iy=[{key:g3.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:g3.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:g3.removeTooltip,default:()=>"Delete"},{key:g3.removeAriaLabel,default:()=>"Delete button"},{key:g3.upAriaLabel,default:()=>"Move item up"},{key:g3.up,default:()=>"Up"},{key:g3.down,default:()=>"Down"},{key:g3.downAriaLabel,default:()=>"Move item down"},{key:g3.noDataMessage,default:()=>"No data"},{key:g3.noSelection,default:()=>"No selection"},{key:g3.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:g3.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:g3.deleteDialogAccept,default:()=>"Yes"},{key:g3.deleteDialogDecline,default:()=>"No"}];(bq=g6||(g6={})).clearDialogTitle="clearDialogTitle",bq.clearDialogMessage="clearDialogMessage",bq.clearDialogAccept="clearDialogAccept",bq.clearDialogDecline="clearDialogDecline";let iw=[{key:g6.clearDialogTitle,default:()=>"Clear form?"},{key:g6.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:g6.clearDialogAccept,default:()=>"Yes"},{key:g6.clearDialogDecline,default:()=>"No"}],iF=(e,t)=>tG(t)?t.i18n:e?.i18n??void 0,ix=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",ik=(e,t,n)=>iF(e,t)??ix(n),iE=(e,t,n,i)=>`${ik(e,t,n)}.${i}`,iA=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iT=(e,t,n)=>{let i=t(iE(e.parentSchema,n,nf(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},iS=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(iE(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return n_(e.map(e=>t(e,n,o)))},iM=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tG(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iF(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iL=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iA(n,t.key);o[t.key]=e(r,t.default(i))}),o},iD=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iA(n,t.key);o[t.key]=e(r,t.default(i))}),o},iO=e=>{if(void 0!==e)return e.locale},iI=e=>void 0===e?iC:e.translate,iR=e=>void 0===e?iT:e.translateError,i$=e=>iO(eY()(e,"jsonforms.i18n")),iN=()=>e=>iI(eY()(e,"jsonforms.i18n")),iP=()=>e=>iR(eY()(e,"jsonforms.i18n")),iY={locale:"en",translate:iC,translateError:iT},iB=(e=iY,t)=>{switch(t.type){case nz:{let n=t.locale??iY.locale,i=t.translator??iY.translate,o=t.errorTranslator??iY.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nH:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iT};case nj:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},ij=(e=[],t)=>{switch(t.type){case nL:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nD:return e.filter(e=>e.tester!==t.tester);default:return e}},iH=-1,iz=e=>!eL()(e)&&void 0!==e.scope,iU=e=>(t,n,i)=>{if(eL()(t)||!iz(t)||eL()(n))return!1;let o=t.scope;if(eL()(o))return!1;let r=n;return no(n,"object")&&(r=tP(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iW=(e,t)=>(n,i,o)=>{if(eL()(n)||!iz(n))return!1;let r=n.scope,a=i;return no(i,"object")&&(a=tP(i,r,o?.rootSchema)),void 0!==(a=eY()(a,e))&&t(a,o?.rootSchema)},iV=e=>iU(t=>!eL()(t)&&no(t,e)),iG=e=>iU(t=>!eL()(t)&&t.format===e&&no(t,"string")),iq=e=>t=>!eL()(t)&&t.type===e,iK=(e,t)=>n=>{if(eL()(n))return!1;let i=n.options;return!eL()(i)&&i[e]===t},iX=e=>t=>{if(eL()(t))return!1;let n=t.options;return!eL()(n)&&!tp()(n[e])},iJ=e=>t=>!eL()(e)&&!!iz(t)&&ts()(t.scope,e),iQ=e=>t=>{if(eL()(e)||!iz(t))return!1;let n=t.scope;return!eL()(n)&&tc()(n.split("/"))===e},iZ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),i0=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),i1=(e,t)=>(n,i,o)=>t(n,i,o)?e:iH,i2=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return r===iH?iH:r+e},i4=iZ(iq("Control"),iV("boolean")),i5=iZ(iq("Control"),iV("object")),i3=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i6=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i8=iZ(iq("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i7=iZ(iq("Control"),iU(e=>nt(e))),i9=iZ(iq("Control"),iU(e=>ne(e))),oe=iZ(iq("Control"),iV("integer")),ot=iZ(iq("Control"),iV("number")),on=iZ(iq("Control"),iV("string")),oi=iZ(iq("Control"),iK("multi",!0)),oo=iZ(iq("Control"),i0(iG("date"),iK("format","date"))),or=iZ(iq("Control"),i0(iG("time"),iK("format","time"))),oa=iZ(iq("Control"),i0(iG("date-time"),iK("format","date-time"))),os=iZ(iU((e,t)=>no(e,"array")&&!Array.isArray(tP(e,"items",t))),iW("items",(e,t)=>no(e.$ref?tP(t,e.$ref,t):e,"object"))),ol=iZ(iq("Control"),os),oc=(e,t,n)=>{if(eW()(e))return tu()(e,(e,i)=>e||oc(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tP(n,e.$ref,n);if(i&&!i.$ref)return oc(i,t,n)}return e.items?oc(e.items,t,n):!!e.properties&&tu()(th()(e.properties),(e,[i,o])=>e||oc(o,t,n),!1)},od=(e,t,n)=>{if(!iq("Control")(e,t,n))return!1;let i=tP(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(oc(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!ne(e)||no(e,"object")&&2==++o)||!!no(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},ou=ol,om=iZ(iq("Control"),iU((e,t)=>0!==nr(e).length&&!Array.isArray(tP(e,"items",t))),iW("items",(e,t)=>{let n=nr(e.$ref?tP(t,e.$ref,t):e);return 1===n.length&&eG()(["integer","number","boolean","string"],n[0])})),oh=iZ(iq("Control"),i0(iV("number"),iV("integer")),iU(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iK("slider",!0)),of=iZ(iq("Control"),iV("integer"),iK("format",!0)),op=e=>"Categorization"===e.type,ob=e=>"Category"===e.type,og=e=>!eL()(e.elements)&&e.elements.map(e=>op(e)?og(e):ob(e)).reduce((e,t)=>e&&t,!0),o_=e=>og(e),ov=e=>(t,n,i)=>!e(t,n,i);var oy=Object.freeze({__proto__:null,NOT_APPLICABLE:iH,isControl:iz,schemaMatches:iU,schemaSubPathMatches:iW,schemaTypeIs:iV,formatIs:iG,uiTypeIs:iq,optionIs:iK,hasOption:iX,scopeEndsWith:iJ,scopeEndIs:iQ,and:iZ,or:i0,rankWith:i1,withIncreasedRank:i2,isBooleanControl:i4,isObjectControl:i5,isAllOfControl:i3,isAnyOfControl:i6,isOneOfControl:i8,isEnumControl:i7,isOneOfEnumControl:i9,isIntegerControl:oe,isNumberControl:ot,isStringControl:on,isMultiLineControl:oi,isDateControl:oo,isTimeControl:or,isDateTimeControl:oa,isObjectArray:os,isObjectArrayControl:ol,isObjectArrayWithNesting:od,isArrayObjectControl:ou,isPrimitiveArrayControl:om,isRangeControl:oh,isNumberFormatControl:of,isCategorization:op,isCategory:ob,hasCategory:og,categorizationHasCategory:o_,not:ov});let ow=(e=[],t)=>{switch(t.type){case n$:return e.slice().concat({tester:t.tester,uischema:t.uischema});case nN:{let n=e.slice();return tr()(n,e=>e.tester===t.tester),n}default:return e}},oF=e=>(t,n,i)=>{let o=ti()(e,e=>e.tester(t,n,i));if(void 0!==o&&o.tester(t,n,i)!==iH)return o.uischema},ox={core:ib,renderers:ij,cells:ir,config:il,uischemas:ow,defaultData:ig,i18n:iB},ok=(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():nk.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=oF(e)(t,n,i);return void 0===s?"function"==typeof o?o():nk.uiSchema(t,o,"#",a):s},oE=(e,t,n)=>n(e,t),oA=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return np(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oC=(e,t)=>oA(e,t,t=>t===e),oT=(e,t)=>oA(e,t,t=>t.startsWith(e+".")),oS=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oM=(e,t)=>n=>oT(e,t)(n.jsonforms.core),oL=e=>oP(eY()(e,"jsonforms.core")),oD=e=>oY(eY()(e,"jsonforms.core")),oO=e=>oB(eY()(e,"jsonforms.core")),oI=e=>oj(eY()(e,"jsonforms.core")),oR=e=>eY()(e,"jsonforms.renderers"),o$=e=>eY()(e,"jsonforms.cells"),oN=e=>eY()(e,"jsonforms.uischemas"),oP=e=>eY()(e,"data"),oY=e=>eY()(e,"schema"),oB=e=>eY()(e,"uischema"),oj=e=>eY()(e,"ajv"),oH=e=>e.jsonforms.config,oz=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t6(n)?t7(n,o,t?.path,oI(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)),oU=(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]])},oW=(e,t)=>{oU(e,t,-1)},oV=(e,t)=>{oU(e,t,1)},oG=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oq=(e,t)=>e&&!t,oK=(e,t)=>{let n=oX(e,t);return void 0===n?{}:n},oX=(e,t)=>{let n="string"==typeof e.$ref?na.schema(t,e.$ref,t):e;if(void 0!==n.default)return oQ(n,t);if(no(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nn(new Date,n.format):"";if(no(n,"integer")||no(n,"number"))return 0;if(no(n,"boolean"))return!1;if(no(n,"array"))return[];if(no(n,"object"))return oQ(n,t);if(no(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oJ(e[n],t);if(void 0!==i)return i}},oJ=(e,t)=>{if(e.length>0)for(let n of e){let e=oX(n,t);if(void 0!==e)return e}},oQ=(e,t)=>{if(no(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?na.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e3()(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?na.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e3()(r.default))}}),n}return e3()(e.default)},oZ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,o0=(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}},o1=(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}},o2=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oL(e),d=tV(l,t.path),u=void 0===t.visible||t3(l)?t8(l,c,t.path,oI(e)):t.visible,m=t.id,h=oD(e),f=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tM((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=na.schema(n,a,h))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=na.schema(t.schema||h,l.scope,h),b=oS(d,p)(e),g=void 0!==p?p.description:"",_=na.data(c,d),v=tI(l,p),y=v.show?v.text:"",w=oH(e),F=oz(e,t,l,p||h,c,w),x=p??h,k=iN()(e),E=iP()(e),A=ik(x,l,d),C=k(iE(x,l,d,"label"),y,{schema:x,uischema:l,path:d,errors:b});return{data:_,description:k(iE(x,l,d,"description"),g,{schema:x,uischema:l,path:d,errors:b}),errors:iS(b,E,k,x,l,d),label:C,visible:u,enabled:F,id:m,path:d,required:f,uischema:l,schema:x,config:oH(e),cells:t.cells||e.jsonforms.cells,rootSchema:h,i18nKeyPrefix:A}},o4=e=>({handleChange(t,n){e(nQ(t,()=>n))}}),o5=(e,t)=>{let n=o2(e,t),i=t.options||n.schema.enum?.map(t=>o0(t,iN()(e),ik(n.schema,n.uischema,n.path)))||n.schema.const&&[o0(n.schema.const,iN()(e),ik(n.schema,n.uischema,n.path))];return{...n,options:i}},o3=(e,t)=>{let n=o2(e,t),i=t.options||n.schema.oneOf?.map(t=>o1(t,iN()(e),ik(n.schema,n.uischema,n.path)));return{...n,options:i}},o6=(e,t)=>{let n=o2(e,t),i=n.schema.items;i=i&&i.$ref?tP(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>o1(t,e.jsonforms.i18n?.translate,ik(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>o0(t,e.jsonforms.i18n?.translate,ik(n.schema,n.uischema,n.path)));return{...n,options:o}},o8=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tA(i,`${a}`),l=rm(oL(e),s,r,n,oD(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o7=(e,t)=>{let{...n}=o2(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o9=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o7(e,t),s=na.schema(i,"items",a.rootSchema),l=oM(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oR(e),cells:t.cells||o$(e)}},re=e=>({addItem:(t,n)=>()=>{e(nQ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nQ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nQ(t,e=>(oW(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nQ(t,e=>(oV(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),rt=e=>({addItem:(t,n)=>{e(nQ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nQ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),rn={visible:!0,enabled:!0,path:"",direction:"column"},ri=(e,t)=>{let n=oL(e),{uischema:i}=t,o=void 0===t.visible||t3(i)?t8(t.uischema,n,t.path,oI(e)):t.visible,r=na.data(n,t.path),a=oH(e),s=oz(e,t,i,void 0,n,a),l=iN()(e),c=tQ(i)?iM(i,l):void 0;return{...rn,renderers:t.renderers||oR(e),cells:t.cells||o$(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":rn.direction),config:a,label:c}},ro=(e,t)=>({renderers:t.renderers||eY()(e.jsonforms,"renderers"),cells:t.cells||eY()(e.jsonforms,"cells"),schema:t.schema||oD(e),rootSchema:oD(e),uischema:t.uischema||oO(e),path:t.path,enabled:t.enabled,config:oH(e)}),rr={...rn,errors:[]},ra=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o2(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=na.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:oN(e)}},rs=(e,t)=>ra(e,t,"allOf"),rl=(e,t)=>ra(e,t,"anyOf"),rc=(e,t)=>ra(e,t,"oneOf"),rd=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o7(e,t),l=na.schema(i,"items",s.rootSchema),c=iN()(e),d=iS(oM(n,l)(e),iP()(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}},ru=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t3(n)?t8(t.uischema,oL(e),t.path,oI(e)):t.visible,o=n.text,r=iN()(e),a=iF(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oH(e),renderers:t.renderers||oR(e),cells:t.cells||o$(e),uischema:n}},rm=(e,t,n,i,o,r,a)=>{let s,l=na.data(e,t);if(n||(n=t9(i)),!n)return"";let c=eY()(l,n);if(void 0===c)return"";let d=na.schema(i,"#"+tL(n),o);if(nt(d))s=o0(c,r,ik(d,tW(a,n),t+"."+n));else if(ne(d)){let e=d.oneOf.find(e=>e1()(e.const,c));e&&(s=o1(e,r,ik(e,void 0,t+"."+n)))}return s?s.label:c},rh=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oL(e),d=void 0!==t.visible?t.visible:t8(a,c,void 0,oI(e)),u=oD(e),m=oH(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oz(e,t,a,o||u,c,m));let h=iN()(e),f=iP()(e),p=iS(oS(r,o)(e),f,h,o,a,r),b=eL()(p);return{data:na.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:b,schema:o,uischema:a,config:oH(e),rootSchema:u,renderers:s,cells:l}},rf=(e,t)=>{let n=rh(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rp=(e,t)=>{let n=rh(e,t),i=t.options||n.schema.enum?.map(t=>o0(t,iN()(e),ik(n.schema,n.uischema,n.path)))||n.schema.const&&[o0(n.schema.const,iN()(e),ik(n.schema,n.uischema,n.path))];return{...n,options:i}},rb=(e,t)=>{let n=rh(e,t),i=t.options||n.schema.oneOf?.map(t=>o1(t,iN()(e),ik(n.schema,n.uischema,n.path)));return{...n,options:i}},rg=o4,r_=(e,t)=>{let{handleChange:n}=rg(e);return{handleChange:t.handleChange||n}},rv=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&na.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:ok(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),ry=e=>(...t)=>({_$litDirective$:e,values:t});class rw{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 rF=ry(class extends rw{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 en}}),{I:rx}={M:N,P:P,A:Y,C:1,L:es,R:ed,D:W,V:ec,I:eu,H:em,N:ef,U:ep,B:eh,F:eb},rk=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rk(e,t);return!0},rE=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rA=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),rS(t)}};function rC(e){void 0!==this._$AN?(rE(this),this._$AM=e,rA(this)):this._$AM=e}function rT(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++)rk(i[e],!1),rE(i[e]);else null!=i&&(rk(i,!1),rE(i));else rk(this,e)}let rS=e=>{2==e.type&&(e._$AP??=rT,e._$AQ??=rC)};class rM extends rw{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rA(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rk(this,e),rE(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 rL{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rD{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 rO=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rI=ry(class extends rM{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rL(this),this._$CX=new rD}render(...e){return e.find(e=>!rO(e))??en}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(!rO(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 en}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rR=function(e,t){return(rR=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 r$(e,t){function n(){this.constructor=e}rR(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rN=function(){return(rN=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)},rP=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}(),rY=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 rP({}))},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 rB(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 rj(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rH(n,t))return n;n=n.parentElement}return null}function rH(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var 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 rU(e,t){function n(){this.constructor=e}rz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rW=function(){return(rW=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)},rV={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rG=function(e){function t(n){var i=e.call(this,rW(rW({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rV},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}(rP),rq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rU(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 rG({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}(rY),rK=function(e,t){return(rK=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 rX(e,t){function n(){this.constructor=e}rK(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rJ=function(){return(rJ=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)},rQ={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rZ=function(e){function t(n){var i=e.call(this,rJ(rJ({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rX(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rQ},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(rQ.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rQ.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rQ.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rQ.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rQ.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rQ.LINE_RIPPLE_DEACTIVATING))},t}(rP),r0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rX(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 rZ({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}(rY),r1=function(e,t){return(r1=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 r2(e,t){function n(){this.constructor=e}r1(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r4=function(){return(r4=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)},r5={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r3={NOTCH_ELEMENT_PADDING:8},r6={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r8=function(e){function t(n){return e.call(this,r4(r4({},t.defaultAdapter),n))||this}return r2(t,e),Object.defineProperty(t,"strings",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r6},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r3},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+=r3.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}(rP),r7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r2(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r5.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rG.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r6.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r6.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 r8({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}(rY),r9=function(e,t){return(r9=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 ae(e,t){function n(){this.constructor=e}r9(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var at=function(){return(at=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)},an={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"},ai={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"},ao={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ar=["touchstart","pointerdown","mousedown","keydown"],aa=["touchend","pointerup","mouseup","contextmenu"],as=[],al=function(e){function t(n){var i=e.call(this,at(at({},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 ae(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ai},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ao},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&&(ar.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_):aa.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ar.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_),aa.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&&as.length>0&&as.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(as.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){as=[],!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)},ao.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=at({},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}(rP),ac=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return ae(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=g8;if("boolean"==typeof g8&&!t)return g8;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||(g8=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,rB())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rB())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rH(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rB())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rB())},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 al(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}(rY),ad={ROOT:"mdc-text-field-character-counter"},au={ROOT_SELECTOR:"."+ad.ROOT},am=function(e){function t(n){return e.call(this,rN(rN({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ad},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return au},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}(rP),ah=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 am({setContent:function(t){e.root.textContent=t}})},t}(rY),af={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"},ap={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"},ab={LABEL_SCALE:.75},ag=["pattern","min","max","required","step","minlength","maxlength"],a_=["color","date","datetime-local","month","range","time","week"],av=["mousedown","touchstart"],ay=["click","keydown"],aw=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rN(rN({},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 r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ap},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ab},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return a_.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_),av.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),ay.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_),av.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),ay.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 ag.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()*ab.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(af.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(af.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}(rP),aF={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"},ax={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+aF.ROOT},ak=function(e){function t(n){return e.call(this,rN(rN({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aF},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ax},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(ax.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(aF.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(aF.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(aF.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(aF.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(aF.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(aF.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(ax.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(aF.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(aF.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(ax.ROLE,"alert")):this.adapter.removeAttr(ax.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(ax.ARIA_HIDDEN,"true")},t}(rP),aE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 ak({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}(rY),aA={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aC={ROOT:"mdc-text-field__icon"},aT=["click","keydown"],aS=function(e){function t(n){var i=e.call(this,rN(rN({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return r$(t,e),Object.defineProperty(t,"strings",{get:function(){return aA},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aC},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"),aT.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aT.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",aA.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}(rP),aM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 aS({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(aS.strings.ICON_EVENT,{},!0)}})},t}(rY),aL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(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 ac(e,t)}),void 0===t&&(t=function(e){return new r0(e)}),void 0===n&&(n=function(e){return new aE(e)}),void 0===i&&(i=function(e){return new ah(e)}),void 0===o&&(o=function(e){return new aM(e)}),void 0===r&&(r=function(e){return new rq(e)}),void 0===a&&(a=function(e){return new r7(e)}),this.input_=this.root.querySelector(af.INPUT_SELECTOR);var s=this.root.querySelector(af.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(af.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(af.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=ak.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(ap.HELPER_LINE),h=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=h?n(h):null;var f=am.strings,p=this.root.querySelector(f.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(f.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var b=this.root.querySelector(af.LEADING_ICON_SELECTOR);this.leadingIcon_=b?o(b):null;var g=this.root.querySelector(af.TRAILING_ICON_SELECTOR);this.trailingIcon_=g?o(g):null,this.prefix_=this.root.querySelector(af.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(af.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 aw(rN(rN(rN(rN(rN({},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,rB())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rB())}}},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(ap.TEXTAREA),i=this.root.classList.contains(ap.OUTLINED);if(n||i)return null;var o=rN(rN({},ac.createAdapter(this)),{isSurfaceActive:function(){return rH(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rB())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rB())}});return e(this.root,new al(o))},t}(rY),aD=function(e,t){return(aD=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 aO(e,t){function n(){this.constructor=e}aD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aI=function(){return(aI=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)},aR={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},a$={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 aN(e){return!!e.document&&"function"==typeof e.document.createElement}function aP(e,t){if(aN(e)&&t in aR){var n=e.document.createElement("div"),i=aR[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aY(e,t){if(aN(e)&&t in a$){var n=e.document.createElement("div"),i=a$[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aB={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"},aj={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"},aH={ANIM_END_LATCH_MS:250},az=function(e){function t(n){var i=e.call(this,aI(aI({},t.defaultAdapter),n))||this;return i.currentCheckState_=aj.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aj},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aH},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(aB.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aB.DISABLED):this.adapter.removeClass(aB.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},aH.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=aj.TRANSITION_STATE_UNCHECKED,i=aB.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=aj.TRANSITION_STATE_INDETERMINATE,t=aj.TRANSITION_STATE_CHECKED,n=aj.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aj.TRANSITION_STATE_INIT,o=aj.TRANSITION_STATE_CHECKED,r=aj.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(aj.ARIA_CHECKED_ATTR,aj.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aj.ARIA_CHECKED_ATTR)},t}(rP),aU=["checked","indeterminate"],aW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aO(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=aj.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(aY(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aY(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new az({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=aI(aI({},ac.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rH(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rB())}});return new ac(this.root,new al(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aU.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aV(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);aU.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aV(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aj.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}(rY);function aV(e){return!!e&&"function"==typeof e.set}var aG=function(e,t){return(aG=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 aq(e,t){function n(){this.constructor=e}aG(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aK=function(){return(aK=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)},aX={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aJ={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aQ=function(e){function t(n){return e.call(this,aK(aK({},t.defaultAdapter),n))||this}return aq(t,e),Object.defineProperty(t,"strings",{get:function(){return aJ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aX},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(aX.DISABLED):this.adapter.removeClass(aX.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(aX.CHECKED):this.adapter.removeClass(aX.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aJ.ARIA_CHECKED_ATTR,""+!!e)},t}(rP),aZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aq(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 aQ({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=aQ.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aK(aK({},ac.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rH(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rB())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new ac(this.root,new al(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aQ.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rY),a0=function(e,t){return(a0=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 a1(e,t){function n(){this.constructor=e}a0(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a2=function(){return(a2=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)},a4="mdc-slider--disabled",a5="mdc-slider__thumb",a3="mdc-slider__thumb--top",a6="mdc-slider__thumb--with-indicator",a8="mdc-slider__tick-marks",a7="mdc-slider__tick-mark--active",a9="mdc-slider__tick-mark--inactive",se="disabled",st="value",sn="step";(bK=g7||(g7={}))[bK.ACTIVE=0]="ACTIVE",bK[bK.INACTIVE=1]="INACTIVE",(bX=g9||(g9={}))[bX.START=1]="START",bX[bX.END=2]="END";var si="u">typeof window,so=function(e){function t(n){var i=e.call(this,a2(a2({},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 a1(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(a4),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?g9.START:g9.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",g9.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(st,g9.END),st),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(st,g9.START),st):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(sn,g9.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,sn)),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(g9.START)},this.inputEndChangeListener=function(){e.handleInputChange(g9.END)},this.inputStartFocusListener=function(){e.handleInputFocus(g9.START)},this.inputEndFocusListener=function(){e.handleInputFocus(g9.END)},this.inputStartBlurListener=function(){e.handleInputBlur(g9.START)},this.inputEndBlurListener=function(){e.handleInputBlur(g9.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,g9.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,g9.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(a4),this.isRange&&this.adapter.setInputAttribute(se,"",g9.START),this.adapter.setInputAttribute(se,"",g9.END)):(this.adapter.removeClass(a4),this.isRange&&this.adapter.removeInputAttribute(se,g9.START),this.adapter.removeInputAttribute(se,g9.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(g9.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(g9.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===g9.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===g9.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(a6,g9.START),this.adapter.addThumbClass(a6,g9.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(g9.START)||this.adapter.isInputFocused(g9.END)||(this.adapter.removeThumbClass(a6,g9.START),this.adapter.removeThumbClass(a6,g9.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===g9.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a6,e),this.isRange)){var t=e===g9.START?g9.END:g9.START;this.adapter.addThumbClass(a6,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a6,e),this.isRange)){var t=e===g9.START?g9.END:g9.START;this.adapter.removeThumbClass(a6,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 g9.END;var n=this.adapter.getThumbBoundingClientRect(g9.START),i=this.adapter.getThumbBoundingClientRect(g9.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?g9.START:r?g9.END:t<this.valueStart?g9.START:t>this.value?g9.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()?g9.END:g9.START:this.adapter.isRTL()?g9.START:g9.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===g9.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(st,n,e),this.isRange&&e===g9.START?this.adapter.setInputAttribute("min",n,g9.END):this.isRange&&e===g9.END&&this.adapter.setInputAttribute("max",n,g9.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===g9.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===g9.START?g9.START:g9.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,g9.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(g7.INACTIVE),o=Array.from({length:t}).fill(g7.ACTIVE),r=Array.from({length:n}).fill(g7.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===g9.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===g9.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===g9.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===g9.START&&e>this.value)?this.value:this.isRange&&t===g9.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=si?aP(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===g9.START||a&&e!==g9.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!==g9.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",g9.START),e!==g9.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",g9.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)",g9.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,g9.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,g9.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=si?aP(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,g9.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,g9.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,g9.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,g9.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(a3,n||g9.END),this.adapter.removeThumbClass(a3,n===g9.START?g9.END:g9.START)):(this.adapter.removeThumbClass(a3,g9.START),this.adapter.removeThumbClass(a3,g9.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(g9.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g9.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g9.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(g9.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(g9.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(g9.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g9.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g9.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(g9.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(g9.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(g9.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g9.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g9.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(g9.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(g9.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(g9.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g9.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g9.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(g9.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(g9.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=si&&!!window.PointerEvent,t}(rP),sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return a1(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 so({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("."+a8);n||((n=document.createElement("div")).classList.add(a8),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("."+a5)),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===g9.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===g9.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===g9.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]===g7.ACTIVE?a7:a9;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]===g7.ACTIVE?(n[i].classList.add(a7),n[i].classList.remove(a9)):(n[i].classList.add(a9),n[i].classList.remove(a7))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a5)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a2(a2({},ac.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 rH(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 ac(o,new al(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rY),sa=function(e,t){return(sa=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 ss(e,t){function n(){this.constructor=e}sa(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sl=function(){return(sl=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)},sc={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"},sd={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"])'},su={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(bJ=_e||(_e={}))[bJ.BOTTOM=1]="BOTTOM",bJ[bJ.CENTER=2]="CENTER",bJ[bJ.RIGHT=4]="RIGHT",bJ[bJ.FLIP_RTL=8]="FLIP_RTL",(bQ=_t||(_t={}))[bQ.TOP_LEFT=0]="TOP_LEFT",bQ[bQ.TOP_RIGHT=4]="TOP_RIGHT",bQ[bQ.BOTTOM_LEFT=1]="BOTTOM_LEFT",bQ[bQ.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",bQ[bQ.TOP_START=8]="TOP_START",bQ[bQ.TOP_END=12]="TOP_END",bQ[bQ.BOTTOM_START=9]="BOTTOM_START",bQ[bQ.BOTTOM_END=13]="BOTTOM_END";var sm=function(e,t){return(sm=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 sh(e,t){function n(){this.constructor=e}sm(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sf=function(){return(sf=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)},sp=function(e,t){return(sp=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 sb(e,t){function n(){this.constructor=e}sp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sg=function(){return(sg=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)},s_={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"},sv={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 ."+s_.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+s_.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+s_.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+s_.LIST_ITEM_CLASS+" a,\n ."+s_.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+s_.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},sy={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sw="Backspace",sF="Enter",sx="Spacebar",sk="PageUp",sE="PageDown",sA="Home",sC="ArrowLeft",sT="ArrowUp",sS="ArrowRight",sM="ArrowDown",sL="Delete",sD="Escape",sO=new Set;sO.add(sw),sO.add(sF),sO.add(sx),sO.add(sk),sO.add(sE),sO.add("End"),sO.add(sA),sO.add(sC),sO.add(sT),sO.add(sS),sO.add(sM),sO.add(sL),sO.add(sD);var sI=new Map;sI.set(8,sw),sI.set(13,sF),sI.set(32,sx),sI.set(33,sk),sI.set(34,sE),sI.set(35,"End"),sI.set(36,sA),sI.set(37,sC),sI.set(38,sT),sI.set(39,sS),sI.set(40,sM),sI.set(46,sL),sI.set(27,sD);var sR=new Set;function s$(e){var t=e.key;if(sO.has(t))return t;var n=sI.get(e.keyCode);return n||"Unknown"}sR.add(sk),sR.add(sE),sR.add("End"),sR.add(sA),sR.add(sC),sR.add(sT),sR.add(sS),sR.add(sM);var sN=["input","button","textarea","select"],sP=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sN.indexOf(n)&&e.preventDefault()}};function sY(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(){sj(t)},sy.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 sB(e){return e.typeaheadBuffer.length>0}function sj(e){e.typeaheadBuffer=""}function sH(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===s$(n),c="ArrowUp"===s$(n),d="ArrowRight"===s$(n),u="ArrowDown"===s$(n),m="Home"===s$(n),h="End"===s$(n),f="Enter"===s$(n),p="Spacebar"===s$(n);if(l||c||d||u||m||h||f)return -1;if(!p&&1===n.key.length){sP(n);var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sY(b,t)}if(!p)return -1;if(i&&sP(n),i&&sB(t)){var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sY(b,t)}return -1}var sz=function(e){function t(n){var i=e.call(this,sg(sg({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=sy.UNSET_INDEX,i.focusedItemIndex=sy.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 sb(t,e),Object.defineProperty(t,"strings",{get:function(){return sv},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return s_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sy},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,s_.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,s_.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&&sB(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"===s$(e),r="ArrowUp"===s$(e),a="ArrowRight"===s$(e),s="ArrowDown"===s$(e),l="Home"===s$(e),c="End"===s$(e),d="Enter"===s$(e),u="Spacebar"===s$(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,s_.LIST_ITEM_DISABLED_CLASS)}};sH(h,this.typeaheadState)}return}var f=this.adapter.getFocusedElementIndex();if(-1!==f||!((f=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)sP(e),this.focusNextElement(f);else if(this.isVertical_&&r||!this.isVertical_&&o)sP(e),this.focusPrevElement(f);else if(l)sP(e),this.focusFirstElement();else if(c)sP(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===sy.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(sP(e),this.adapter.listItemAtIndexHasClass(f,s_.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,s_.LIST_ITEM_DISABLED_CLASS)}};sH(h,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===sy.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,s_.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,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sv.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sv.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=s_.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=s_.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==sy.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==sy.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===sy.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sv.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sv.ARIA_CURRENT:sv.ARIA_SELECTED;if(this.selectedIndex_!==sy.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==sy.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sv.ARIA_SELECTED:sv.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==sy.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===sy.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!==sy.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_!==sy.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===sy.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_===sy.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,s_.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),sY({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,s_.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(){sj(this.typeaheadState)},t}(rP),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sb(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("."+s_.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(sv.ARIA_ORIENTATION);this.vertical=e!==sv.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(sv.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+s_.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+s_.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sv.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sv.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sv.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 sz({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(sv.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sv.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sv.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(sv.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(sv.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(sv.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rj(e.target,"."+s_.LIST_ITEM_CLASS+", ."+s_.ROOT);return t&&rH(t,"."+s_.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(s_.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rH(e.target,sv.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rY),sW=function(e,t){return(sW=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 sV(e,t){function n(){this.constructor=e}sW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sG=function(){return(sG=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)},sq=function(e){function t(n){var i=e.call(this,sG(sG({},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=_t.TOP_START,i.originCorner=_t.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sV(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sd},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return su},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return _t},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^_e.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()},su.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()},su.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,_e.BOTTOM)?"bottom":"top",r=this.hasBit(n,_e.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>su.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,_e.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,_e.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,_e.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,_e.FLIP_RTL),h=this.hasBit(this.anchorCorner,_e.RIGHT)||this.hasBit(r,_e.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,b=o-c.width>0,g=this.hasBit(r,_e.FLIP_RTL)&&this.hasBit(r,_e.RIGHT);return b&&g&&u||!p&&g?r=this.unsetBit(r,_e.RIGHT):(p&&f&&u||p&&!f&&h||!b&&i>=o)&&(r=this.setBit(r,_e.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,_e.BOTTOM),r=this.hasBit(this.anchorCorner,_e.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,_e.RIGHT),i=this.hasBit(this.anchorCorner,_e.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,_e.BOTTOM),i=this.hasBit(this.anchorCorner,_e.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}(rP),sK=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sV(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(sc.ANCHOR)?t:null,this.root.classList.contains(sc.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(sd.OPENED_EVENT,this.registerBodyClickListener),this.listen(sd.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sd.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sd.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(sc.FIXED):this.root.classList.remove(sc.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 sq({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(sq.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sq.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===_n||i)&&(_n="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),_n+"-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}(rY),sX={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sJ={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sQ={FOCUS_ROOT_INDEX:-1};(bZ=_i||(_i={}))[bZ.NONE=0]="NONE",bZ[bZ.LIST_ROOT=1]="LIST_ROOT",bZ[bZ.FIRST_ITEM=2]="FIRST_ITEM",bZ[bZ.LAST_ITEM=3]="LAST_ITEM";var sZ=function(e){function t(n){var i=e.call(this,sf(sf({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=_i.LIST_ROOT,i}return sh(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sJ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sQ},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)},sq.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case _i.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case _i.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case _i.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,sJ.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sX.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sX.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sJ.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sJ.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,s_.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sJ.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}(rP),s0=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sh(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sK(e)}),void 0===t&&(t=function(e){return new sU(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(sJ.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(sq.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sz.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sq.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sz.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:sy.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 sZ({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(sJ.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(sJ.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rj(e.items[t],"."+sX.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rj(e.items[t],"."+sX.MENU_SELECTION_GROUP).querySelector("."+sX.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rY),s1={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"},s2={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"},s4={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s5=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sl(sl({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s4.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return ss(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s2},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===s4.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!==s4.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(s1.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(s1.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(s1.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(s1.FOCUSED),n=e||t,i=this.adapter.hasClass(s1.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(s1.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(s1.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(s1.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(s1.FOCUSED)){var t=s$(e)===sF,n=s$(e)===sx,i=s$(e)===sT,o=s$(e)===sM;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(s1.FOCUSED);if(e){var n=s4.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(s1.INVALID),this.adapter.removeMenuClass(s1.MENU_INVALID)):(this.adapter.addClass(s1.INVALID),this.adapter.addMenuClass(s1.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(s1.REQUIRED)&&!this.adapter.hasClass(s1.DISABLED)?this.getSelectedIndex()!==s4.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(s1.REQUIRED):this.adapter.removeClass(s1.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(_t.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(s1.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(s1.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(s1.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(s1.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(s2.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s2.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s4.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(rP),s3={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s6={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s8=function(e){function t(n){return e.call(this,sl(sl({},t.defaultAdapter),n))||this}return ss(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s6},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s3},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(s3.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s6.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s6.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s6.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s6.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s3.ROLE):this.adapter.setAttr(s3.ROLE,"alert");return}this.adapter.removeAttr(s3.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s3.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s3.ARIA_HIDDEN,"true")},t}(rP),s7=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 s8({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}(rY),s9={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},le=["click","keydown"],lt=function(e){function t(n){var i=e.call(this,sl(sl({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return ss(t,e),Object.defineProperty(t,"strings",{get:function(){return s9},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"),le.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;le.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",s9.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}(rP),ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 lt({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(lt.strings.ICON_EVENT,{},!0)}})},t}(rY),li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ss(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 rq(e)}),void 0===t&&(t=function(e){return new r0(e)}),void 0===n&&(n=function(e){return new r7(e)}),void 0===i&&(i=function(e){return new s0(e)}),void 0===o&&(o=function(e){return new ln(e)}),void 0===r&&(r=function(e){return new s7(e)}),this.selectAnchor=this.root.querySelector(s2.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s2.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s2.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s2.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s2.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s2.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s2.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s2.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s2.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s2.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(s1.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(sd.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sd.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sJ.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(sd.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sd.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sJ.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(s2.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s5(sl(sl(sl(sl({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s2.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(s2.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sl(sl({},ac.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new ac(this.selectAnchor,new al(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(s2.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(s2.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}(rY),lo=function(e,t){return(lo=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 lr(e,t){function n(){this.constructor=e}lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var la=function(){return(la=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)},ls={ROOT:"mdc-form-field"},ll={LABEL_SELECTOR:".mdc-form-field > label"},lc=function(e){function t(n){var i=e.call(this,la(la({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return lr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ls},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ll},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}(rP),ld=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return lr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=lc.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new lc({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}(rY),lu=function(e,t){return(lu=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 lm(e,t){function n(){this.constructor=e}lu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lh=function(){return(lh=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)},lf={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lp={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"},lb=function(e){function t(n){var i=e.call(this,lh(lh({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return lm(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lf},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lp},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(lp.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lp.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lp.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(lp.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(lf.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lf.ICON_BUTTON_ON):this.adapter.removeClass(lf.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lp.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lp.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lp.ARIA_LABEL,t||"")}else this.adapter.setAttr(lp.ARIA_PRESSED,""+e)},t}(rP),lg=lb.strings,l_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return lm(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 lb({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lg.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 ac(this.root);return e.unbounded=!0,e},t}(rY);n(44532),(b0=_o||(_o={})).CREATE="CREATE",b0.UPDATE="UPDATE",b0.DELETE="DELETE",(b1=_r||(_r={})).LOW="LOW",b1.MEDIUM="MEDIUM",b1.HIGH="HIGH",(b2=_a||(_a={})).MANUAL="MANUAL",b2.CLIENT="CLIENT",b2.GLOBAL_RULESET="GLOBAL_RULESET",b2.REALM_RULESET="REALM_RULESET",b2.ASSET_RULESET="ASSET_RULESET",b2.AGENT="AGENT",(b4=_s||(_s={})).OPEN="OPEN",b4.ACKNOWLEDGED="ACKNOWLEDGED",b4.IN_PROGRESS="IN_PROGRESS",b4.RESOLVED="RESOLVED",b4.CLOSED="CLOSED",(b5=_l||(_l={})).BOTTOM_LEFT="BOTTOM_LEFT",b5.BOTTOM_RIGHT="BOTTOM_RIGHT",b5.TOP_LEFT="TOP_LEFT",b5.TOP_RIGHT="TOP_RIGHT",(b3=_c||(_c={})).CREATE="CREATE",b3.READ="READ",b3.UPDATE="UPDATE",b3.DELETE="DELETE",(b6=_d||(_d={})).NONE="NONE",b6.FORECAST="FORECAST",b6.SETPOINT="SETPOINT",(b8=_u||(_u={})).DISCONNECTED="DISCONNECTED",b8.CONNECTING="CONNECTING",b8.DISCONNECTING="DISCONNECTING",b8.CONNECTED="CONNECTED",b8.DISABLED="DISABLED",b8.WAITING="WAITING",b8.ERROR="ERROR",b8.STOPPED="STOPPED",(b7=_m||(_m={})).REQUEST_START="REQUEST_START",b7.REQUEST_REPEATING="REQUEST_REPEATING",b7.REQUEST_CANCEL="REQUEST_CANCEL",b7.READY="READY",b7.COMPLETED="COMPLETED",b7.RUNNING="RUNNING",b7.CANCELLED="CANCELLED",(b9=_h||(_h={})).TOGGLE="TOGGLE",b9.INCREMENT="INCREMENT",b9.DECREMENT="DECREMENT",b9.NEGATE="NEGATE",(ge=_f||(_f={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",ge.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",ge.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",ge.INVALID_VALUE="INVALID_VALUE",ge.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",ge.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",ge.CANNOT_PROCESS="CANNOT_PROCESS",ge.QUEUE_FULL="QUEUE_FULL",ge.UNKNOWN="UNKNOWN",ge.ASSET_ID_MISSING="ASSET_ID_MISSING",ge.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(gt=_p||(_p={})).PUBLIC="PUBLIC",gt.SHARED="SHARED",gt.PRIVATE="PRIVATE",(gn=_b||(_b={})).OFF="OFF",gn.ONE_MIN="ONE_MIN",gn.FIVE_MIN="FIVE_MIN",gn.QUARTER="QUARTER",gn.ONE_HOUR="ONE_HOUR",(gi=_g||(_g={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",gi.KEEP_LAYOUT="KEEP_LAYOUT",gi.REDIRECT="REDIRECT",gi.BLOCK_DEVICE="BLOCK_DEVICE",(go=__||(__={})).CSV="CSV",go.CSV_CROSSTAB="CSV_CROSSTAB",go.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(gr=_v||(_v={})).MINUTE="MINUTE",gr.HOUR="HOUR",gr.DAY="DAY",gr.WEEK="WEEK",gr.MONTH="MONTH",gr.YEAR="YEAR",(ga=_y||(_y={})).MIN="MIN",ga.AVG="AVG",ga.MAX="MAX",ga.DIFFERENCE="DIFFERENCE",ga.COUNT="COUNT",ga.SUM="SUM",ga.MODE="MODE",ga.MEDIAN="MEDIAN",(gs=_w||(_w={})).TERMINATING="TERMINATING",gs.DISABLED="DISABLED",gs.ALREADY_CONNECTED="ALREADY_CONNECTED",gs.UNRECOGNISED="UNRECOGNISED",gs.PERMANENT_ERROR="PERMANENT_ERROR",gs.SYNC_ERROR="SYNC_ERROR",(gl=_F||(_F={})).HTTPS="HTTPS",gl.HTTP="HTTP",gl.TCP="TCP",(gc=_x||(_x={})).GET="GET",gc.POST="POST",gc.PUT="PUT",gc.DELETE="DELETE",gc.OPTIONS="OPTIONS",gc.PATCH="PATCH",(gd=_k||(_k={})).KEYCLOAK="KEYCLOAK",gd.NONE="NONE",(gu=_E||(_E={})).WEBSOCKET="WEBSOCKET",gu.POLLING="POLLING",(gm=_A||(_A={})).INTERNAL="INTERNAL",gm.CLIENT="CLIENT",gm.GLOBAL_RULESET="GLOBAL_RULESET",gm.REALM_RULESET="REALM_RULESET",gm.ASSET_RULESET="ASSET_RULESET",(gh=_C||(_C={})).REALM="REALM",gh.USER="USER",gh.ASSET="ASSET",gh.CUSTOM="CUSTOM",(gf=_T||(_T={})).NORMAL="NORMAL",gf.HIGH="HIGH",(gp=_S||(_S={})).DEVICE="DEVICE",gp.TOPIC="TOPIC",gp.CONDITION="CONDITION",(gb=_M||(_M={})).ALWAYS="ALWAYS",gb.ONCE="ONCE",gb.HOURLY="HOURLY",gb.DAILY="DAILY",gb.WEEKLY="WEEKLY",gb.MONTHLY="MONTHLY",gb.ANNUALLY="ANNUALLY",(gg=_L||(_L={})).TITLE="TITLE",gg.SOURCE="SOURCE",gg.STATUS="STATUS",gg.SENT_ON="SENT_ON",gg.DELIVERED_ON="DELIVERED_ON",(g_=_D||(_D={})).MESSAGE_INVALID="MESSAGE_INVALID",g_.CERTIFICATE_INVALID="CERTIFICATE_INVALID",g_.UNAUTHORIZED="UNAUTHORIZED",g_.FORBIDDEN="FORBIDDEN",g_.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",g_.CONFIG_DISABLED="CONFIG_DISABLED",g_.USER_DISABLED="USER_DISABLED",g_.SERVER_ERROR="SERVER_ERROR",g_.ASSET_ERROR="ASSET_ERROR",g_.SERVER_BUSY="SERVER_BUSY",(gv=_O||(_O={})).PRIVATE="PRIVATE",gv.PROTECTED="PROTECTED",gv.PUBLIC="PUBLIC",(gy=_I||(_I={})).EXACT="EXACT",gy.BEGIN="BEGIN",gy.END="END",gy.CONTAINS="CONTAINS",(gw=_R||(_R={})).EQUALS="EQUALS",gw.GREATER_THAN="GREATER_THAN",gw.GREATER_EQUALS="GREATER_EQUALS",gw.LESS_THAN="LESS_THAN",gw.LESS_EQUALS="LESS_EQUALS",gw.BETWEEN="BETWEEN",(gF=_$||(_$={})).CREATED_ON="CREATED_ON",gF.NAME="NAME",gF.ASSET_TYPE="ASSET_TYPE",gF.PARENT_ID="PARENT_ID",gF.REALM="REALM",(gx=_N||(_N={})).RESTRICTED="RESTRICTED",gx.LINKED="LINKED",gx.REALM="REALM",(gk=_P||(_P={})).AT_LEAST_ONE="AT_LEAST_ONE",gk.ALL="ALL",gk.NONE="NONE",(gE=_Y||(_Y={})).AND="AND",gE.OR="OR",(gA=_B||(_B={})).CREATED_ON="CREATED_ON",gA.FIRST_NAME="FIRST_NAME",gA.LAST_NAME="LAST_NAME",gA.USERNAME="USERNAME",gA.EMAIL="EMAIL",(gC=_j||(_j={})).STOPPED="STOPPED",gC.RUNNING="RUNNING",gC.ERROR="ERROR",(gT=_H||(_H={})).JAVASCRIPT="JAVASCRIPT",gT.GROOVY="GROOVY",gT.JSON="JSON",gT.FLOW="FLOW",(gS=_z||(_z={})).READY="READY",gS.DEPLOYED="DEPLOYED",gS.COMPILATION_ERROR="COMPILATION_ERROR",gS.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",gS.EXECUTION_ERROR="EXECUTION_ERROR",gS.LOOP_ERROR="LOOP_ERROR",gS.DISABLED="DISABLED",gS.PAUSED="PAUSED",gS.EXPIRED="EXPIRED",gS.REMOVED="REMOVED",gS.EMPTY="EMPTY",(gM=_U||(_U={})).SUNRISE="SUNRISE",gM.SUNSET="SUNSET",gM.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",gM.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",gM.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",gM.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",gM.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",gM.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",gM.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",gM.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",gM.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",gM.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",gM.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",gM.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",gM.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",gM.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",gM.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",gM.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",gM.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",gM.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(gL=_W||(_W={})).NUMBER="NUMBER",gL.NUMBER_ARRAY="NUMBER_ARRAY",gL.STRING="STRING",gL.BOOLEAN="BOOLEAN",gL.TRIGGER="TRIGGER",gL.COLOR="COLOR",gL.ANY="ANY",(gD=_V||(_V={})).NEW_LINE="NEW_LINE",gD.SPACER="SPACER",(gO=_G||(_G={})).INPUT="INPUT",gO.PROCESSOR="PROCESSOR",gO.OUTPUT="OUTPUT",gO.THEN="THEN",(gI=_q||(_q={})).TEXT="TEXT",gI.MULTILINE="MULTILINE",gI.NUMBER="NUMBER",gI.DROPDOWN="DROPDOWN",gI.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",gI.CHECKBOX="CHECKBOX",gI.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",gI.COLOR="COLOR",gI.DATE="DATE",(gR=_K||(_K={})).ADD="ADD",gR.ADD_OR_REPLACE="ADD_OR_REPLACE",gR.REPLACE="REPLACE",gR.DELETE="DELETE",gR.CLEAR="CLEAR",(g$=_X||(_X={})).PER_ASSET="PER_ASSET",g$.GLOBAL="GLOBAL",(gN=_J||(_J={})).READ_ADMIN="read:admin",gN.READ_LOGS="read:logs",gN.READ_USERS="read:users",gN.READ_MAP="read:map",gN.READ_ASSETS="read:assets",gN.READ_RULES="read:rules",gN.READ_INSIGHTS="read:insights",gN.READ_ALARMS="read:alarms",gN.READ_NOTIFICATIONS="read:notifications",gN.READ_SERVICES="read:services",gN.WRITE_SERVICES="write:services",gN.WRITE_USER="write:user",gN.WRITE_ADMIN="write:admin",gN.WRITE_LOGS="write:logs",gN.WRITE_ASSETS="write:assets",gN.WRITE_ATTRIBUTES="write:attributes",gN.WRITE_RULES="write:rules",gN.WRITE_INSIGHTS="write:insights",gN.WRITE_ALARMS="write:alarms",gN.WRITE_NOTIFICATIONS="write:notifications",gN.READ="read",gN.WRITE="write",(gP=_Q||(_Q={})).REGISTER="REGISTER",gP.UPDATE="UPDATE",gP.DEREGISTER="DEREGISTER",(gY=_Z||(_Z={})).AVAILABLE="AVAILABLE",gY.UNAVAILABLE="UNAVAILABLE",(gB=_0||(_0={})).ASSET="ASSET",gB.AGENT="AGENT",gB.NOTIFICATION="NOTIFICATION",gB.ALARM="ALARM",gB.RULES="RULES",gB.PROTOCOL="PROTOCOL",gB.GATEWAY="GATEWAY",gB.MODEL_AND_VALUES="MODEL_AND_VALUES",gB.API="API",gB.DATA="DATA",(gj=_1||(_1={})).INFO="INFO",gj.WARN="WARN",gj.ERROR="ERROR",(gH=_2||(_2={})).NUMERIC="numeric",gH.DIGIT_2="2-digit",gH.FULL="full",gH.LONG="long",gH.MEDIUM="medium",gH.SHORT="short",gH.NARROW="narrow",(gz=_4||(_4={})).SECONDLY="SECONDLY",gz.MINUTELY="MINUTELY",gz.HOURLY="HOURLY",gz.DAILY="DAILY",gz.WEEKLY="WEEKLY",gz.MONTHLY="MONTHLY",gz.YEARLY="YEARLY",(gU=_5||(_5={})).OMIT="OMIT",gU.BACKWARD="BACKWARD",gU.FORWARD="FORWARD",(gW=_3||(_3={})).JAPANESE="JAPANESE",gW.BUDDHIST="BUDDHIST",gW.ROC="ROC",gW.ISLAMIC="ISLAMIC",gW.ISO8601="ISO8601",gW.CHINESE="CHINESE",gW.ETHIOPIC="ETHIOPIC",gW.HEBREW="HEBREW",gW.GREGORIAN="GREGORIAN",(gV=_6||(_6={})).SU="SU",gV.MO="MO",gV.TU="TU",gV.WE="WE",gV.TH="TH",gV.FR="FR",gV.SA="SA",(gG=_8||(_8={})).PEOPLECOUNTERASSET="PeopleCounterAsset",gG.MAILAGENT="MailAgent",gG.UDPAGENT="UDPAgent",gG.ROOMASSET="RoomAsset",gG.CITYASSET="CityAsset",gG.VENTILATIONASSET="VentilationAsset",gG.TRADFRILIGHTASSET="TradfriLightAsset",gG.CONSOLEASSET="ConsoleAsset",gG.PRESENCESENSORASSET="PresenceSensorAsset",gG.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",gG.LIGHTASSET="LightAsset",gG.KNXAGENT="KNXAgent",gG.THETHINGSSTACKAGENT="TheThingsStackAgent",gG.PLUGASSET="PlugAsset",gG.CHIRPSTACKAGENT="ChirpStackAgent",gG.WEATHERASSET="WeatherAsset",gG.THINGASSET="ThingAsset",gG.WEBSOCKETAGENT="WebsocketAgent",gG.TCPAGENT="TCPAgent",gG.GATEWAYASSET="GatewayAsset",gG.SERIALAGENT="SerialAgent",gG.BLUETOOTHMESHAGENT="BluetoothMeshAgent",gG.PARKINGASSET="ParkingAsset",gG.TRADFRIPLUGASSET="TradfriPlugAsset",gG.SIMULATORAGENT="SimulatorAgent",gG.SNMPAGENT="SNMPAgent",gG.GROUPASSET="GroupAsset",gG.BUILDINGASSET="BuildingAsset",gG.MODBUSSERIALAGENT="ModbusSerialAgent",gG.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",gG.MQTTAGENT="MQTTAgent",gG.VELBUSTCPAGENT="VelbusTCPAgent",gG.ARTNETLIGHTASSET="ArtnetLightAsset",gG.VELBUSSERIALAGENT="VelbusSerialAgent",gG.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",gG.MICROPHONEASSET="MicrophoneAsset",gG.MODBUSTCPAGENT="ModbusTcpAgent",gG.ZWAVEAGENT="ZWaveAgent",gG.HTTPAGENT="HTTPAgent",gG.DOORASSET="DoorAsset",gG.THERMOSTATASSET="ThermostatAsset",gG.SHIPASSET="ShipAsset",(gq=_7||(_7={})).COLOURRGB="colourRGB",gq.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",gq.PRICEHOURLY="priceHourly",gq.MQTTPORT="MQTTPort",gq.PINGDISABLED="pingDisabled",gq.FLOW="flow",gq.CHILDASSETTYPE="childAssetType",gq.LASTACCESS="lastAccess",gq.POSITION="position",gq.NETWORKKEY="networkKey",gq.UNIVERSE="universe",gq.ROUTINGMODE="routingMode",gq.MSSINUMBER="MSSINumber",gq.LASTWILLRETAIN="lastWillRetain",gq.LASTWILLTOPIC="lastWillTopic",gq.SERIALBAUDRATE="serialBaudrate",gq.SUBSCRIBEQOS="subscribeQos",gq.LEDCOUNT="lEDCount",gq.LOCKED="locked",gq.CLOUDCOVERAGE="cloudCoverage",gq.BASEURL="baseURL",gq.PROTOCOL="protocol",gq.REQUIREDVALUES="requiredValues",gq.REGION="region",gq.CONSOLEPLATFORM="consolePlatform",gq.GATEWAYSTATUS="gatewayStatus",gq.NO2LEVEL="NO2Level",gq.ATMOSPHERICPRESSURE="atmosphericPressure",gq.SERIALPORT="serialPort",gq.APPLICATIONID="applicationId",gq.TAGS="tags",gq.UNLOCK="unlock",gq.CHECKINTERVALSECONDS="checkIntervalSeconds",gq.LOCATION="location",gq.CLIENTSECRET="clientSecret",gq.WINDDIRECTION="windDirection",gq.WINDSPEED="windSpeed",gq.PARTICLESPM10="particlesPM10",gq.APPLICATIONKEY="applicationKey",gq.LENGTH="length",gq.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",gq.USERNAMEPASSWORD="usernamePassword",gq.WATERLEVEL="waterLevel",gq.CONNECTHEADERS="connectHeaders",gq.CONSOLENAME="consoleName",gq.WEBSOCKETQUERY="websocketQuery",gq.PREFERHTML="preferHTML",gq.PARITY="parity",gq.COOLING="cooling",gq.POLLINGMILLIS="pollingMillis",gq.SOILTEMPERATURE="soilTemperature",gq.SUNIRRADIANCE="sunIrradiance",gq.MESSAGEMAXLENGTH="messageMaxLength",gq.WINDGUSTSPEED="windGustSpeed",gq.LIGHTID="lightId",gq.PROXYADDRESS="proxyAddress",gq.REQUESTQUERYPARAMETERS="requestQueryParameters",gq.MQTTHOST="MQTTHost",gq.SECUREGRPC="secureGRPC",gq.MODEL="model",gq.STREET="street",gq.MANUFACTURER="manufacturer",gq.DELETEPROCESSEDMAIL="deleteProcessedMail",gq.RESUMESESSION="resumeSession",gq.ONOFF="onOff",gq.APIKEY="ApiKey",gq.CITY="city",gq.PRESENCE="presence",gq.SPACESOCCUPIED="spacesOccupied",gq.STARTTLS="startTLS",gq.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",gq.WEBSOCKETPATH="websocketPath",gq.AGENTSTATUS="agentStatus",gq.PRICEDAILY="priceDaily",gq.COUNTGROWTHMINUTE="countGrowthMinute",gq.IMONUMBER="IMONumber",gq.ATTRIBUTION="Attribution",gq.TENANTID="tenantId",gq.REQUESTHEADERS="requestHeaders",gq.HOST="host",gq.COUNTOUTMINUTE="countOutMinute",gq.MESSAGECHARSET="messageCharset",gq.CERTIFICATEALIAS="certificateAlias",gq.EMAIL="email",gq.BINDPORT="bindPort",gq.CONSOLEVERSION="consoleVersion",gq.PARTICLESPM1="particlesPM1",gq.MTU="mtu",gq.SPEED="speed",gq.MESSAGESTRIPDELIMITER="messageStripDelimiter",gq.AREA="area",gq.COUNTRY="country",gq.SHIPTYPE="shipType",gq.CONNECTSUBSCRIPTIONS="connectSubscriptions",gq.RELATIVEHUMIDITY="relativeHumidity",gq.SOURCEADDRESS="sourceAddress",gq.RAINFALL="rainfall",gq.OAUTHGRANT="oAuthGrant",gq.OZONELEVEL="ozoneLevel",gq.SEQUENCENUMBER="sequenceNumber",gq.COUNTINMINUTE="countInMinute",gq.PORT="port",gq.SUNALTITUDE="sunAltitude",gq.COUNTOUT="countOut",gq.ROOMNUMBER="roomNumber",gq.TUNNELINGSUPPORTED="tunnelingSupported",gq.ENINUMBER="ENINumber",gq.PARTICLESPM2_5="particlesPM2_5",gq.AGENTDISABLED="agentDisabled",gq.DISABLED="disabled",gq.COUNTIN="countIn",gq.MESSAGESOURCEADDRESS="messageSourceAddress",gq.PROVISIONWEATHERASSET="ProvisionWeatherAsset",gq.TIMEINJECTIONINTERVAL="timeInjectionInterval",gq.TEMPERATURESETPOINT="temperatureSetpoint",gq.CONSOLEPROVIDERS="consoleProviders",gq.COUNTTOTAL="countTotal",gq.SPACESBUFFER="spacesBuffer",gq.DEVICECONFIG="deviceConfig",gq.SPACESTOTAL="spacesTotal",gq.BINDHOST="bindHost",gq.FANSPEED="fanSpeed",gq.MESSAGECONVERTBINARY="messageConvertBinary",gq.NOTES="notes",gq.MAILFOLDERNAME="mailFolderName",gq.MESSAGEDELIMITERS="messageDelimiters",gq.TEMPERATURE="temperature",gq.SUNZENITH="sunZenith",gq.SNMPVERSIONVALUE="SNMPVersionValue",gq.BRIGHTNESS="brightness",gq.POSTALCODE="postalCode",gq.SPACESOPEN="spacesOpen",gq.HUMIDITY="humidity",gq.SOUNDLEVEL="soundLevel",gq.SECUREMODE="secureMode",gq.DIRECTION="direction",gq.STOPBITS="stopbits",gq.UVINDEX="uVIndex",gq.CONNECTURL="connectURL",gq.CLIENTID="clientId",gq.NATMODE="NATMode",gq.UPDATEONWRITE="updateOnWrite",gq.LASTWILLPAYLOAD="lastWillPayload",gq.GROUPID="groupId",gq.FOLLOWREDIRECTS="followRedirects",gq.SUNAZIMUTH="sunAzimuth",gq.MESSAGECONVERTHEX="messageConvertHex",gq.WEBSOCKETMODE="websocketMode",gq.COLOURTEMPERATURE="colourTemperature",gq.PUBLISHQOS="publishQos",gq.DATABITS="dataBits",(gK=_9||(_9={})).FORMAT="format",gK.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",gK.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",gK.SECRET="secret",gK.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",gK.ATTRIBUTELINKS="attributeLinks",gK.RULERESETIMMEDIATE="ruleResetImmediate",gK.RULESTATE="ruleState",gK.AGENTLINKCONFIG="agentLinkConfig",gK.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",gK.FORECAST="forecast",gK.STOREDATAPOINTS="storeDataPoints",gK.LABEL="label",gK.CONSTRAINTS="constraints",gK.UNITS="units",gK.USERCONNECTED="userConnected",gK.SHOWONDASHBOARD="showOnDashboard",gK.READONLY="readOnly",gK.MULTILINE="multiline",gK.ACCESSPUBLICWRITE="accessPublicWrite",gK.MOMENTARY="momentary",gK.AGENTLINK="agentLink",gK.ACCESSRESTRICTEDREAD="accessRestrictedRead",gK.ACCESSPUBLICREAD="accessPublicRead",(gX=ve||(ve={})).ASSETQUERY="assetQuery",gX.WSURL="WS_URL",gX.COLOURRGB="colourRGB",gX.VALUEFORMAT="valueFormat",gX.TEXT="text",gX.BYTE="byte",gX.USERNAMEANDPASSWORD="usernameAndPassword",gX.HTTPURL="HTTP_URL",gX.ATTRIBUTELINK="attributeLink",gX.ASSETID="assetID",gX.NUMBERMAP="numberMap",gX.HTTPMETHOD="HTTPMethod",gX.ATTRIBUTESTATE="attributeState",gX.POSITIVENUMBER="positiveNumber",gX.POSITIVEINTEGER="positiveInteger",gX.EXECUTIONSTATUS="executionStatus",gX.BIGINTEGER="bigInteger",gX.VALUEDESCRIPTOR="valueDescriptor",gX.PERIODDURATIONISO8601="periodDurationISO8601",gX.LONG="long",gX.DATEANDTIME="dateAndTime",gX.BOOLEANMAP="booleanMap",gX.MQTTQOS="MQTTQos",gX.NEGATIVEINTEGER="negativeInteger",gX.TCPIPPORTNUMBER="TCP_IPPortNumber",gX.GEOJSONPOINT="GEO_JSONPoint",gX.SNMPVERSION="SNMPVersion",gX.ASSETTYPE="assetType",gX.JSONOBJECT="JSONObject",gX.INTEGERMAP="integerMap",gX.BIGNUMBER="bigNumber",gX.IPADDRESS="IPAddress",gX.EMAIL="email",gX.TIMESTAMP="timestamp",gX.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",gX.ATTRIBUTEREFERENCE="attributeReference",gX.UUID="UUID",gX.INTEGER="integer",gX.OAUTHGRANT="oAuthGrant",gX.NUMBER="number",gX.DEVICECONFIGMAP="DeviceConfigMap",gX.TEXTMAP="textMap",gX.WEBSOCKETSUBSCRIPTION="websocketSubscription",gX.BOOLEAN="boolean",gX.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",gX.FORECASTCONFIGURATION="forecastConfiguration",gX.TIMEDURATIONISO8601="timeDurationISO8601",gX.TIMESTAMPISO8601="timestampISO8601",gX.CONSOLEPROVIDERS="consoleProviders",gX.MULTIVALUEDTEXTMAP="multivaluedTextMap",gX.NEGATIVENUMBER="negativeNumber",gX.PARITYBIT="Paritybit",gX.JSON="JSON",gX.CRONEXPRESSION="CRONExpression",gX.INTEGERBYTE="integerByte",gX.AGENTLINK="agentLink",gX.DIRECTION="direction",gX.HOSTORIPADDRESS="hostOrIPAddress",gX.STOPBITS="Stopbits",gX.CALENDAREVENT="calendarEvent",gX.CONNECTIONSTATUS="connectionStatus",gX.VALUECONSTRAINT="valueConstraint",(gJ=vt||(vt={})).MONTH="month",gJ.MILE_SCANDINAVIAN="mile_scandinavian",gJ.VAR="var",gJ.OUNCE="ounce",gJ.HECTARE="hectare",gJ.YARD="yard",gJ.YEAR="year",gJ.GIGA="giga",gJ.JOULE="joule",gJ.VOLT="volt",gJ.HERTZ="hertz",gJ.MILE="mile",gJ.DEGREE="degree",gJ.KILO="kilo",gJ.BTU="btu",gJ.TERA="tera",gJ.FOOT="foot",gJ.MEGA="mega",gJ.KELVIN="kelvin",gJ.CARBON="carbon",gJ.DECIBEL_ATTENUATED="decibel_attenuated",gJ.INCH="inch",gJ.SQUARED="squared",gJ.PERCENTAGE="percentage",gJ.IN_HG="inch_mercury",gJ.CENTI="centi",gJ.GRAM="gram",gJ.CUBED="cubed",gJ.DAY="day",gJ.RADIAN="radian",gJ.OHM="ohm",gJ.MINUTE="minute",gJ.PART_PER_MILLION="ppm",gJ.AMP="amp",gJ.MASS_POUND="pound",gJ.KNOT="knot",gJ.METRE="metre",gJ.LITRE="litre",gJ.FLUID_OUNCE="fluid_ounce",gJ.HOUR="hour",gJ.ACRE="acre",gJ.CELSIUS="celsius",gJ.RPM="rpm",gJ.PASCAL="pascal",gJ.DECIBEL="decibel",gJ.LUMEN="lumen",gJ.WEEK="week",gJ.FAHRENHEIT="fahrenheit",gJ.WATT="watt",gJ.GALLON="gallon",gJ.LUX="lux",gJ.MILLI="milli",gJ.BAR="bar",gJ.HECTO="hecto",gJ.PEAK="peak",gJ.SECOND="second",gJ.MICRO="micro",gJ.PER="per",gJ.STONE="stone",vn||(vn={});class lv{static getAssetDescriptors(){return lv._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=lv.getValueDescriptor(t)),n=t.jsonType?t:lv.getValueDescriptor(t.type)),!n&&e&&(n=lv.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}}function ly(e){return(ly="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lw(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function lF(e){var t=function(e,t){if("object"!=ly(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=ly(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ly(t)?t:t+""}function lx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,lF(i.key),i)}}function lk(e,t,n){return t&&lx(e.prototype,t),n&&lx(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lE(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lA(e,t){return(lA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lC(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lA(e,t)}function lT(e,t){if(t&&("object"==ly(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return lE(e)}function lS(e){return(lS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lM(e,t,n){return(t=lF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}lv._assetTypeInfos=[],lv._metaItemDescriptors=[],lv._valueDescriptors=[];var lI={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lR=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,e),this.init(t,n)}return lk(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||lI,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lO(lO({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),l$=function(){function e(){lw(this,e),this.observers={}}return lk(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function lN(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function lP(e){return null==e?"":""+e}function lY(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(o())return{};var a=i(r.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:i(r.shift())}}function lB(e,t,n){var i=lY(e,t,Object);i.obj[i.k]=n}function lj(e,t){var n=lY(e,t),i=n.obj,o=n.k;if(i)return i[o]}function lH(e,t,n){var i=lj(e,n);return void 0!==i?i:lj(t,n)}function lz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var lU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function lW(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return lU[e]}):e}var lV="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,lG=[" ",",","?","!",";"];function lq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lq(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lX=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return lw(this,i),t=n.call(this),lV&&l$.call(lE(t)),t.data=e||{},t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return lk(i,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=lj(this.data,a);return s||!r||"string"!=typeof n?s:function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var o=n.split(i),r=t,a=0;a<o.length;++a){if(!r||"string"==typeof r[o[a]]&&a+1<o.length)return;if(void 0===r[o[a]]){for(var s=2,l=o.slice(a,a+s).join(i),c=r[l];void 0===c&&o.length>a+s;)s++,c=r[l=o.slice(a,a+s).join(i)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(l)){if("string"==typeof c)return c;if(l&&"string"==typeof c[l])return c[l]}var d=o.slice(a+s).join(i);if(d)return e(c,d,i);return}r=r[o[a]]}return r}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lB(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)("string"==typeof n[o]||"[object Array]"===Object.prototype.toString.apply(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);var s=lj(this.data,a)||{};i?function e(t,n,i){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?i&&(t[o]=n[o]):e(t[o],n[o],i):t[o]=n[o]);return t}(s,n,o):s=lK(lK({},s),n),lB(this.data,a,s),r.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?lK(lK({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(l$),lJ={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,o){var r=this;return e.forEach(function(e){r.processors[e]&&(t=r.processors[e].process(t,n,i,o))}),t}};function lQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lQ(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l0={},l1=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e){var t,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return lw(this,i),r=n.call(this),lV&&l$.call(lE(r)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=lE(r),t.forEach(function(t){e[t]&&(o[t]=e[t])}),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=lR.create("translator"),r}return lk(i,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var i=lG.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===i.length)return!0;var o=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),r=!o.test(e);if(!r){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(r=!0)}return r}(e,n,i);if(r&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(i)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==ly(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,d=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(m){var h=t.nsSeparator||this.options.nsSeparator;return r?(f.res="".concat(d).concat(h).concat(l),f):"".concat(d).concat(h).concat(l)}return r?(f.res=l,f):l}var f=this.resolve(e,t),p=f&&f.res,b=f&&f.usedKey||l,g=f&&f.exactUsedKey||l,_=Object.prototype.toString.apply(p),v=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(y&&p&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(_)&&("string"!=typeof v||"[object Array]"!==_)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,lZ(lZ({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return r?(f.res=F,f):F}if(a){var x="[object Array]"===_,k=x?[]:{},E=x?g:b;for(var A in p)if(Object.prototype.hasOwnProperty.call(p,A)){var C="".concat(E).concat(a).concat(A);k[A]=this.translate(C,lZ(lZ({},t),{joinArrays:!1,ns:c})),k[A]===C&&(k[A]=p[A])}p=k}}else if(y&&"string"==typeof v&&"[object Array]"===_)(p=p.join(v))&&(p=this.extendTranslation(p,e,t,n));else{var T=!1,S=!1,M=void 0!==t.count&&"string"!=typeof t.count,L=i.hasDefaultValue(t),D=M?this.pluralResolver.getSuffix(u,t.count,t):"",O=t["defaultValue".concat(D)]||t.defaultValue;!this.isValidLookup(p)&&L&&(T=!0,p=O),this.isValidLookup(p)||(S=!0,p=l);var I=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&S?void 0:p,R=L&&O!==p&&this.options.updateMissing;if(S||T||R){if(this.logger.log(R?"updateKey":"missingKey",u,d,l,R?O:p),a){var $=this.resolve(l,lZ(lZ({},t),{},{keySeparator:!1}));$&&$.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],P=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&P&&P[0])for(var Y=0;Y<P.length;Y++)N.push(P[Y]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(t.lng||this.language):N.push(t.lng||this.language);var B=function(e,n,i){var r=L&&i!==p?i:I;o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,n,r,R,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,n,r,R,t),o.emit("missingKey",e,d,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&M?N.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(n){B([e],l+n,t["defaultValue".concat(n)]||O)})}):B(N,l,O))}p=this.extendTranslation(p,e,t,f,n),S&&p===l&&this.options.appendNamespaceToMissingKey&&(p="".concat(d,":").concat(l)),(S||T)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(l):l,T?p:void 0):this.options.parseMissingKeyHandler(p))}return r?(f.res=p,f):p}},{key:"extendTranslation",value:function(e,t,n,i,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,lZ(lZ({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(lZ(lZ({},n),{interpolation:lZ(lZ({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=lZ(lZ({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];return o&&o[0]===i[0]&&!n.context?(r.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):r.translate.apply(r,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,m="string"==typeof u?[u]:u;return null!=e&&m&&m.length&&!1!==n.applyPostProcessor&&(e=lJ.handle(m,e,t,this.options&&this.options.postProcessPassResolved?lZ({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,o,r,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var d=l.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,m=u&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(r=e,!l0["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(r)&&(l0["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach(function(n){if(!a.isValidLookup(t)){o=n;var r,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{u&&(d=a.pluralResolver.getSuffix(n,s.count,s));var d,f="".concat(a.options.pluralSeparator,"zero");if(u&&(l.push(c+d),m&&l.push(c+f)),h){var p="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(p),u&&(l.push(p+d),m&&l.push(p+f))}}for(;r=l.pop();)a.isValidLookup(t)||(i=r,t=a.getResource(n,e,r,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:r}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),i}(l$);function l2(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l4=function(){function e(t){lw(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lR.create("languageUtils")}return lk(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l2(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l2(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=l2(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var i=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(i))&&(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(i))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],r=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),i.forEach(function(e){0>o.indexOf(e)&&r(n.formatLanguageCode(e))}),o}}]),e}(),l5=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],l3={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},l6=["v1","v2","v3"],l8={zero:0,one:1,two:2,few:3,many:4,other:5},l7=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lw(this,e),this.languageUtils=t,this.options=i,this.logger=lR.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},l5.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:l3[e.fc]}})}),n)}return lk(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return l8[e]-l8[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var r=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!l6.includes(this.options.compatibilityJSON)}}]),e}();function l9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l9(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ct=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lw(this,e),this.logger=lR.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return lk(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:lW,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?lz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?lz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?lz(t.nestingPrefix):t.nestingPrefixEscaped||lz("$t("),this.nestingSuffix=t.nestingSuffix?lz(t.nestingSuffix):t.nestingSuffixEscaped||lz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var o,r,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator)){var o=lH(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,ce(ce(ce({},i),t),{},{interpolationkey:e})):o}var r=e.split(s.formatSeparator),a=r.shift().trim(),c=r.join(s.formatSeparator).trim();return s.format(lH(t,l,a),c,n,ce(ce(ce({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(r=d(n)))if("function"==typeof u){var l=u(e,o,i);r="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))r="";else if(m){r=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),r="";else"string"==typeof r||s.useRawValueToEscape||(r=lP(r));var c=t.safeValue(r);if(e=e.replace(o[0],c),m?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,i,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=ce({},r);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(i[1]);e=i[0];var r=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(r&&r.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=ce(ce({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),l=d,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=lP(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce(function(e,t){return o.format(e,t,r.lng,ce(ce({},r),{},{interpolationkey:n[1].trim()}))},i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ci(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cn(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function co(e){var t={};return function(n,i,o){var r=i+JSON.stringify(o),a=t[r];return a||(a=e(i,o),t[r]=a),a(n)}}var cr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lw(this,e),this.logger=lR.create("formatter"),this.options=t,this.formats={number:co(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:co(function(e,t){var n=new Intl.NumberFormat(e,ci(ci({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:co(function(e,t){var n=new Intl.DateTimeFormat(e,ci({},t));return function(e){return n.format(e)}}),relativetime:co(function(e,t){var n=new Intl.RelativeTimeFormat(e,ci({},t));return function(e){return n.format(e,t.range||"day")}}),list:co(function(e,t){var n=new Intl.ListFormat(e,ci({},t));return function(e){return n.format(e)}})},this.init(t)}return lk(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=co(t)}},{key:"format",value:function(e,t,n,i){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var r=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);"currency"===t&&0>o.indexOf(":")?n.currency||(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return lL(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lL(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],r=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=r),"false"===r&&(n[o.trim()]=!1),"true"===r&&(n[o.trim()]=!0),isNaN(r)||(n[o.trim()]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}}(t),a=r.formatName,s=r.formatOptions;if(o.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},d=c.locale||c.lng||i.locale||i.lng||n;l=o.formats[a](e,d,ci(ci(ci({},s),i),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function ca(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ca(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ca(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var cl=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(e,t,o){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return lw(this,i),r=n.call(this),lV&&l$.call(lE(r)),r.backend=e,r.store=t,r.services=o,r.languageUtils=o.languageUtils,r.options=a,r.logger=lR.create("backendConnector"),r.waitingReads=[],r.maxParallelReads=a.maxParallelReads||10,r.readingCalls=0,r.maxRetries=a.maxRetries>=0?a.maxRetries:5,r.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,a.backend,a),r}return lk(i,[{key:"queueLoad",value:function(e,t,n,i){var o=this,r={},a={},s={},l={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===l[t]&&(l[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),n&&this.store.addResourceBundle(o,r,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var i,s,l,c;i=n.loaded,(l=(s=lY(i,[o],Object)).obj)[c=s.k]=l[c]||[],l[c].push(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(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<i.maxRetries?setTimeout(function(){i.read.call(i,e,t,n,o+1,2*r,a)},r):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var r=this.queueLoad(e,t,i,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),o=i[0],r=i[1];this.read(o,r,"read",void 0,void 0,function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(r," for language ").concat(o," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(r," for language ").concat(o),a),t.loaded(e,i,a)})}},{key:"saveMissing",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,cs(cs({},r),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),i}(l$);function cc(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cd(Object(n),!0).forEach(function(t){lM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cm(){}var ch=function(e){lC(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=lS(i);return e=t?Reflect.construct(n,arguments,lS(this).constructor):n.apply(this,arguments),lT(this,e)});function i(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(lw(this,i),t=n.call(this),lV&&l$.call(lE(t)),t.options=cc(o),t.services={},t.logger=lR,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=lE(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),r&&!t.isInitialized&&!o.isClone){if(!t.options.initImmediate)return t.init(o,r),lT(t,lE(t));setTimeout(function(){t.init(o,r)},0)}return t}return lk(i,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===ly(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===ly(e[2])||"object"===ly(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=cu(cu(cu({},i),this.options),cc(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=cu(cu({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?lR.init(o(this.modules.logger),this.options):lR.init(null,this.options),this.modules.formatter?r=this.modules.formatter:"u">typeof Intl&&(r=cr);var r,a=new l4(this.options);this.store=new lX(this.options.resources,this.options);var s=this.services;s.logger=lR,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new l7(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),r&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=o(r),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new ct(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new cl(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new l1(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=cm),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=lN(),d=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,i=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var r=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(r,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)})}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=lN();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cm),this.services.backendConnector.reload(e,t,function(e){i.resolve(),n(e)}),i}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lJ.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=lN();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},r=function(e,r){r?(o(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var i="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,o=function e(t,o){if("object"!==ly(o)){for(var r,a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];r=i.options.overloadTranslationOptionHandler([t,o].concat(s))}else r=cu({},o);r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,r.keyPrefix=r.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",d=r.keyPrefix?"".concat(r.keyPrefix).concat(c).concat(t):t;return i.t(d,r)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,e)&&(!o||a(r,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=lN();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lN();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter(function(e){return 0>i.indexOf(e)});return o.length?(this.options.preload=i.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cm,o=cu(cu(cu({},this.options),t),{isClone:!0}),r=new i(o);return(void 0!==t.debug||void 0!==t.prefix)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(function(t){r[t]=e[t]}),r.services=cu({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new l1(r.services,r.options),r.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r.emit.apply(r,[e].concat(n))}),r.init(o,n),r.translator.options=r.options,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(l$);lM(ch,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ch(e,t)});var cf=ch.createInstance();cf.createInstance=ch.createInstance,cf.createInstance,cf.init,cf.loadResources,cf.reloadResources,cf.use,cf.changeLanguage,cf.getFixedT,cf.t,cf.exists,cf.setDefaultNamespace,cf.hasLoadedNamespace,cf.loadNamespaces,cf.loadLanguages;let cp=cf;var cb=n(88183),cg=n.n(cb),c_=n(14867),cv=n.n(c_);n(83472);class cy{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 cw(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)=>cw(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>cw(e[n],t[n]))}return!1}function cF(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 cx{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=>cx._evalValuePredicate(e.name,t)))&&(!this.attributes||cx._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!cx._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?cx._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||cx._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=>cx._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>cx._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=>cx._collectNames(e))]}}cx._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var ck=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 cE=n(74461);class cA{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=cA._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=mZ.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 ck(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 ck(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 ck(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 ck(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 ck(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 cy,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(()=>ck(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 ck(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mZ.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&&cA._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 ck(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:cE.name,version:cE.version,platform:cE.os.toString(),apps:[],model:((cE.manufacturer?cE.manufacturer+" ":"")+(cE.product?cE.product:"")).trim()}}_initialiseProvider(e){return ck(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 cC(e,t){return function(){return e.apply(t,arguments)}}let{toString:cT}=Object.prototype,{getPrototypeOf:cS}=Object,{iterator:cM,toStringTag:cL}=Symbol,cD=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cO=(e,t)=>{let n=e,i=[];for(;null!=n&&n!==Object.prototype&&-1===i.indexOf(n);){if(i.push(n),cD(n,t))return!0;n=cS(n)}return!1},cI=(a=Object.create(null),e=>{let t=cT.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cR=e=>(e=e.toLowerCase(),t=>cI(t)===e),c$=e=>t=>typeof t===e,{isArray:cN}=Array,cP=c$("undefined");function cY(e){return null!==e&&!cP(e)&&null!==e.constructor&&!cP(e.constructor)&&cH(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cB=cR("ArrayBuffer"),cj=c$("string"),cH=c$("function"),cz=c$("number"),cU=e=>null!==e&&"object"==typeof e,cW=e=>{if(!cU(e))return!1;let t=cS(e);return(null===t||t===Object.prototype||null===cS(t))&&!cO(e,cL)&&!cO(e,cM)},cV=cR("Date"),cG=cR("File"),cq=cR("Blob"),cK=cR("FileList"),cX="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cJ=void 0!==cX.FormData?cX.FormData:void 0,cQ=cR("URLSearchParams"),[cZ,c0,c1,c2]=["ReadableStream","Request","Response","Headers"].map(cR);function c4(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cN(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(cY(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 c5(e,t){let n;if(cY(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 c3="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,c6=e=>!cP(e)&&e!==c3,c8=(s="u">typeof Uint8Array&&cS(Uint8Array),e=>s&&e instanceof s),c7=cR("HTMLFormElement"),{propertyIsEnumerable:c9}=Object.prototype,de=cR("RegExp"),dt=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};c4(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},dn=cR("AsyncFunction"),di=(bH="function"==typeof setImmediate,bz=cH(c3.postMessage),bH?setImmediate:bz?(bU=`axios@${Math.random()}`,bW=[],c3.addEventListener("message",({source:e,data:t})=>{e===c3&&t===bU&&bW.length&&bW.shift()()},!1),e=>{bW.push(e),c3.postMessage(bU,"*")}):e=>setTimeout(e)),dr="u">typeof queueMicrotask?queueMicrotask.bind(c3):"u">typeof process&&process.nextTick||di,da=e=>null!=e&&cH(e[cM]),ds={isArray:cN,isArrayBuffer:cB,isBuffer:cY,isFormData:e=>{if(!e)return!1;if(cJ&&e instanceof cJ)return!0;let t=cS(e);if(!t||t===Object.prototype||!cH(e.append))return!1;let n=cI(e);return"formdata"===n||"object"===n&&cH(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cB(e.buffer)},isString:cj,isNumber:cz,isBoolean:e=>!0===e||!1===e,isObject:cU,isPlainObject:cW,isEmptyObject:e=>{if(!cU(e)||cY(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cZ,isRequest:c0,isResponse:c1,isHeaders:c2,isUndefined:cP,isDate:cV,isFile:cG,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cq,isRegExp:de,isFunction:cH,isStream:e=>cU(e)&&cH(e.pipe),isURLSearchParams:cQ,isTypedArray:c8,isFileList:cK,forEach:c4,merge:function e(...t){let{caseless:n,skipUndefined:i}=c6(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&c5(o,r)||r,s=cD(o,a)?o[a]:void 0;cW(s)&&cW(t)?o[a]=e(s,t):cW(t)?o[a]=e({},t):cN(t)?o[a]=t.slice():i&&cP(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||cY(n)||(c4(n,r),"object"!=typeof n||cN(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];c9.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(c4(t,(t,i)=>{n&&cH(t)?Object.defineProperty(e,i,{__proto__:null,value:cC(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&&cS(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:cI,kindOfTest:cR,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(cN(e))return e;let t=e.length;if(!cz(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cM]).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:c7,hasOwnProperty:cD,hasOwnProp:cD,hasOwnInPrototypeChain:cO,getSafeProp:(e,t)=>null!=e&&cO(e,t)?e[t]:void 0,reduceDescriptors:dt,freezeMethods:e=>{dt(e,(t,n)=>{if(cH(e)&&["arguments","caller","callee"].includes(n))return!1;if(cH(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(cN(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:c5,global:c3,isContextDefined:c6,isSpecCompliantForm:function(e){return!!(e&&cH(e.append)&&"FormData"===e[cL]&&e[cM])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cU(e)){if(t.has(e))return;if(cY(e))return e;if(!("toJSON"in e)){t.add(e);let i=cN(e)?[]:{};return c4(e,(e,t)=>{let o=n(e);cP(o)||(i[t]=o)}),t.delete(e),i}}return e};return n(e)},isAsyncFn:dn,isThenable:e=>e&&(cU(e)||cH(e))&&cH(e.then)&&cH(e.catch),setImmediate:di,asap:dr,isIterable:da,isSafeIterable:e=>null!=e&&cO(e,cM)&&da(e)},dl=ds.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"]),dc=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),dd=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function du(e,t){return ds.isArray(e)?e.map(e=>du(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 dm(e){let t=Object.create(null);return ds.forEach(e.toJSON(),(e,n)=>{t[n]=du(e,dd)}),t}let dh=Symbol("internals");function df(e){return e&&String(e).trim().toLowerCase()}function dp(e){return!1===e||null==e?e:ds.isArray(e)?e.map(dp):du(String(e),dc)}function db(e,t,n,i,o){if(ds.isFunction(i))return i.call(this,t,n);if(o&&(t=n),ds.isString(t)){if(ds.isString(i))return -1!==t.indexOf(i);if(ds.isRegExp(i))return i.test(t)}}class dg{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=df(t);if(!o)return;let r=ds.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=dp(e))}let r=(e,t)=>ds.forEach(e,(e,n)=>o(e,n,t));if(ds.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(ds.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(),!n||s[n]&&dl[n]||("set-cookie"===n?s[n]?s[n].push(i):s[n]=[i]:s[n]=s[n]?s[n]+", "+i:i)}),s),t)}else if(ds.isObject(e)&&ds.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!ds.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],ds.hasOwnProp(n,o)?(i=n[o],n[o]=ds.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=df(e)){let n=ds.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(ds.isFunction(t))return t.call(this,e,n);if(ds.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=df(e)){let n=ds.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||db(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=df(e)){let o=ds.findKey(n,e);o&&(!t||db(n,n[o],o,t))&&(delete n[o],i=!0)}}return ds.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||db(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return ds.forEach(this,(i,o)=>{let r=ds.findKey(n,o);if(r){t[r]=dp(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]=dp(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ds.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&ds.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dh]=this[dh]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=df(e);if(!t[i]){let o;o=ds.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 ds.isArray(e)?e.forEach(i):i(e),this}}dg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ds.reduceDescriptors(dg.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ds.freezeMethods(dg);class d_ extends Error{static from(e,t,n,i,o,r){let a=new d_(e.message,t||e.code,n,i,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}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&&ds.hasOwnProp(i,"redact")?i.redact:void 0,r=ds.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||ds.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof dg&&(i=i.toJSON()),t.push(i),ds.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);ds.isUndefined(i)||(o[t]=i)});else{if(!ds.isPlainObject(i)&&function(e){if(ds.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(ds.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())?"[REDACTED ****]":n(r);ds.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):ds.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}}}d_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",d_.ERR_BAD_OPTION="ERR_BAD_OPTION",d_.ECONNABORTED="ECONNABORTED",d_.ETIMEDOUT="ETIMEDOUT",d_.ECONNREFUSED="ECONNREFUSED",d_.ERR_NETWORK="ERR_NETWORK",d_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",d_.ERR_DEPRECATED="ERR_DEPRECATED",d_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",d_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",d_.ERR_CANCELED="ERR_CANCELED",d_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",d_.ERR_INVALID_URL="ERR_INVALID_URL",d_.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dv=d_;function dy(e){return ds.isPlainObject(e)||ds.isArray(e)}function dw(e){return ds.endsWith(e,"[]")?e.slice(0,-2):e}function dF(e,t,n){return e?e.concat(t).map(function(e,t){return e=dw(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dx=ds.toFlatObject(ds,{},null,function(e){return/^is[A-Z]/.test(e)}),dk=function(e,t,n){if(!ds.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(n=ds.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ds.isUndefined(t[e])})).metaTokens,o=n.visitor||h,r=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&ds.isSpecCompliantForm(t),d=[];if(!ds.isFunction(o))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(ds.isDate(e))return e.toISOString();if(ds.isBoolean(e))return e.toString();if(!c&&ds.isBlob(e))throw new dv("Blob is not supported. Use a Buffer instead.");if(ds.isArrayBuffer(e)||ds.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new dv("Blob is not supported. Use a Buffer instead.",dv.ERR_NOT_SUPPORT)}return e}function m(e){if(e>l)throw new dv("Object is too deeply nested ("+e+" levels). Max depth: "+l,dv.ERR_FORM_DATA_DEPTH_EXCEEDED)}function h(e,n,o){let s=e;if(ds.isReactNative(t)&&ds.isReactNativeBlob(e))return t.append(dF(o,n,r),u(e)),!1;if(e&&!o&&"object"==typeof e)if(ds.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(l===1/0)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!ds.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),m(1+t.length-1),n})}(e);else{var c;if(ds.isArray(e)&&(c=e,ds.isArray(c)&&!c.some(dy))||(ds.isFileList(e)||ds.endsWith(n,"[]"))&&(s=ds.toArray(e)))return n=dw(n),s.forEach(function(e,i){ds.isUndefined(e)||null===e||t.append(!0===a?dF([n],i,r):null===a?n:n+"[]",u(e))}),!1}return!!dy(e)||(t.append(dF(o,n,r),u(e)),!1)}let f=Object.assign(dx,{defaultVisitor:h,convertValue:u,isVisitable:dy});if(!ds.isObject(e))throw TypeError("data must be an object");return!function e(n,i,r=0){if(!ds.isUndefined(n)){if(m(r),-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),ds.forEach(n,function(n,a){!0===(!(ds.isUndefined(n)||null===n)&&o.call(t,n,ds.isString(a)?a.trim():a,i,f))&&e(n,i?i.concat(a):[a],r+1)}),d.pop()}}(e),t};function dE(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dA(e,t){this._pairs=[],e&&dk(e,this,t)}let dC=dA.prototype;function dT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dS(e,t,n){let i;if(!t)return e;e=e||"";let o=ds.isFunction(n)?{serialize:n}:n,r=ds.getSafeProp(o,"encode")||dT,a=ds.getSafeProp(o,"serialize");if(i=a?a(t,o):ds.isURLSearchParams(t)?t.toString():new dA(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}dC.append=function(e,t){this._pairs.push([e,t])},dC.toString=function(e){let t=e?t=>e.call(this,t,dE):dE;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dM=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ds.forEach(this.handlers,function(t){null!==t&&e(t)})}},dL={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dD="u">typeof URLSearchParams?URLSearchParams:dA,dO="u">typeof FormData?FormData:null,dI="u">typeof Blob?Blob:null,dR="u">typeof window&&"u">typeof document,d$="object"==typeof navigator&&navigator||void 0,dN=dR&&(!d$||0>["ReactNative","NativeScript","NS"].indexOf(d$.product)),dP="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dY=dR&&window.location.href||"http://localhost",dB={...d,isBrowser:!0,classes:{URLSearchParams:dD,FormData:dO,Blob:dI},protocols:["http","https","file","blob","url","data"]};function dj(e){if(e>100)throw new dv("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dv.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dH=function(e){if(ds.isFormData(e)&&ds.isFunction(e.entries)){let t={};return ds.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dj(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&ds.isArray(i)?i.length:r,s)?ds.hasOwnProp(i,r)?i[r]=ds.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(ds.hasOwnProp(i,r)&&ds.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&ds.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=/\w+|\[(\w*)]/g;for(;null!==(t=i.exec(e));)dj(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dz=(e,t)=>null!=e&&ds.hasOwnProp(e,t)?e[t]:void 0,dU={transitional:dL,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=ds.isObject(e);if(r&&ds.isHTMLForm(e)&&(e=new FormData(e)),ds.isFormData(e))return o?JSON.stringify(dH(e)):e;if(ds.isArrayBuffer(e)||ds.isBuffer(e)||ds.isStream(e)||ds.isFile(e)||ds.isBlob(e)||ds.isReadableStream(e))return e;if(ds.isArrayBufferView(e))return e.buffer;if(ds.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dz(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return dk(e,new dB.classes.URLSearchParams,{visitor:function(e,t,n,i){return dB.isNode&&ds.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=ds.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dz(this,"env"),o=i&&i.FormData;return dk(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(ds.isString(a))try{return(0,JSON.parse)(a),ds.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dz(this,"transitional")||dU.transitional,n=t&&t.forcedJSONParsing,i=dz(this,"responseType"),o="json"===i;if(ds.isResponse(e)||ds.isReadableStream(e))return e;if(e&&ds.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dz(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dv.from(e,dv.ERR_BAD_RESPONSE,this,null,dz(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dB.classes.FormData,Blob:dB.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dW(e,t){let n=this||dU,i=t||n,o=dg.from(i.headers),r=i.data;return ds.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dV(e){return!!(e&&e.__CANCEL__)}ds.forEach(["delete","get","head","post","put","patch","query"],e=>{dU.headers[e]={}});let dG=class extends dv{constructor(e,t,n){super(null==e?"canceled":e,dv.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dq(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dv("Request failed with status code "+n.status,n.status>=400&&n.status<500?dv.ERR_BAD_REQUEST:dv.ERR_BAD_RESPONSE,n.config,n.request,n))}let dK=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}},dX=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)]},dJ=(e,t,n=3)=>{let i=0,o=dK(50,250);return dX(n=>{if(!n||"number"!=typeof n.loaded)return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=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)},dQ=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dZ=e=>(...t)=>ds.asap(()=>e(...t)),d0=dB.hasStandardBrowserEnv?(l=new URL(dB.origin),c=dB.navigator&&/(msie|trident)/i.test(dB.navigator.userAgent),e=>(e=new URL(e,dB.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,d1=dB.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];ds.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ds.isString(i)&&s.push(`path=${i}`),ds.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),ds.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(){}},d2=/^https?:(?!\/\/)/i,d4=/[\t\n\r]/g;function d5(e,t){if("string"==typeof e&&d2.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(d4,"")))throw new dv('Invalid URL: missing "//" after protocol',dv.ERR_INVALID_URL,t)}function d3(e,t,n,i){d5(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(o||!1===n)?(d5(e,i),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let d6=e=>e instanceof dg?{...e}:e;function d8(e,t){e=e||{},t=t||{};let n=Object.create(null);function i(e,t,n,i){return ds.isPlainObject(e)&&ds.isPlainObject(t)?ds.merge.call({caseless:i},e,t):ds.isPlainObject(t)?ds.merge({},t):ds.isArray(t)?t.slice():t}function o(e,t,n,o){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function r(e,t){if(!ds.isUndefined(t))return i(void 0,t)}function a(e,t){return ds.isUndefined(t)?ds.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return ds.hasOwnProp(t,r)?i(n,o):ds.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(d6(e),d6(t),n,!0)};return ds.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let r=ds.hasOwnProp(l,i)?l[i]:o,a=r(ds.hasOwnProp(e,i)?e[i]:void 0,ds.hasOwnProp(t,i)?t[i]:void 0,i);ds.isUndefined(a)&&r!==s||(n[i]=a)}),ds.hasOwnProp(t,"validateStatus")&&ds.isUndefined(t.validateStatus)&&!1===function(n){let i=ds.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!ds.isUndefined(i)){if(!ds.isPlainObject(i))return;else if(ds.hasOwnProp(i,n))return i[n]}let o=ds.hasOwnProp(e,"transitional")?e.transitional:void 0;if(ds.isPlainObject(o)&&ds.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(ds.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}let d7=["content-type","content-length"],d9=function(e){let t=d8({},e),n=e=>ds.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=dg.from(s),t.url=dS(d3(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=ds.getSafeProp(l,"username")||"",n=ds.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 dv.from(t,dv.ERR_BAD_OPTION_VALUE,e)}}if(ds.isFormData(i))if(dB.hasStandardBrowserEnv||dB.hasStandardBrowserWebWorkerEnv||ds.isReactNative(i))s.setContentType(void 0);else{var m,h;ds.isFunction(i.getHeaders)&&(m=s,h=i.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?m.set(h):Object.entries(h||{}).forEach(([e,t])=>{d7.includes(e.toLowerCase())&&m.set(e,t)}))}if(dB.hasStandardBrowserEnv&&(ds.isFunction(o)&&(o=o(t)),!0===o||null==o&&d0(t.url))){let e=r&&a&&d1.read(a);e&&s.set(r,e)}return t},ue="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var i;let o,r,a,s,l,c,d=d9(e),u=d.data,m=dg.from(d.headers).normalize(),{responseType:h,onUploadProgress:f,onDownloadProgress:p}=d;function b(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(o),d.signal&&d.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function _(){if(!g)return;let i=dg.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dq(function(e){t(e),b()},function(e){n(e),b()},{data:h&&"text"!==h&&"json"!==h?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(d.method.toUpperCase(),d.url,!0),g.timeout=d.timeout,"onloadend"in g?g.onloadend=_:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(_)},g.onabort=function(){g&&(n(new dv("Request aborted",dv.ECONNABORTED,e,g)),b(),g=null)},g.onerror=function(t){let i=new dv(t&&t.message?t.message:"Network Error",dv.ERR_NETWORK,e,g);i.event=t||null,n(i),b(),g=null},g.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||dL;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new dv(t,i.clarifyTimeoutError?dv.ETIMEDOUT:dv.ECONNABORTED,e,g)),b(),g=null},void 0===u&&m.setContentType(null),"setRequestHeader"in g&&ds.forEach(dm(m),function(e,t){g.setRequestHeader(t,e)}),ds.isUndefined(d.withCredentials)||(g.withCredentials=!!d.withCredentials),h&&"json"!==h&&(g.responseType=d.responseType),p&&([a,l]=dJ(p,!0),g.addEventListener("progress",a)),f&&g.upload&&([r,s]=dJ(f),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(o=t=>{g&&(n(!t||t.type?new dG(null,e,g):t),g.abort(),b(),g=null)},d.cancelToken&&d.cancelToken.subscribe(o),d.signal&&(d.signal.aborted?o():d.signal.addEventListener("abort",o)));let v=(i=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(i))&&c[1]||"");if(v&&!dB.protocols.includes(v)){n(new dv("Unsupported protocol "+v+":",dv.ERR_BAD_REQUEST,e)),b();return}g.send(u||null)})},ut=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},un=async function*(e,t){for await(let n of ui(e))yield*ut(n,t)},ui=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()}},uo=(e,t,n,i)=>{let o,r=un(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})},ur=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,ua=(e,t,n)=>t+2<n&&ur(e.charCodeAt(t+1))&&ur(e.charCodeAt(t+2)),{isFunction:us}=ds,ul=e=>{if(!ds.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},uc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ud=e=>{let t,n=void 0!==ds.global&&null!==ds.global?ds.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=ds.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?us(r):"function"==typeof fetch,c=us(a),d=us(s);if(!l)return!1;let u=l&&us(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&&uc(()=>{let e=!1,t=new a(dB.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&&uc(()=>ds.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 dv(`Response type '${e}' is not supported`,dv.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(ds.isBlob(e))return e.size;if(ds.isSpecCompliantForm(e)){let t=new a(dB.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ds.isArrayBufferView(e)||ds.isArrayBuffer(e)?e.byteLength:(ds.isURLSearchParams(e)&&(e+=""),ds.isString(e))?(await m(e)).byteLength:void 0},g=async(e,t)=>{let n=ds.toFiniteNumber(e.getContentLength());return null==n?b(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:F,withCredentials:x="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:A}=d9(e),C=ds.isNumber(E)&&E>-1,T=ds.isNumber(A)&&A>-1,S=r||fetch;w=w?(w+"").toLowerCase():"text";let M=((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 dv?t:new dG(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dv(`timeout of ${t}ms exceeded`,dv.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=>e.addEventListener("abort",o,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>ds.asap(a),s})([d,m&&m.toAbortSignal()],_),L=null,D=M&&M.unsubscribe&&(()=>{M.unsubscribe()}),O=null,I=()=>new dv("Request body larger than maxBodyLength limit",dv.ERR_BAD_REQUEST,e,L);try{var R;let r,d,m,_,$=(d="auth",ds.hasOwnProp(e,d)?e[d]:void 0);if($){let e=ds.getSafeProp($,"username")||"",t=ds.getSafeProp($,"password")||"";r={username:e,password:t}}if(m=(R=n).indexOf("://"),_=R,-1!==m&&(_=_.slice(m+3)),_.includes("@")||_.includes(":")){let e=new URL(n,dB.origin);if(!r&&(e.username||e.password)){let t=ul(e.username),n=ul(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;F.delete("authorization"),F.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(C&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length,t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){let t=i.charCodeAt(n+1),o=i.charCodeAt(n+2);ur(t)&&ur(o)&&(e-=2,n+=2)}let n=0,o=t-1,r=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));o>=0&&(61===i.charCodeAt(o)?(n++,o--):r(o)&&(n++,o-=3)),1===n&&o>=0&&(61===i.charCodeAt(o)?n++:r(o)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&ua(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(n)>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L);if(T&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>A))throw I()}let N=T&&(ds.isReadableStream(l)||ds.isStream(l)),P=(e,t,n)=>uo(e,65536,e=>{if(T&&e>A)throw O=I();t&&t(e)},n);if(h&&"get"!==i&&"head"!==i&&(y||N)){if(t=null==t?await g(F,l):t,0!==t||N){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(ds.isFormData(l)&&(e=i.headers.get("content-type"))&&F.setContentType(e),i.body){let[e,n]=y&&dQ(t,dJ(dZ(y)))||[];l=P(i.body,e,n)}}}else if(N&&!c&&u&&"get"!==i&&"head"!==i)l=P(l);else if(N&&c&&!h&&"get"!==i&&"head"!==i)throw new dv("Stream request bodies are not supported by the current fetch implementation",dv.ERR_NOT_SUPPORT,e,L);ds.isString(x)||(x=x?"include":"omit");let Y=c&&"credentials"in a.prototype;if(ds.isFormData(l)){let e=F.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let B={...k,signal:M,method:i.toUpperCase(),headers:dm(F.normalize()),body:l,duplex:"half",credentials:Y?x:void 0};L=c&&new a(n,B);let j=await (c?S(L,k):S(n,B)),H=dg.from(j.headers);if(C){let t=ds.toFiniteNumber(H.getContentLength());if(null!=t&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L)}let z=f&&("stream"===w||"response"===w);if(f&&j.body&&(v||C||z&&D)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=j[e]});let n=ds.toFiniteNumber(H.getContentLength()),[i,o]=v&&dQ(n,dJ(dZ(v),!0))||[];j=new s(uo(j.body,65536,t=>{if(C&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L);i&&i(t)},()=>{o&&o(),D&&D()}),t)}w=w||"text";let U=await p[ds.findKey(p,w)||"text"](j,e);if(C&&!f&&!z){let t;if(null!=U&&("number"==typeof U.byteLength?t=U.byteLength:"number"==typeof U.size?t=U.size:"string"==typeof U&&(t="function"==typeof o?new o().encode(U).byteLength:U.length)),"number"==typeof t&&t>E)throw new dv("maxContentLength size of "+E+" exceeded",dv.ERR_BAD_RESPONSE,e,L)}return!z&&D&&D(),await new Promise((t,n)=>{dq(t,n,{data:U,headers:dg.from(j.headers),status:j.status,statusText:j.statusText,config:e,request:L})})}catch(t){if(D&&D(),M&&M.aborted&&M.reason instanceof dv){let n=M.reason;throw n.config=e,L&&(n.request=L),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(O)throw L&&!O.request&&(O.request=L),O;if(t instanceof dv)throw L&&!t.request&&(t.request=L),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dv("Network Error",dv.ERR_NETWORK,e,L,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dv.from(t,t&&t.code,e,L,t&&t.response)}}},uu=new Map,um=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=uu;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ud(t)),c=l;return l};um();let uh={http:null,xhr:ue,fetch:{get:um}};ds.forEach(uh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let uf=e=>`- ${e}`,up=e=>ds.isFunction(e)||null===e||!1===e,ub=function(e,t){let n,i,{length:o}=e=ds.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!up(n)&&void 0===(i=uh[(o=String(n)).toLowerCase()]))throw new dv(`Unknown adapter '${o}'`);if(i&&(ds.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 dv("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(uf).join("\n"):" "+uf(e[0]):"as no adapter specified"),dv.ERR_NOT_SUPPORT)}return i};function ug(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dG(null,e)}function u_(e){return ug(e),e.headers=dg.from(e.headers),e.data=dW.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ub(e.adapter||dU.adapter,e)(e).then(function(t){ug(e),e.response=t;try{t.data=dW.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=dg.from(t.headers),t},function(t){if(!dV(t)&&(ug(e),t&&t.response)){e.response=t.response;try{t.response.data=dW.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=dg.from(t.response.headers)}return Promise.reject(t)})}let uv={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uv[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let uy={};uv.transitional=function(e,t,n){function i(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dv(i(o," has been removed"+(t?" in "+t:"")),dv.ERR_DEPRECATED);return t&&!uy[o]&&(uy[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)}},uv.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let uw=function(e,t,n){if("object"!=typeof e||null===e)throw new dv("options must be an object",dv.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 dv("option "+r+" must be "+n,dv.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dv("Unknown option "+r,dv.ERR_BAD_OPTION)}};class uF{constructor(e){this.defaults=e||{},this.interceptors={request:new dM,response:new dM}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),o=-1===i?"":n.slice(i+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}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=d8(this.defaults,t);void 0!==o&&uw(o,{silentJSONParsing:uv.transitional(uv.boolean),forcedJSONParsing:uv.transitional(uv.boolean),clarifyTimeoutError:uv.transitional(uv.boolean),legacyInterceptorReqResOrdering:uv.transitional(uv.boolean),advertiseZstdAcceptEncoding:uv.transitional(uv.boolean),validateStatusUndefinedResolves:uv.transitional(uv.boolean)},!1),null!=r&&(ds.isFunction(r)?t.paramsSerializer={serialize:r}:uw(r,{encode:uv.function,serialize:uv.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),uw(t,{baseUrl:uv.spelling("baseURL"),withXsrfToken:uv.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ds.merge(a.common,a[t.method]);a&&ds.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=dg.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||dL;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=[u_.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(m)}catch(e){t.call(this,e);break}}try{n=u_.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dS(d3((e=d8(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}ds.forEach(["delete","get","head","options"],function(e){uF.prototype[e]=function(t,n){return this.request(d8(n||{},{method:e,url:t,data:n&&ds.hasOwnProp(n,"data")?n.data:void 0}))}}),ds.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(d8(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}uF.prototype[e]=t(),"query"!==e&&(uF.prototype[e+"Form"]=t(!0))});class ux{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 dG(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 e;return{token:new ux(function(t){e=t}),cancel:e}}}let uk={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(uk).forEach(([e,t])=>{uk[t]=e});let uE=function e(t){let n=new uF(t),i=cC(uF.prototype.request,n);return ds.extend(i,uF.prototype,n,{allOwnKeys:!0}),ds.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(d8(t,n))},i}(dU);uE.Axios=uF,uE.CanceledError=dG,uE.CancelToken=ux,uE.isCancel=dV,uE.VERSION="1.18.1",uE.toFormData=dk,uE.AxiosError=dv,uE.Cancel=uE.CanceledError,uE.all=function(e){return Promise.all(e)},uE.spread=function(e){return function(t){return e.apply(null,t)}},uE.isAxiosError=function(e){return ds.isObject(e)&&!0===e.isAxiosError},uE.mergeConfig=d8,uE.AxiosHeaders=dg,uE.formToJSON=e=>dH(ds.isHTMLForm(e)?new FormData(e):e),uE.getAdapter=ub,uE.HttpStatusCode=uk,uE.default=uE;class uA{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uq`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uq`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uq`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uq`dashboard/${e}/${t}`,options:n})}}class uC{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uq`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uq`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uq`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uq`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uq`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uq`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uq`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uq`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uq`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uq`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`rules/${e}`,data:t,options:n})}}class uT{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uq`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uq`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uS{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`asset/predicted/${e}/${t}`,data:n,options:i})}}class uM{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uq`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uq`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uq`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uq`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uq`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uq`service/${e}/${t}`,options:n})}}class uL{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uq`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uq`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uq`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uq`model/valueDescriptors`,queryParams:e,options:t})}}class uD{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uq`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uq`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uq`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uq`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`realm/${e}`,data:t,options:n})}}class uO{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uq`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uq`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uq`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uq`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uq`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uq`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uq`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uq`alarm/${e}/assets`,queryParams:t,options:n})}}class uI{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uq`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uq`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uq`flow/${e}`,options:t})}}class uR{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uq`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uq`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uq`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uq`provisioning/${e}`,data:t,options:n})}}class u${constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uq`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uq`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uq`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uq`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uq`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uq`map/upload`,queryParams:e,options:t})}}class uN{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uq`console/register`,data:e,options:t})}}class uP{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uq`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uq`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uq`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uq`syslog/event`,queryParams:e,options:t})}}class uY{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uq`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uq`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uq`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uq`gateway/status/${e}`,options:t})}}class uB{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uq`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uq`info`,options:e})}}class uj{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uq`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uq`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uq`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uq`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uq`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uq`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uq`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uq`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uq`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uq`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uq`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uq`user/${e}/${t}`,options:n})}}class uH{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uq`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uq`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uq`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uq`configuration/manager/image/${e}`,options:t})}}class uz{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uq`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uq`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uU{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uq`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uq`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uq`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uW{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uq`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uq`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uq`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uq`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uq`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uq`notification/${e}/delivered`,queryParams:t,options:n})}}class uV{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uq`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uq`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uq`apps/info`,options:e})}}class uG{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uq`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uq`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uq`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uq`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uq`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uq`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uq`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uq`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uq`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uq`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uq`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uq`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uq`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uq`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uq`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uq`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uq`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uq`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:uq`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uq`asset/${e}/child`,queryParams:t,options:n})}}function uq(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 uK{constructor(e,t=uE.create()){this._dashboardResource=new uJ(e,t),this._rulesResource=new uQ(e,t),this._gatewayServiceResource=new uZ(e,t),this._assetPredictedDatapointResource=new u0(e,t),this._externalServiceResource=new u1(e,t),this._assetModelResource=new u2(e,t),this._realmResource=new u4(e,t),this._alarmResource=new u5(e,t),this._flowResource=new u3(e,t),this._provisioningResource=new u6(e,t),this._mapResource=new u8(e,t),this._consoleResource=new u7(e,t),this._syslogResource=new u9(e,t),this._gatewayClientResource=new me(e,t),this._statusResource=new mt(e,t),this._userResource=new mn(e,t),this._configurationResource=new mi(e,t),this._assetDatapointResource=new mo(e,t),this._agentResource=new mr(e,t),this._notificationResource=new ma(e,t),this._appResource=new ms(e,t),this._assetResource=new ml(e,t),this._assetResource=new ml(e,t)}get DashboardResource(){return this._dashboardResource}get RulesResource(){return this._rulesResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ExternalServiceResource(){return this._externalServiceResource}get AssetModelResource(){return this._assetModelResource}get RealmResource(){return this._realmResource}get AlarmResource(){return this._alarmResource}get FlowResource(){return this._flowResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get ConsoleResource(){return this._consoleResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get StatusResource(){return this._statusResource}get UserResource(){return this._userResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get AgentResource(){return this._agentResource}get NotificationResource(){return this._notificationResource}get AppResource(){return this._appResource}get AssetResource(){return this._assetResource}}class uX{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 uJ extends uA{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class uQ extends uC{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class uZ extends uT{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u0 extends uS{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u1 extends uM{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u2 extends uL{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u4 extends uD{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u5 extends uO{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u3 extends uI{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u6 extends uR{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u8 extends u${constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u7 extends uN{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class u9 extends uP{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class me extends uY{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mt extends uB{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mn extends uj{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mi extends uH{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mo extends uz{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class mr extends uU{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ma extends uW{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ms extends uV{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}class ml extends uG{constructor(e,t=uE.create()){t.defaults.baseURL=e,super(new uX(t))}}uE.isAxiosError;let mc=new class{get api(){return this._client}constructor(){this._axiosInstance=uE.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>cg().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 uK(e,this._axiosInstance)}};var md=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())})};(gQ=vi||(vi={})).DISCONNECTED="DISCONNECTED",gQ.CONNECTED="CONNECTED",gQ.CONNECTING="CONNECTING";let mu="SUBSCRIBED:",mm="UNAUTHORIZED:",mh="TRIGGERED:",mf="EVENT:";class mp{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mb.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=vi.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===vi.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(vi.CONNECTING),this._connectingDeferred=new cy,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mb.MIN_RECONNECT_DELAY,this._onStatusChanged(vi.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!==vi.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new cy};return null!=this._pendingSubscription||this._status!==vi.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 md(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===vi.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==vi.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return md(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mp._subscriptionCounter++;if(!this._assetEventPromise){let e;mZ.authenticated||(e={filterType:"asset",realm:mZ.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===mZ.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 md(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"+mp._subscriptionCounter++;if(!this._attributeEventPromise){let e;mZ.authenticated||(e={filterType:"asset",realm:mZ.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===mZ.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===vi.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===vi.CONNECTED&&this._onStatusChanged(vi.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(vi.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<mb.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mb.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mp.MIN_RECONNECT_DELAY=0,mp.MAX_RECONNECT_DELAY=3e4,mp._subscriptionCounter=0;class mb extends mp{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="+mZ.config.realm;return this._connectDeferred=new cy,(mZ.authenticated?mZ.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(mu)){let e=JSON.parse(t.substring(mu.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.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(mh)){let e=JSON.parse(t.substring(mh.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mf)){let e=JSON.parse(t.substring(mf.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 cy,e.subscriptionId||(e.subscriptionId=mb._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=mf+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 cy;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mf+JSON.stringify(e)),t.promise}}mb._subscriptionCounter=1;let mg=["__proto__","constructor","prototype"];function m_(e){return!("string"!=typeof e||0===e.length||e.length>128||mg.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mv(e){return!(!m_(e)||e.indexOf("/")>-1)}let my={lng:mv,ns:function(e){return m_(e)}};function mw(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function mF(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mx=/\{\{(.+?)\}\}/g;function mk(e,t){let n=!1,i=e.replace(mx,(e,i)=>{let o=i.trim();if(mg.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=my[o]||mv,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mE="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mE&&"function"==typeof mE.fetch&&(e=mE.fetch);let mA=mF()&&mE?mE.XMLHttpRequest:void 0,mC="function"==typeof ActiveXObject&&mE?mE.ActiveXObject:void 0,mT=["__proto__","constructor","prototype"],mS=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mT.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mM=(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)},mL=(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=mS(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{mM(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]}),mM(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(mF()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mS("",c).slice(1)),t.queryStringParams&&(l=mS(l,t.queryStringParams));try{let e=mA?new mA:new mC("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))mT.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 mD=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:mL,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=mk(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(mw).join(", ")+"] namespaces=["+n.map(mw).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=mw(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+": "+mw(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=mk(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)})})})}};mD.type="backend";class mO extends rw{constructor(e){if(super(e),this.it=ei,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ei||null==e)return this._t=void 0,this.it=e;if(e===en)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:[]}}}mO.directiveName="unsafeHTML",mO.resultType=1,ry(mO);class mI extends mO{}mI.directiveName="unsafeSVG",mI.resultType=2;let mR=ry(mI),m$={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 mN=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 mP extends CustomEvent{constructor(){super(mP.NAME,{bubbles:!0,composed:!0})}}mP.NAME="or-iconset-added";let mY=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new mP)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return et``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):et``}},mB=class extends ex{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
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);